|
1 | 1 |
|
2 | 2 | partial interface Window { |
3 | 3 |
|
4 | | - CSSStyleDeclaration getComputedStyle(Element elt); |
5 | | - |
6 | 4 | [Documentation= |
7 | 5 | "<p>The {@name} {@type} must run these steps:</p>\ |
8 | 6 | <ol>\ |
@@ -39,6 +37,36 @@ partial interface Window { |
39 | 37 | <p class='note'>Because of historical IDL limitations the {@name} {@type} used to be on\ |
40 | 38 | a separate interface, <code>ViewCSS</code>.</p>" |
41 | 39 | ] |
42 | | - CSSStyleDeclaration getComputedStyle(Element elt, DOMString pseudoElt); |
| 40 | + CSSStyleDeclaration getComputedStyle(Element elt, optional DOMString pseudoElt); |
43 | 41 |
|
| 42 | + [Documentation= |
| 43 | + "<p>The {@name} {@type} must run these steps:</p>\ |
| 44 | + <ol>\ |
| 45 | + <li><p>Let <var>doc</var> be the\ |
| 46 | + <code data-anolis-spec=dom>Document</code>\ |
| 47 | + associated with the <code data-anolis-spec=html>Window</code> object on\ |
| 48 | + which the method was invoked.</p></li>\ |
| 49 | + <li><p>Let <var>obj</var> be <var>elt</var>.</p></li>\ |
| 50 | + <li><p>If <var>pseudoElt</var> is as an\ |
| 51 | + <span data-anolis-spec=dom>ASCII case-insensitive</span> match for\ |
| 52 | + either '<code>:before</code>' or '<code>::before</code>' let\ |
| 53 | + <var>obj</var> be the '::before' pseudo-element of\ |
| 54 | + <var>elt</var>.</p></li>\ |
| 55 | + <li><p>If <var>pseudoElt</var> is as an\ |
| 56 | + <span data-anolis-spec=dom>ASCII case-insensitive</span> match for\ |
| 57 | + either '<code>:after</code>' or '<code>::after</code>' let\ |
| 58 | + <var>obj</var> be the '::after' pseudo-element of\ |
| 59 | + <var>elt</var>.</p></li>\ |
| 60 | + <li>\ |
| 61 | + <p>Return a <span>CSS declaration block</span> with the\ |
| 62 | + <span>CSS declaration block readonly flag</span> set and the\ |
| 63 | + <span>CSS declaration block declarations</span> set to all properties\ |
| 64 | + the user agent supports with as value the computed value\ |
| 65 | + for <var>obj</var> using the user agent-level style rules and user-level style\ |
| 66 | + rules associated with <var>doc</var>, ignoring author-level style rules,\ |
| 67 | + transitions, animations, override style sheets and presentational hints.</p>\ |
| 68 | + </li>\ |
| 69 | + </ol>" |
| 70 | + ] |
| 71 | + CSSStyleDeclaration getDefaultComputedStyle(Element elt, optional DOMString pseudoElt); |
44 | 72 | }; |
0 commit comments