W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2012

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

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Fri, 18 May 2012 07:09:12 -0700
Message-ID: <CAAWBYDD7s5cHom=FMkwrixTLnsAorxEBGfsnqA6XY+Cx2PEyUQ@mail.gmail.com>
To: Markus Ernst <derernst@gmx.ch>
Cc: Jeremy Keith <jeremy@adactio.com>, whatwg@lists.whatwg.org
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.

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

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:42 UTC