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

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