@@ -326,15 +326,15 @@ by adding:</p>
326326 ;
327327
328328<dfn>supports_negation</dfn>
329- : <a href="https://www.w3.org/TR/css3-mediaqueries/#syntax">NOT</a> <a href="https://www.w3.org/TR/CSS21/grammar.html#scanner">S</a> + <a>supports_condition_in_parens</a>
329+ : <a href="https://www.w3.org/TR/css3-mediaqueries/#syntax">NOT</a> <a href="https://www.w3.org/TR/CSS21/grammar.html#scanner">S</a> * <a>supports_condition_in_parens</a>
330330 ;
331331
332332<dfn>supports_conjunction</dfn>
333- : <a>supports_condition_in_parens</a> ( <a href="https://www.w3.org/TR/CSS21/grammar.html#scanner">S</a> + <a href="https://www.w3.org/TR/css3-mediaqueries/#syntax">AND</a> <a href="https://www.w3.org/TR/CSS21/grammar.html#scanner">S</a> + <a>supports_condition_in_parens</a> )+
333+ : <a>supports_condition_in_parens</a> ( <a href="https://www.w3.org/TR/CSS21/grammar.html#scanner">S</a> * <a href="https://www.w3.org/TR/css3-mediaqueries/#syntax">AND</a> <a href="https://www.w3.org/TR/CSS21/grammar.html#scanner">S</a> * <a>supports_condition_in_parens</a> )+
334334 ;
335335
336336<dfn>supports_disjunction</dfn>
337- : <a>supports_condition_in_parens</a> ( <a href="https://www.w3.org/TR/CSS21/grammar.html#scanner">S</a> + <a>OR</a> <a href="https://www.w3.org/TR/CSS21/grammar.html#scanner">S</a> + <a>supports_condition_in_parens</a> )+
337+ : <a>supports_condition_in_parens</a> ( <a href="https://www.w3.org/TR/CSS21/grammar.html#scanner">S</a> * <a>OR</a> <a href="https://www.w3.org/TR/CSS21/grammar.html#scanner">S</a> * <a>supports_condition_in_parens</a> )+
338338 ;
339339
340340<dfn>supports_declaration_condition</dfn>
@@ -513,9 +513,6 @@ and ''not'' operators to be mixed without a layer of parentheses.</p>
513513</pre>
514514</div>
515515
516- <p> Furthermore, whitespace is required after a ''not'' and on both
517- sides of an ''and'' or ''or'' .</p>
518-
519516<p> The declaration being tested must always occur within parentheses,
520517when it is the only thing in the expression.<p>
521518
@@ -1038,6 +1035,12 @@ Changes</h2>
10381035<a href="https://www.w3.org/TR/2013/CR-css3-conditional-20130404/">4 April 2013 Candidate Recommendation</a> :
10391036
10401037<ul>
1038+ <li> Drop requirement for spaces around ''and'' , ''or'' , and ''not'' keywords
1039+ for consistency with <a href="http://www.w3.org/TR/css3-mediaqueries/">Media Queries</a>
1040+ (which are themselves constrained by compatibility with the output of some CSS minimizers
1041+ that rely on some of the more arcane aspects of CSS tokenization).
1042+ Note that white space--or a comment--is still required <em> after</em> these keywords,
1043+ since without it they and the ensuing opening parenthesis will be tokenized as a function opening token.
10411044 <li> Allow the <code title=''> supports()</code> method
10421045 to imply parentheses for simple declarations,
10431046 for consistency with the ''@import'' rule’s ''supports()'' function.
0 commit comments