Skip to content

Commit fb53398

Browse files
committed
Stub out :user-error pseudo
1 parent 3af4a22 commit fb53398

2 files changed

Lines changed: 40 additions & 2 deletions

File tree

selectors4/Overview.html

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,11 @@ <h2 class="no-num no-toc" id=contents>Table of Contents</h2>
327327
optionality pseudo-classes ‘<code class=css>:required</code>’ and
328328
<code class=css>:optional</code></a>
329329

330-
<li><a href="#rw-pseudos"><span class=secno>11.8. </span> The mutability
330+
<li><a href="#user-error-pseudos"><span class=secno>11.8. </span> The
331+
incorrect-input pseudo-class ‘<code
332+
class=css>:user-error</code></a>
333+
334+
<li><a href="#rw-pseudos"><span class=secno>11.9. </span> The mutability
331335
pseudo-classes ‘<code class=css>:read-only</code>’ and ‘<code
332336
class=css>:read-write</code></a>
333337
</ul>
@@ -2697,7 +2701,24 @@ <h3 id=opt-pseudos><span class=secno>11.7. </span> The optionality
26972701
submitted. Elements that are not form elements are neither required nor
26982702
optional.
26992703

2700-
<h3 id=rw-pseudos><span class=secno>11.8. </span> The mutability
2704+
<h3 id=user-error-pseudos><span class=secno>11.8. </span> The
2705+
incorrect-input pseudo-class ’‘<code
2706+
class=css>:user-error</code>’‘<code class=css></code></h3>
2707+
2708+
<p>The <code id=user-error-pseudo>:user-error</code> pseudo-element is
2709+
intended to represent an input element with incorrect input <em>after</em>
2710+
the user has interacted with it and attempted to input data into it. The
2711+
exact rules for when it matches are UA-dependent; however it must match
2712+
every invalid, out-of-range, or empty-but-required form element between
2713+
the time the user has attempted to submit the form and before the user has
2714+
interacted again with the form element, and may match such form elements
2715+
at other times.
2716+
2717+
<p class=issue> What parts of <a
2718+
href="https://developer.mozilla.org/en-US/docs/CSS/:-moz-ui-invalid">:-moz-ui-invalid
2719+
description</a> do we want to spec here? Or put as examples?
2720+
2721+
<h3 id=rw-pseudos><span class=secno>11.9. </span> The mutability
27012722
pseudo-classes ’‘<code class=css>:read-only</code>’‘<code
27022723
class=css> and </code>’‘<code class=css>:read-write</code>’‘<code
27032724
class=css></code></h3>

selectors4/Overview.src.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1949,6 +1949,23 @@ <h3 id="opt-pseudos">
19491949
form it belongs to can be validly submitted. Elements that are not
19501950
form elements are neither required nor optional.
19511951

1952+
<h3 id="user-error-pseudos">
1953+
The incorrect-input pseudo-class '':user-error''</h3>
1954+
1955+
<p>The <code id="user-error-pseudo">:user-error</code> pseudo-element
1956+
is intended to represent an input element with incorrect input
1957+
<em>after</em> the user has interacted with it and attempted to input data into it.
1958+
The exact rules for when it matches are UA-dependent;
1959+
however it must match every invalid, out-of-range, or empty-but-required form element
1960+
between the time the user has attempted to submit the form
1961+
and before the user has interacted again with the form element,
1962+
and may match such form elements at other times.
1963+
1964+
<p class="issue">
1965+
What parts of <a href="https://developer.mozilla.org/en-US/docs/CSS/:-moz-ui-invalid">:-moz-ui-invalid description</a> do we want to spec here?
1966+
Or put as examples?
1967+
</p>
1968+
19521969
<h3 id="rw-pseudos">
19531970
The mutability pseudo-classes '':read-only'' and '':read-write''</h3>
19541971

0 commit comments

Comments
 (0)