Created attachment 113110 [details] example css, showing the wrong highlighting KATE Version 16.08.2 Maybe, the effect is already gone with newer versions ;-) If You use mediatype blocks, that have an operator like "prefers-reduced-motion", then the tag is not recognised and the highlighting structure will fail from now on Hint: As far as I know, it is an Apple-Only feature. But it would be nice, if this wouldn't break the structure for all of us.
Just an idea: Instead of adding such a tag to the rule, it might be the better approach that the structure of the mediatype statement is recognised (by regex?). Then the opening brace would help already to find the structure again, even if a tag is unknown ;-)
Can you please attach a screenshot with the broken version? In my version it looks fine.
Created attachment 117761 [details] Screenshot of Editor, showing highlighted css code
Hi Dominik, You're right. Don't know, which version solved this, but I may confirm it is gone in Kate V 17.12.3. Will add a screenshot also.
For me it looks like this: https://i.imgur.com/mpat16I.png There were several major updates in the CSS highlighting, so I assume it's fixed.