- From: Alan Gresley <alan@css-class.com>
- Date: Wed, 10 Aug 2011 20:12:04 +1000
- To: "Tab Atkins Jr." <jackalmage@gmail.com>
- CC: "L. David Baron" <dbaron@dbaron.org>, www-style@w3.org, Vitor Menezes <vmenezes@mozilla.com>
On 10/08/2011 12:29 PM, Tab Atkins Jr. wrote: > On Tue, Aug 9, 2011 at 7:23 PM, Alan Gresley<alan@css-class.com> wrote: >> I never liked this form of nesting. It does not occur in CSS3 mediaqueries >> nor any other syntax that has statements with blocks. I believe that several >> arguments appearing between blocks are better separated by commas or >> keywords, like shown below for the ease of commenting parts out but more so >> to hunt down parsing errors. >> >> @supports not (display:block and display:inline) >> >> @supports not (display:block , display:inline) > > Neither of these work, as the property values may include commas or > the keyword "and". Can you please give me examples of these? Off the top of my head, I can think of comma separated values for the properties 'background' and 'box-shadow'. Apart from mediaqueries, where is the keyword 'and' used? > You absolutely must enclose the declarations in > parens (or some other delimiter that cannot be mistaken for part of a > value). > > ~TJ OK, another possible delimiter. @supports (display:block) and ([display:inline]) @supports not ([display:block] and [display:inline]) @supports ([display:block]) -- Alan Gresley http://css-3d.org/ http://css-class.com/
Received on Wednesday, 10 August 2011 10:12:22 UTC