W3C home > Mailing lists > Public > www-style@w3.org > August 2011

Re: [css3-conditional] Where () are ok inside @supports?

From: L. David Baron <dbaron@dbaron.org>
Date: Tue, 9 Aug 2011 20:12:08 -0700
To: Alan Gresley <alan@css-class.com>
Cc: www-style@w3.org, Vitor Menezes <vmenezes@mozilla.com>
Message-ID: <20110810031208.GA17629@pickering.dbaron.org>
On Wednesday 2011-08-10 12:23 +1000, Alan Gresley 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

And the lack of it in media queries makes media queries quite
difficult to work with.  For example, it's hard to write a pair of
style sheets for:
 * screen, less than or equal to 400px
 * screen, greater than 400px
without either (a) making assumptions about pixel rounding that
probably aren't valid in general or (b) dealing with the fact that
both style sheets will apply at exactly 400px.

I think it's a pretty important use case for @supports, especially
in cases where authors end up testing prefixed properties (since
they'll want to nest an "or" inside an "and").


𝄞   L. David Baron                         http://dbaron.org/   𝄂
𝄢   Mozilla Corporation               http://www.mozilla.com/   𝄂
Received on Wednesday, 10 August 2011 03:12:35 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:03 UTC