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

Re: [mediaqueries] Trying to understand the syntax design

From: Simon Pieters <simonp@opera.com>
Date: Mon, 31 Aug 2015 13:53:36 +0200
To: "Florian Rivoal" <florian@rivoal.net>, Håkon Wium Lie <howcome@opera.com>
Cc: "Lucas Wiener" <lucas@wiener.se>, "Tab Atkins Jr." <jackalmage@gmail.com>, "www-style list" <www-style@w3.org>
Message-ID: <op.x38dzmm3idj3kv@simons-macbook-pro.local>
On Wed, 06 May 2015 17:18:39 +0200, Håkon Wium Lie <howcome@opera.com>  
wrote:

> Florian Rivoal wrote:
>
>  > > Do you perhaps have any sources that states that MQ was designed  
> with min/max-width due to that, and that >=/<= is really preferred?
>  >
>  >  >=/<= is new. It could have been introduced a long time ago,
>  > but it wasn't
>
> Actually, the first MQ draft used <>:
>
>   http://people.opera.com/howcome/2000/css3/media-oct-23.html
>
> An objection was quickly raised:
>
>  | All the HTML examples are invalid since the ampersand character must
>  | be escaped (&amp;). Solution: either that's ok, or we use the word
>  | 'and' or the symbol '+'. Similarly with the '<' and '>' symbols.

And this was actually technically wrong. It was perfectly valid to use <  
and > inside attribute values in HTML4. It was also valid to use a lone  
ampersand, if the next character was not a name-start character.

-- 
Simon Pieters
Opera Software
Received on Monday, 31 August 2015 11:54:08 UTC

This archive was generated by hypermail 2.3.1 : Monday, 31 August 2015 11:54:08 UTC