Opened 9 years ago
Closed 16 months ago
#43197 closed defect (bug) (worksforme)
Nesting @media rule inside @supports rule fails CSS validation
| Reported by: | neoqueto | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Customize | Version: | 4.9.2 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: | ui, css, administration, coding-standards |
Description
The CSS editor in the Customize panel returns 2 syntax errors when trying to insert a @media rule inside a @supports rule. It does work fine the other way around.
Results are independent of specified properties & values.
This might impact performance, because it is faster to skip the entire content of a feature query if a browser does not support a certain feature, rather than having multiple media queries with @supports in each of them. Besides, it can be functionally different, as explained here: https://stackoverflow.com/a/42438244
Tested on Chrome 63 and Windows 7.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)

See also #42528. It's probably a bug with CSSLint.