W3C home > Mailing lists > Public > public-css-archive@w3.org > June 2017

Re: [csswg-drafts] [cssom] [css-display] [css-values] Clarify behavior of window.getComputedStyle on detached subtrees, and the definition of "the root element".

From: Boris Zbarsky via GitHub <sysbot+gh@w3.org>
Date: Wed, 21 Jun 2017 19:59:40 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-310188452-1498075179-sysbot+gh@w3.org>
> Servo uses the document element of the document 

Which document?  The node document of the element passed to `getComputedStyle`, or the document the style is being computed in (that is, the document of the window which was the `this` for the `getComputedStyle` call)?

> outside of the document

"The document" (which one, per above), or "a document" or "a document that has a browsing context"?  I'm pretty sure they compute style for an element that is in its node document's document tree if that node document has a browsing context.  Dunno what they do if you `getComputedStyle` on something in an XHR `responseXML`, say.

GitHub Notification of comment by bzbarsky
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1548#issuecomment-310188452 using your GitHub account
Received on Wednesday, 21 June 2017 19:59:46 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 19 October 2021 01:30:34 UTC