Skip to content

Commit fee488a

Browse files
committed
[cssom] Make getComputedStyle return rules of the node's document.
Fixes #2403
1 parent 4f33e21 commit fee488a

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

cssom-1/Overview.bs

+1-9
Original file line numberDiff line numberDiff line change
@@ -2767,10 +2767,7 @@ partial interface Window {
27672767
The <dfn method for=Window>getComputedStyle(<var>elt</var>, <var>pseudoElt</var>)</dfn> method must run these
27682768
steps:
27692769
<ol>
2770-
<li>Let <var>doc</var> be the
2771-
{{Document}}
2772-
associated with the <code>Window</code> object on
2773-
which the method was invoked.
2770+
<li>Let <var>doc</var> be <var>elt</var>'s <a>node document</a>.
27742771
<li>Let <var>obj</var> be <var>elt</var>.
27752772
<li>If <var>pseudoElt</var> is as an
27762773
<a>ASCII case-insensitive</a> match for
@@ -2790,11 +2787,6 @@ steps:
27902787
<dt><a for="CSSStyleDeclaration">declarations</a>
27912788
<dd>All longhand properties that are <a lt="supported CSS property">supported CSS properties</a>, in lexicographical order, with the value being
27922789
the <a>resolved value</a> computed for <var>obj</var> using the style rules associated with <var>doc</var>.
2793-
2794-
Note: This means that even if <var>obj</var> is in a different document (e.g. one fetched via <code>XMLHttpRequest</code>) it will still use
2795-
the style rules associated with the document that is associated with the global object on which
2796-
{{Window/getComputedStyle()}} was invoked to compute the <a>CSS declaration block</a>.
2797-
27982790
<dt><a for="CSSStyleDeclaration">parent CSS rule</a>
27992791
<dd>Null.
28002792
<dt><a for="CSSStyleDeclaration">owner node</a>

0 commit comments

Comments
 (0)