W3C home > Mailing lists > Public > www-style@w3.org > September 2011

Re: [whatwg] add html-attribute for "responsive images"

From: Charles Pritchard <chuck@jumis.com>
Date: Thu, 01 Sep 2011 08:48:24 -0700
Message-ID: <4E5FA948.80101@jumis.com>
To: Anselm Hannemann - Novolo Designagentur <anselm@novolo.de>
CC: Karl Dubost <karld@opera.com>, "www-style@w3.org Style" <www-style@w3.org>, WHATWG List <whatwg@whatwg.org>
On 9/1/2011 1:30 AM, Anselm Hannemann - Novolo Designagentur wrote:
> Am 01.09.2011 um 01:46 schrieb Charles Pritchard:
>> On 8/31/2011 2:32 PM, Karl Dubost wrote:
>> Oh, that's not my proposal, that syntax was brought up by Tab Atkins.
>> It's already available. I was looking into how to handle <img [no 
>> source] style="background: url(..)" />
>> It may work with the following, now, or at some point in the future:
>> <img style="content: replaced; background-color: ...;" />
>> I'd proposed visibility: content-hidden; to be used with background 
>> and border.
> Why should we use inline-styles once again? Why should we load content 
> images with CSS? What about accessibility? Where to add alt-attribute 
> / title / ARIA etc.?

They're CSS styles, I'm using inline for demonstrative purposes.
I'd load images because the CSS <image> spec is more powerful than the 
HTML image spec,
offering things like -webkit-canvas (soon -element), various background 
sizing and fitting routines.

Accessibility is maintained exactly as it was, you'd put the alt 
attribute in the image tag.
Received on Thursday, 1 September 2011 15:49:04 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:04 UTC