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

Re: [css3-media-queries] More granular conditional logic

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Wed, 02 Feb 2011 21:04:40 -0500
Message-ID: <4D4A0D38.5010101@mit.edu>
To: Antony Kennedy <antony@silversquid.com>
CC: www-style list <www-style@w3.org>
On 2/2/11 8:57 PM, Antony Kennedy wrote:
> Which is a shame - because it's the only pure CSS method. Unless you know another?

There isn't one.  There have been several proposals for 
feature-detection methods in the past, though.

>> 1)  Can be parsed without knowing anything about this thing you don't support.
> Currently, if a media feature is not known, the entire media query evaluates to "not all". This does not seem a very future-proof methodology. It would make more sense for that single media feature to evaluate to zero - i.e. false. Negating that with a local "not" would work well.

That's not future-proof either.  Say we had this system.  Assume a new 
feature called "interactive" is introduced which is true for interactive 
media.  With your proposal, |not interactive| would test true in all 
existing browsers that haven't been updated to support this feature, 
which seems undesirable (since in fact they _are_ interactive)....

>> 2)  Is guaranteed to be a boolean support check.
> This is true. Perhaps something like:
> @media screen and (supports:property)
> and
> @media screen and (doesnotsupport:property)
> …works better?

I believe that sort of thing has been proposed in the past, yes....

Received on Thursday, 3 February 2011 02:05:13 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:55 UTC