# HG changeset patch # User L. David Baron # Date 1360183230 25200 # Node ID 34b185ae3bac4c1314d473b0818699fc3f0a9713 # Parent ab8be4484fdb681e77adac16b3b2f0bd118e4dba [css3-conditional] Require whitespace around 'and' and 'or' and after 'not'. Resolves last call issue 2. As resolved in http://lists.w3.org/Archives/Public/www-style/2012Dec/0330.html diff -r ab8be4484fdb -r 34b185ae3bac css3-conditional/Overview.html --- a/css3-conditional/Overview.html Wed Feb 06 13:15:40 2013 -0700 +++ b/css3-conditional/Overview.html Wed Feb 06 13:40:30 2013 -0700 @@ -575,7 +575,7 @@
supports_rule
   : SUPPORTS_SYM S* supports_condition supports_condition S* group_rule_body
   ;
 
@@ -592,7 +592,7 @@
 supports_condition_in_parens
   : ( '(' S* supports_condition ')' S* ) | supports_condition S* ')' ) | supports_declaration_condition |
     general_enclosed
@@ -600,32 +600,32 @@
 
 supports_negation
-  : NOT S* supports_condition_in_parens
   ;
 
 supports_conjunction
   : supports_condition_in_parens ( AND S* supports_condition_in_parens ( S+ AND S+ supports_condition_in_parens )+
   ;
 
 supports_disjunction
   : supports_condition_in_parens ( OR S* supports_condition_in_parens ( S+ OR S+ supports_condition_in_parens )+
   ;
 
 supports_declaration_condition
-  : '(' S* declaration ')' S*
+  : '(' S* declaration ')'
   ;
 
 general_enclosed
-  : ( FUNCTION | '(' ) ( any | unused )* ')' S*
+  : ( FUNCTION | '(' ) ( any | unused )* ')'
   ;
 
@@ -795,6 +795,10 @@ } +

Furthermore, whitespace is required after a ‘not’ and on both sides of an ‘and’ or ‘or’. +

The declaration being tested must always occur within parentheses, when it is the only thing in the expression. diff -r ab8be4484fdb -r 34b185ae3bac css3-conditional/Overview.src.html --- a/css3-conditional/Overview.src.html Wed Feb 06 13:15:40 2013 -0700 +++ b/css3-conditional/Overview.src.html Wed Feb 06 13:40:30 2013 -0700 @@ -371,7 +371,7 @@

and the grammar by adding

supports_rule
-  : SUPPORTS_SYM S* supports_condition group_rule_body
+  : SUPPORTS_SYM S* supports_condition S* group_rule_body
   ;
 
 supports_condition
@@ -380,28 +380,28 @@
   ;
 
 supports_condition_in_parens
-  : ( '(' S* supports_condition ')' S* ) | supports_declaration_condition |
+  : ( '(' S* supports_condition S* ')' ) | supports_declaration_condition |
     general_enclosed
   ;
 
 supports_negation
-  : NOT S* supports_condition_in_parens
+  : NOT S+ supports_condition_in_parens
   ;
 
 supports_conjunction
-  : supports_condition_in_parens ( AND S* supports_condition_in_parens )+
+  : supports_condition_in_parens ( S+ AND S+ supports_condition_in_parens )+
   ;
 
 supports_disjunction
-  : supports_condition_in_parens ( OR S* supports_condition_in_parens )+
+  : supports_condition_in_parens ( S+ OR S+ supports_condition_in_parens )+
   ;
 
 supports_declaration_condition
-  : '(' S* declaration ')' S*
+  : '(' S* declaration ')'
   ;
 
 general_enclosed
-  : ( FUNCTION | '(' ) ( any | unused )* ')' S*
+  : ( FUNCTION | '(' ) ( any | unused )* ')'
   ;
 
@@ -560,6 +560,9 @@ } +

Furthermore, whitespace is required after a ''not'' and on both +sides of an ''and'' or ''or''.

+

The declaration being tested must always occur within parentheses, when it is the only thing in the expression.