Skip to content

Commit ae13395

Browse files
committed
[cssom] Use CSS/Parse in getComputedStyle().
Fixes w3c#3875
1 parent 20b1ac6 commit ae13395

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

cssom-1/Overview.bs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2807,10 +2807,9 @@ steps:
28072807
<li>Let <var>obj</var> be <var>elt</var>.
28082808
<li>If <var>pseudoElt</var> is provided, and it's not the empty string, then:
28092809
<ol>
2810-
<li>If it is an <a>ASCII case-insensitive</a> match for a pseudo-element
2811-
that the UA supports, other than ''::slotted()'', let <var>obj</var>
2812-
be the given pseudo-element of <var>elt</var>.
2813-
Otherwise <a>throw</a> a {{TypeError}} exception.
2810+
<li>[=CSS/Parse=] <var>pseudoElt</var> as a <<pseudo-element-selector>>, and let <var>type</var> be the result.
2811+
<li>If <var>type</var> is failure, or is an ''::slotted()'' or ''::part()'' pseudo-element, <a>throw</a> a {{TypeError}} exception.
2812+
<li>Otherwise let <var>obj</var> be the given pseudo-element of <var>elt</var>.
28142813
</ol>
28152814

28162815
Note: CSS2 pseudo-elements should match both the double and single-colon

0 commit comments

Comments
 (0)