Skip to content

Commit 71d03b9

Browse files
[css-forms-1] Improve slider UA styles 他
Fix syntax error in stylesheet w3c/csswg-drafts@0e86827 Use :is() for UA sheet. w3c/csswg-drafts@8844277 Improve slider UA styles w3c/csswg-drafts@6ca38b5 Fix some typos in the UA sheet. w3c/csswg-drafts@56f9086
1 parent d1b6207 commit 71d03b9

1 file changed

Lines changed: 56 additions & 23 deletions

File tree

css-forms-ja.html

Lines changed: 56 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@
159159
●●options
160160

161161
spec_title:CSS Gap Decorations Module Level 1
162-
spec_date:2026-03-09
163-
trans_update:2026-03-12
162+
spec_date:2026-03-17
163+
trans_update:2026-03-17
164164
source_checked:
165165
page_state_key:CSS
166166
original_url:https://drafts.csswg.org/css-forms-1/
@@ -238,6 +238,7 @@
238238
p.height:~SIZING#propdef-height
239239
p.inline-size:~CSSLOGICAL#propdef-inline-size
240240
p.inset:~CSSPOS#propdef-inset
241+
p.inset-inline-end:~CSSPOS#propdef-inset-inline-end
241242
p.interactivity:~CSSUI#propdef-interactivity
242243
p.justify-content:~CSSALIGN#propdef-justify-content
243244
p.margin-inline-start:~CSSLOGICAL#propdef-margin-inline-start
@@ -249,6 +250,7 @@
249250
p.padding-block:~CSSLOGICAL#propdef-padding-block
250251
p.padding-inline:~CSSLOGICAL#propdef-padding-inline
251252
p.padding:~CSSBOX#propdef-padding
253+
p.position:~CSSPOS#propdef-position
252254
p.position-try-fallbacks:~CSSANCHOR#propdef-position-try-fallbacks
253255
p.position-try-order:~CSSANCHOR#propdef-position-try-order
254256
p.text-align:~CSSTEXT#propdef-text-align
@@ -2647,43 +2649,83 @@ <h3 title="Sliders">~slider</h3>
26472649

26482650
<p class="issue">
26492651
次に挙げるものの~style法を精緻化する
2652+
[*`12267$issue]
26502653
⇒#
26512654
`meter$e,
26522655
`progress$e,
26532656
`input type=checkbox switch^e,
26542657
`input type=range^e
26552658
2656-
Refine meter, progress, switch and range input styling.
2659+
Refine meter, progress, switch and range input styling. [Issue #12267]
26572660
</p>
26582661

26592662
<pre class="lang-css">
2663+
input[type="checkbox"][switch],
2664+
input[type="range"] {
2665+
`display$p: inline-flex;
2666+
`position$p: relative;
2667+
`align-items$p: center;
2668+
`inline-size$p: 100%;
2669+
}
2670+
26602671
input[type="checkbox"][switch]::slider-track,
26612672
input[type="range"]::slider-track,
26622673
meter::slider-track,
26632674
progress::slider-track {
2664-
`height$p: 1em;
2675+
`block-size$p: 1em;
2676+
`inline-size$p: 100%;
2677+
}
2678+
2679+
input[type=range]::slider-track {
2680+
`block-size$p: 0.5em;
2681+
}
2682+
2683+
input[type="checkbox"][switch]::slider-track {
2684+
`border-radius$p: 1em;
26652685
}
26662686

26672687
input[type="checkbox"][switch]::slider-fill,
26682688
input[type="range"]::slider-fill,
26692689
meter::slider-fill,
26702690
progress::slider-fill {
2671-
`height$p: 100%;
2691+
`block-size$p: 100%;
26722692
`background-color$p: currentColor;
26732693
}
26742694

26752695
progress:indeterminate::slider-fill {
26762696
`inline-size$p: 0;
26772697
}
26782698

2699+
input[type="range"]::slider-fill,
2700+
input[type="checkbox"][switch]::slider-fill {
2701+
`background-color$p: color-mix(currentColor 25%, transparent);
2702+
`border-radius$p: inherit;
2703+
2704+
`block-size$p: 100%;
2705+
}
2706+
2707+
input[type="checkbox"][switch]::slider-fill {
2708+
`inline-size$p: 0%;
2709+
}
2710+
2711+
input[type="checkbox"][switch]:checked::slider-fill {
2712+
`inline-size$p: 100%;
2713+
}
2714+
26792715
input[type="checkbox"][switch]::slider-thumb,
26802716
input[type="range"]::slider-thumb {
26812717
`border-radius$p: 0;
26822718
`border$p: none;
26832719
`background-color$p: currentColor;
26842720
`appearance$p: none;
2685-
`width$p: 1em;
2686-
`height$p: 100%;
2721+
`inline-size$p: 1em;
2722+
`block-size$p: 1em;
2723+
`border-radius$p: 100%;
2724+
`position$p: absolute;
2725+
}
2726+
2727+
input[type="checkbox"][switch]:checked::slider-thumb {
2728+
`inset-inline-end$p: 0;
26872729
}
26882730
</pre>
26892731

@@ -2754,10 +2796,7 @@ <h3 title="Buttons (and button-like controls)">~button, ~buttonの様な~control
27542796
button,
27552797
::file-selector-button,
27562798
select,
2757-
input[type="color"],
2758-
input[type="button"],
2759-
input[type="reset"],
2760-
input[type="submit"] {
2799+
input:is([type="color"], [type="button"], [type="reset"], [type="submit"]) {
27612800
`border$p: 1px solid currentColor;
27622801
`background-color$p: transparent;
27632802
`color$p: inherit;
@@ -2830,28 +2869,22 @@ <h3 title="Buttons (and button-like controls)">~button, ~buttonの様な~control
28302869

28312870
button:enabled:hover,
28322871
select:enabled:hover,
2833-
input[type="color"]:enabled:hover,
2834-
input[type="button"]:enabled:hover,
2835-
input[type="submit"]:enabled:hover,
2836-
input[type="file"]:enabled::files-selector-button:hover {
2872+
input:is([type="color"], [type="button"], [type="reset"], [type="submit"]):enabled:hover,
2873+
input[type="file"]:enabled::file-selector-button:hover {
28372874
`background-color$p: color-mix(currentColor 10%, transparent);
28382875
}
28392876

28402877
button:enabled:active,
28412878
select:enabled:active,
2842-
input[type="color"]:enabled:active,
2843-
input[type="button"]:enabled:active,
2844-
input[type="submit"]:enabled:active,
2845-
input[type="file"]:enabled::files-selector-button:active {
2879+
input:is([type="color"], [type="button"], [type="reset"], [type="submit"]):enabled:active,
2880+
input[type="file"]:enabled::file-selector-button:active {
28462881
`background-color$p: color-mix(currentColor 20%, transparent);
28472882
}
28482883

28492884
button:disabled,
28502885
select:disabled,
2851-
input[type="color"]:disabled,
2852-
input[type="button"]:disabled,
2853-
input[type="submit"]:disabled,
2854-
input[type="file"]:disabled::files-selector-button {
2886+
input:is([type="color"], [type="button"], [type="reset"], [type="submit"]):disabled,
2887+
input[type="file"]:disabled::file-selector-button {
28552888
`color$p: color-mix(currentColor 50%, transparent);
28562889
}
28572890
</pre>

0 commit comments

Comments
 (0)