W3C home > Mailing lists > Public > www-style@w3.org > July 2010

Re: [CSS3 Values] "rem" unit underdefined when there is no root element

From: L. David Baron <dbaron@dbaron.org>
Date: Wed, 21 Jul 2010 19:48:16 -0700
To: Boris Zbarsky <bzbarsky@MIT.EDU>
Cc: "Tab Atkins Jr." <jackalmage@gmail.com>, www-style list <www-style@w3.org>
Message-ID: <20100722024816.GA32375@pickering.dbaron.org>
On Wednesday 2010-07-21 22:27 -0400, Boris Zbarsky wrote:
> On 7/21/10 7:29 PM, Tab Atkins Jr. wrote:
> >In what situations do you have no root element?
> 
> When someone has removed it from the DOM from JS.  Note that after
> that point style data might still need to be computed for
> getComputedStyle calls (which is how I encountered the situation).
> 
> dbaron also mentioned that might be media query situations which
> have similar issues, but I don't know the details.

Yes, if script removes the root element and then evaluates a media
query using window.styleMedia.matchMedia()

-David

-- 
L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/
Received on Thursday, 22 July 2010 02:48:48 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:29 GMT