In a the supports_condition of a "@supports" construct, CSS parser requires a whitespace between a closing brace and the following "or"
Reported by
eduard.m...@gmail.com,
Apr 4 2017
|
|||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36 Example URL: http://codepen.io/eduard-malakhov/pen/dvrEoN Steps to reproduce the problem: 1. Create a CSS stylesheet containing a @supports clause with a condition that has no whitespace between the closing brace and the following "or" operator, e.g. "@supports (color: red)or (color: green) {}". 2. Apply this stylesheet on a webpage. What is the expected behavior? The "@supports" construct is parsed correctly, its condition evaluates to true and the style that it encloses is applied. What went wrong? The style is not applied. Does it occur on multiple sites: Yes Is it a problem with a plugin? No Did this work before? N/A Does this work in other browsers? No Firefox 50.1.0 Chrome version: 56.0.2924.87 Channel: stable OS Version: 10.0 Flash Version: As far a I see, https://www.w3.org/TR/css3-conditional/#grammar contains not notice regarding a whitespace separator that is required in the described case. The issue was found during development when a minified stylesheet was rendered differently from the original one. A similar issue has also been reported here: https://github.com/css/csso/issues/258 The same CSS in Opera is rendered as expected.
,
Apr 4 2017
,
Apr 4 2017
Looking at the spec stated in Comment 1 can confirm this is a WontFix issue as our implementation works with the spec. I am sorry for any confusion caused to the OP. |
|||
►
Sign in to add a comment |
|||
Comment 1 by woxxom@gmail.com
, Apr 4 2017