- From: Emilio Cobos Álvarez via GitHub <sysbot+gh@w3.org>
- Date: Tue, 06 Mar 2018 14:39:59 +0000
- To: public-css-archive@w3.org
emilio has just created a new issue for https://github.com/w3c/csswg-drafts: == Consider changing the definition of getComputedStyle when called from a different document to match reality. == Somewhat related to https://github.com/w3c/csswg-drafts/issues/1548 and https://github.com/w3c/csswg-drafts/issues/1964. Right now the spec doesn't really match any implementations. Implementations usually return the style of the element styled as the document it's in (Firefox doesn't in some cases, I can try to explain if people are curious). In any case, for a visible iframe and an element in the document, the behavior of all engines is definitely not the one required by the spec in https://drafts.csswg.org/cssom/#dom-window-getcomputedstyle: > Note: This means that even if obj is in a different document (e.g. one fetched via XMLHttpRequest) it will still use the style rules associated with the document that is associated with the global object on which getComputedStyle() was invoked to compute the CSS declaration block. And they just return the style of the element for the document they're in. cc @lilles @FremyCompany @bzbarsky @dbaron Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2403 using your GitHub account
Received on Tuesday, 6 March 2018 14:40:05 UTC