- From: Simon Sapin <simon.sapin@kozea.fr>
- Date: Thu, 15 Nov 2012 22:10:19 +0100
- To: Florian Rivoal <florian@rivoal.net>
- CC: Boris Zbarsky <bzbarsky@mit.edu>, Kenneth Rohde Christiansen <kenneth.christiansen@gmail.com>, www-style@w3.org
Le 25/10/2012 11:24, Florian Rivoal a écrit : > On Tue, 23 Oct 2012 17:24:39 +0200, Kenneth Rohde Christiansen > <kenneth.christiansen@gmail.com> wrote: >>>> Is "not (media-feature)" forbidden per syntax? >>> Yes. >> >> It seems a bit counter intuitive and conflicting with: >> >> "The logical NOT can be expressed through the ‘not’ keyword. The >> presence of the keyword ‘not’ at the beginning of the media query >> negates the result. I.e., if the media query had been true without the >> ‘not’ keyword it will become false, and vice versa." >> >> I stumpled upon this while debugging a website stating that we (tested >> with Chrome) didn't support the monochrome media query. >> >> Maybe we should just fix the grammar? > > I agree it is not very intuitive the way it is, especially since media > types are less useful than initially intended. I would be happy to make > this change, but given how long media queries have been out there, > supported by everybody, I am not sure we can safely do it. > > As the syntax you want looks like it should work already, I am sure > people have used it, and they may have gotten their page to look the > way they want without noticing that the media query didn't work. If > we make it work, these rules will start having an effect, which > might no longer be the one originally desired. > > What does the rest of the WG think? Is this desirable (I think so)? > Is this safe enough (I don't know)? This same issue just came up again: http://www.quirksmode.org/blog/archives/2012/11/what_the_hells.html I think we should change the grammar. How can we assess how "safe" the change would be? -- Simon Sapin
Received on Thursday, 15 November 2012 21:10:55 UTC