File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2769,16 +2769,18 @@ steps:
27692769<ol>
27702770 <li> Let <var> doc</var> be <var> elt</var> 's <a>node document</a> .
27712771 <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+
27822784 <li>
27832785 Return a live <a>CSS declaration block</a> with the following properties:
27842786 <dl>
You can’t perform that action at this time.
0 commit comments