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

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 UTC