- From: Florian Rivoal <florian@rivoal.net>
- Date: Mon, 4 May 2015 16:37:04 +0200
- To: Lucas Wiener <lucas@wiener.se>
- Cc: www-style@w3.org
Received on Monday, 4 May 2015 14:37:28 UTC
> On 29 Apr 2015, at 14:11, Lucas Wiener <lucas@wiener.se> wrote: > > Hello, > > I'm trying to understand the reasons for the syntax design of media queries. > Are there any reasons why media queries are written "@media (min-width: 500px) { … }" instead of "@media (width >= 500px) { … }"? Legacy. The min- and max- syntax were what was introduced way back, chiefly (I believe, that's before my time) due to compat concerns of using the < (and >) characters inside html. But you're right, "@media (width >= 500px)" is much nicer to write, so the spec now allows that. - Florian
Received on Monday, 4 May 2015 14:37:28 UTC