File tree 1 file changed +12
-10
lines changed
1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -2769,16 +2769,18 @@ steps:
2769
2769
<ol>
2770
2770
<li> Let <var> doc</var> be <var> elt</var> 's <a>node document</a> .
2771
2771
<li> Let <var> obj</var> be <var> elt</var> .
2772
- <li> If <var> pseudoElt</var> is as an
2773
- <a>ASCII case-insensitive</a> match for
2774
- either ":before" or "::before" let
2775
- <var> obj</var> be the ''::before'' pseudo-element of
2776
- <var> elt</var> .
2777
- <li> If <var> pseudoElt</var> is as an
2778
- <a>ASCII case-insensitive</a> match for
2779
- either ":after" or "::after" let
2780
- <var> obj</var> be the ''::after'' pseudo-element of
2781
- <var> elt</var> .
2772
+ <li> If <var> pseudoElt</var> is provided, and it's not the empty string, then:
2773
+ <ol>
2774
+ <li> If it is an <a>ASCII case-insensitive</a> match for a pseudo-element
2775
+ that the UA supports, other than ''::slotted()'' , let <var> obj</var>
2776
+ be the given pseudo-element of <var> elt</var> .
2777
+ Otherwise <a>throw</a> a {{TypeError}} exception.
2778
+ </ol>
2779
+
2780
+ Note: CSS2 pseudo-elements should match both the double and single-colon
2781
+ versions. That is, both <code> :before</code> and <code> ::before</code> should
2782
+ match above.
2783
+
2782
2784
<li>
2783
2785
Return a live <a>CSS declaration block</a> with the following properties:
2784
2786
<dl>
You can’t perform that action at this time.
0 commit comments