W3C home > Mailing lists > Public > www-style@w3.org > February 2010

[css3-background] background-repeat über-nit

From: Jeff Walden <jwalden@MIT.EDU>
Date: Wed, 24 Feb 2010 13:32:14 -0800
Message-ID: <4B859ADE.9060401@mit.edu>
To: www-style@w3.org
background-repeat is a comma-separated list of <repeat-style>.  The grammar for that is:

   <repeat-style> = repeat-x | repeat-y | [repeat | space | round | no-repeat]{1,2}

The list of meanings for the single-value cases is in this order:

   ‘repeat-x’
   ‘repeat-y’
   ‘repeat’
   ‘no-repeat’
   ‘space’
   ‘round’

The list of meanings for the double-value cases is in this order:

   ‘repeat’
   ‘no-repeat’
   ‘space’
   ‘round’

These two lists are ordered consistently with each other but not with the <repeat-style> grammar.  It would seem slightly better to use this grammar (only change is a semantically-equivalent reordering) instead, so that the order of terms in <repeat-style> is the same as the orders in the explanations:

   <repeat-style> = repeat-x | repeat-y | [repeat | no-repeat | space | round]{1,2}

Jeff
Received on Wednesday, 24 February 2010 21:32:49 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:24 GMT