Re: [whatwg] Problems with width/height descriptors in srcset

On Fri, May 18, 2012 at 2:17 AM, Markus Ernst <derernst@gmx.ch> wrote:
> <h1><img src="small.png" srcset="medium.png min-width:30em, large.png
> min-width:50em"></h1>
>
> <p><img src="small.png" srcset="medium.png min-width:30em, large.png
> min-width:50em"></p>
>
> Is em different in these 2 elements, or is it actually rem? And whatever
> answer, is it a problem or a feature?

It's the same in those two, but it's not really rem - it's the initial
font size, just like in Media Queries.  (rem is the size of an em on
the root element, which depends on style data.)

Not really a feature or a bug, just a necessity.

~TJ

Received on Friday, 18 May 2012 14:10:05 UTC