[whatwg] Features for responsive Web design
mjs at apple.com
Wed May 16 22:26:36 PDT 2012
On May 16, 2012, at 9:39 PM, Silvia Pfeiffer <silviapfeiffer1 at gmail.com> wrote:
> On Wed, May 16, 2012 at 10:55 PM, Matthew Wilcox <mail at matthewwilcox.com> wrote:
>> Chalk me up as another making that mistake. Properties on elements
>> usually describe a property of the element. Not a property of
>> something else (like the viewport).
> If it does indeed rely on a rendering issue (like the size of the
> viewport), wouldn't it make more sense to make it a CSS feature? I
> think that would be less confusing and follow better the established
> separation of layout in html, styling(/rendering) in CSS.
CSS can handle this fine for presentational images (such as CSS background images). But it's not obvious that it's the best way to influence selection of content images references from <img>. Content images are meaningful, not just stylistic, so their variants are meaningful too (even if the choice of variant is influenced by presentational issues).
More information about the whatwg