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>  
wrote:

> 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">

vs

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


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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 30 January 2013 18:48:08 GMT