- From: Tab Atkins Jr. <jackalmage@gmail.com>
- Date: Tue, 12 Nov 2013 00:57:26 -0800
- To: "L. David Baron" <dbaron@dbaron.org>
- Cc: www-style list <www-style@w3.org>
On Tue, Nov 12, 2013 at 12:54 AM, L. David Baron <dbaron@dbaron.org> wrote: > On Tuesday 2013-11-12 00:40 -0800, Tab Atkins Jr. wrote: >> According to the grammar in Media Queries, the "not" keyword is only >> allowed in front of a media type. You can't put it in front of a set >> of media features, like "not (color)". >> >> However, as far as I can tell, using a "not" negates the entire query, >> not just the type. That is, "not screen and (color)" means "not a >> color screen", rather than "not a screen, but has color". >> >> Am I right in interpreting this? If not, I need to revise the spec to >> make this more clear. > > I believe you are correct. Ok. >> If I am, does anyone have any clue why this grammar restriction >> exists? It seems more reasonable to let it apply to media features >> without a media type as well. > > I'd like to relax these restrictions and make the media queries > grammar a lot more like the @supports condition grammar. I think > there were others in favor the last time I brought that up. > > (I'm hoping it's one of the big things on the table for the next > level of media queries, along with refactoring the characteristics > of media types into media queries and pretty much deprecating the > types.) Yeah, I am down with this. MQ4 right now deprecates all but all/screen/print. (I was working on it this weekend.) ~TJ
Received on Tuesday, 12 November 2013 08:58:13 UTC