You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: selectors-4/deferred-for-level-5
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -127,3 +127,14 @@ The local link pseudo-class '':local-link''</h3>
127
127
What about if the document url has less than N segments,
128
128
and the link is same-page?
129
129
Should "null segments" count as matching, or not?
130
+
131
+
<h3 id="custom-state">Exposing custom state: the '':state()'' pseudo-class</h3>
132
+
133
+
The <dfn selector>:state()</dfn> pseudo-class takes a case-sensitive argument
134
+
and matches custom elements whose exposed custom states include the argument.
135
+
136
+
The grammar of the '':state()'' pseudo-class is:
137
+
138
+
<pre class=prod>:state( <ident> )</pre>
139
+
140
+
The exact matching behavior of '':state()'' pseudo-class is defined by the host language. See <a href="https://html.spec.whatwg.org/multipage/custom-elements.html#custom-state-pseudo-class">HTML's definition</a>.
0 commit comments