1 Sep 2011 01:46
Re: add html-attribute for "responsive images"
On 8/31/2011 2:32 PM, Karl Dubost wrote: > Anselm, > (setting reply-to on www-style) > > Seen this today, to remind people that it is not just > something up in the air. People need it. > http://www.webmonkey.com/2011/08/speed-up-your-responsive-designs-with-adaptive-images/ > > I wonder if it could be handled by CSS in fact. > I guess Anselm, you could ask there. > On the www-style mailing-list, Charles proposed [1] > > content: url(img.jpg) replaced; 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. > I'm not sure I fully understand the proposal > but we can imagine something that could fit nicely > with the CSS Generated Content Module Level 3 [2] > > <img class="responsive" src="http://example.org/foo" alt="wiizz"/> >(Continue reading)
RSS Feed