[whatwg] Media queries, viewport dimensions, srcset and picture

Markus Ernst derernst at gmx.ch
Wed Jun 6 05:53:37 PDT 2012


Am 06.06.2012 14:36 schrieb Henri Sivonen:
> On Wed, May 23, 2012 at 6:21 PM, Florian Rivoal<florianr at opera.com>  wrote:
>> 1) simplyfy srcset to only accept the *x qualifier
>
> Is there a good reason to believe that * will be something other than
> a power of two?
>
> That is, could we just optimize the *x syntax away and specify that
> the first option is 1x, the second is 2x, the third is 4x, etc.?

Explicitly specifying the * in *x allows more flexibility in the future 
for cases such as:
- If sometime most displays will have 2x or higher resolutions, authors 
might want to set 1x versions aside.
- If 3x or whatever displays should occur, the spec should be suitable 
for them, too.
- Some UAs might decide to progressively load sources in order to 
emulate what we know from interlaced GIFs. Authors could for this 
purpose add 0.5x and even 0.25x versions.



More information about the whatwg mailing list