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

> 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