- 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>
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