W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2012

Re: [whatwg] So if media-queries aren't for determining the media to be used what are they for?

From: Kornel Lesiński <kornel@geekhood.net>
Date: Wed, 16 May 2012 00:23:22 +0100
To: whatwg@lists.whatwg.org
Message-ID: <op.wedhw8vste2ec8@aimac.local>
On Tue, 15 May 2012 23:17:54 +0100, Chris Heilmann <codepo8@gmail.com>  

> The fetish for brevity is something I never understood. More  
> understandable code is faster to write than cryptic short code.

There is significant difference in verbosity for a *very common case* of  
serving images for high-dpi ("Retina") display (which I suspect is only  
going to get more common):

<img src="lowdpi" srcset="hidpi 2x">


<source media="(min-device-pixel-ratio: 2)" src="hidpi">
<img src="lowdpi">

It will get tiring when it'll have to be used for every image on the page.

Authors couldn't be bothered to type extra markup for all vendor's  
prefixes in CSS. Nobody bothered with verbose SVG gradient syntax which  
was usable before CSS gradients. HTML5 DOCTYPE is loved. Brevity matters.

regards, Kornel Lesiński
Received on Tuesday, 15 May 2012 23:24:10 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:42 UTC