Skip to content

Commit 8844277

Browse files
committed
[css-forms] Use :is() for UA sheet.
This is more compact, and reveals that <input type=reset> was forgotten in a couple places.
1 parent 6ca38b5 commit 8844277

File tree

1 file changed

+10
-19
lines changed

1 file changed

+10
-19
lines changed

css-forms-1/Overview.bs

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ spec:css-forms-1; type:value; for:/; text:::placeholder
238238
</pre>
239239

240240
See [[#date-time-pseudos]]
241-
241+
242242
</td>
243243
</tr>
244244
<tr>
@@ -366,7 +366,7 @@ spec:css-forms-1; type:value; for:/; text:::placeholder
366366
the portion that allows the user to adjust the progress of the control.
367367

368368
NOTE: It is typically natively rendered as a circle in most user agents.
369-
369+
370370
<dt><dfn>::slider-track</dfn>
371371
<dd>
372372
The ''::slider-track'' pseudo-element represents the portion containing
@@ -479,7 +479,7 @@ spec:css-forms-1; type:value; for:/; text:::placeholder
479479
<dd>
480480
The ''::step-control'' pseudo-element represents
481481
the portion of a number input that contains the up and down buttons.
482-
482+
483483
<dt><dfn>::step-up</dfn>
484484
<dd>
485485
The ''::step-up'' pseudo-element represents
@@ -543,7 +543,7 @@ spec:css-forms-1; type:value; for:/; text:::placeholder
543543
<dd>
544544
The ''::field-component'' pseudo-element represents
545545
the portions of the control that contain the date/time component values.
546-
546+
547547
<dt><dfn>::field-separator</dfn>
548548
<dd>
549549
The ''::field-separator'' pseudo-element represents
@@ -701,7 +701,7 @@ spec:css-forms-1; type:value; for:/; text:::placeholder
701701

702702
<pre class=propdef>
703703
Name: slider-orientation
704-
Value: auto | left-to-right | right-to-left | top-to-bottom | bottom-to-top
704+
Value: auto | left-to-right | right-to-left | top-to-bottom | bottom-to-top
705705
Initial: auto
706706
Inherited: no
707707
Percentages: n/a
@@ -803,7 +803,7 @@ spec:css-forms-1; type:value; for:/; text:::placeholder
803803
</div>
804804

805805
<h2 class="no-num non-normative" id="basic-appearance-stylesheet">Appendix A: Basic Appearance User Agent Stylesheet</h2>
806-
806+
807807
ISSUE: Move to HTML.
808808

809809
ISSUE: This section needs refining with implementation.
@@ -968,10 +968,7 @@ Selects are only button-like when they're a [drop-down box](https://html.spec.wh
968968
button,
969969
::file-selector-button,
970970
select,
971-
input[type="color"],
972-
input[type="button"],
973-
input[type="reset"],
974-
input[type="submit"] {
971+
input:is([type="color"], [type="button"], [type="reset"], [type="submit"]) {
975972
border: 1px solid currentColor;
976973
background-color: transparent;
977974
color: inherit;
@@ -1009,27 +1006,21 @@ input[type="submit"] {
10091006
10101007
button:enabled:hover,
10111008
select:enabled:hover,
1012-
input[type="color"]:enabled:hover,
1013-
input[type="button"]:enabled:hover,
1014-
input[type="submit"]:enabled:hover,
1009+
input:is([type="color"], [type="button"], [type="reset"], [type="submit"]):enabled:hover,
10151010
input[type="file"]:enabled::file-selector-button:hover {
10161011
background-color: color-mix(currentColor 10%, transparent);
10171012
}
10181013
10191014
button:enabled:active,
10201015
select:enabled:active,
1021-
input[type="color"]:enabled:active,
1022-
input[type="button"]:enabled:active,
1023-
input[type="submit"]:enabled:active,
1016+
input:is([type="color"], [type="button"], [type="reset"], [type="submit"]):enabled:active,
10241017
input[type="file"]:enabled::file-selector-button:active {
10251018
background-color: color-mix(currentColor 20%, transparent);
10261019
}
10271020
10281021
button:disabled,
10291022
select:disabled,
1030-
input[type="color"]:disabled,
1031-
input[type="button"]:disabled,
1032-
input[type="submit"]:disabled,
1023+
input:is([type="color"], [type="button"], [type="reset"], [type="submit"]):disabled,
10331024
input[type="file"]:disabled::file-selector-button {
10341025
color: color-mix(currentColor 50%, transparent);
10351026
}

0 commit comments

Comments
 (0)