W3C home > Mailing lists > Public > public-respimg@w3.org > May 2012

Is algorithm for selecting based on media query defined?

From: Kornel Lesiński <kornel@geekhood.net>
Date: Thu, 17 May 2012 15:18:23 +0100
To: public-respimg@w3.org
Cc: "Matthew Wilcox" <mail@matthewwilcox.com>
Message-ID: <op.wegh0xoste2ec8@aimac.local>

What's the algorithm for selecting which image is picked based on media  
queries?

e.g. which one will be picked in this case:

<source media="all and (orientation:portrait)">
<source media="all">
<source media="all and (max-width:300px)">
<source>
<img>

when screen is 200px wide in portrait mode?

and which one when screen is 200px wide in landscape mode?


Same question for this case:

<source>
<source media="all">
<source media="all and (orientation:portrait)">
<source media="all and (max-width:300px)">


-- 
regards, Kornel Lesiński
Received on Thursday, 17 May 2012 14:18:59 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 17 May 2012 14:19:00 GMT