Re: New responsive images proposal

Sorry if this is a stupid question, but the use of media queries in the
src attribute brings up an interesting question: Why don't we just let
the src attribute be specified by CSS?

<img alt="A cat" src="default-cat.jpeg" class="cat" />

img.cat {
    @media (max-width: 600px) {
        src: "smaller-cat.jpeg";
    }
    @media (max-width: 400px) {
        src: "even-smaller-cat.jpeg";
    }
}

On 09/27/2013 03:31 AM, Robin Berjon wrote:
> Hi,
>
> Tab published this:
>
>     http://tabatkins.github.io/specs/respimg/Overview.html
>
> As a responsive images proposal, it certainly has a number of
> interesting properties. It address the use cases well while catering
> to fallback and without excessively crazy syntax.
>

Received on Friday, 27 September 2013 19:43:12 UTC