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

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

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 21 Jul 2010 19:49:42 -0700
Message-ID: <AANLkTimzHWTTFdGH38f3rVLqnJ7YL7FMIz-kbDQuLBdc@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: www-style list <www-style@w3.org>
On Wed, Jul 21, 2010 at 7:27 PM, Boris Zbarsky <bzbarsky@mit.edu> 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).

Cool, that's what I'd thought, I just wanted to make sure there
weren't more situations I hadn't thought of.

> dbaron also mentioned that might be media query situations which have
> similar issues, but I don't know the details.

Ah, I see.

I suppose, then, we just need to find a way to "re-root" a tree?  Just
seek up the element-tree until you find a parentless element?

Received on Thursday, 22 July 2010 02:50:34 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:48 UTC