GNOME Bugzilla – Bug 761056
Improve css highlighting within at-media rule
Last modified: 2016-01-31 16:49:28 UTC
Created attachment 319617 [details] screenshot showing bugs in at-media rule highlighting The highlighting of at-media rules has some problems: - The media types (screen, print etc..) are highlighted the same as html-elements. - The 'and' keyword is also highlighted the same as an html element. - The Media Feature is also highlighted the same as an html element. - Within the round brackets units and numbers are not highlighted. - Within the curly brackets classes, ids and html elements are not highlighted. - Nesting leads to different but also inconsistent behaviour.
Created attachment 320128 [details] [review] Add better support for at-media query highlighting Currently syntax highlighting has an inconistent behaviour after an at-media query. The patch adds some better rules to handle the contex highlighting, especially if the calls are nested. To correctly highlight the media queries the patch adds contexts for screen resolutions, media-features and media-feature values. The patch also adds a test file that lists all css2 properties and values, css2 named colors, and some examples of at-rules and nested at-media queries. https://bugzilla.gnome.org/show_bug.cgi?id=761056 Fixes #761056
Created attachment 320135 [details] [review] Add better support for at-media query highlighting Currently syntax highlighting has an inconistent behaviour after an at-media query. The patch adds some better rules to handle the contex highlighting, especially if the calls are nested. To correctly highlight the media queries the patch adds contexts for screen resolutions, media-features and media-feature values. The patch also adds a css test file. https://bugzilla.gnome.org/show_bug.cgi?id=761056 Fixes #761056
great!