|
159 | 159 | ●●options |
160 | 160 |
|
161 | 161 | 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 |
164 | 164 | source_checked: |
165 | 165 | page_state_key:CSS |
166 | 166 | original_url:https://drafts.csswg.org/css-forms-1/ |
|
238 | 238 | p.height:~SIZING#propdef-height |
239 | 239 | p.inline-size:~CSSLOGICAL#propdef-inline-size |
240 | 240 | p.inset:~CSSPOS#propdef-inset |
| 241 | +p.inset-inline-end:~CSSPOS#propdef-inset-inline-end |
241 | 242 | p.interactivity:~CSSUI#propdef-interactivity |
242 | 243 | p.justify-content:~CSSALIGN#propdef-justify-content |
243 | 244 | p.margin-inline-start:~CSSLOGICAL#propdef-margin-inline-start |
|
249 | 250 | p.padding-block:~CSSLOGICAL#propdef-padding-block |
250 | 251 | p.padding-inline:~CSSLOGICAL#propdef-padding-inline |
251 | 252 | p.padding:~CSSBOX#propdef-padding |
| 253 | +p.position:~CSSPOS#propdef-position |
252 | 254 | p.position-try-fallbacks:~CSSANCHOR#propdef-position-try-fallbacks |
253 | 255 | p.position-try-order:~CSSANCHOR#propdef-position-try-order |
254 | 256 | p.text-align:~CSSTEXT#propdef-text-align |
@@ -2647,43 +2649,83 @@ <h3 title="Sliders">~slider</h3> |
2647 | 2649 |
|
2648 | 2650 | <p class="issue"> |
2649 | 2651 | 次に挙げるものの~style法を精緻化する |
| 2652 | +[*`12267$issue] |
2650 | 2653 | ⇒# |
2651 | 2654 | `meter$e, |
2652 | 2655 | `progress$e, |
2653 | 2656 | `input type=checkbox switch^e, |
2654 | 2657 | `input type=range^e |
2655 | 2658 | ◎ |
2656 | | -Refine meter, progress, switch and range input styling. |
| 2659 | +Refine meter, progress, switch and range input styling. [Issue #12267] |
2657 | 2660 | </p> |
2658 | 2661 |
|
2659 | 2662 | <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 | + |
2660 | 2671 | input[type="checkbox"][switch]::slider-track, |
2661 | 2672 | input[type="range"]::slider-track, |
2662 | 2673 | meter::slider-track, |
2663 | 2674 | 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; |
2665 | 2685 | } |
2666 | 2686 |
|
2667 | 2687 | input[type="checkbox"][switch]::slider-fill, |
2668 | 2688 | input[type="range"]::slider-fill, |
2669 | 2689 | meter::slider-fill, |
2670 | 2690 | progress::slider-fill { |
2671 | | - `height$p: 100%; |
| 2691 | + `block-size$p: 100%; |
2672 | 2692 | `background-color$p: currentColor; |
2673 | 2693 | } |
2674 | 2694 |
|
2675 | 2695 | progress:indeterminate::slider-fill { |
2676 | 2696 | `inline-size$p: 0; |
2677 | 2697 | } |
2678 | 2698 |
|
| 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 | + |
2679 | 2715 | input[type="checkbox"][switch]::slider-thumb, |
2680 | 2716 | input[type="range"]::slider-thumb { |
2681 | 2717 | `border-radius$p: 0; |
2682 | 2718 | `border$p: none; |
2683 | 2719 | `background-color$p: currentColor; |
2684 | 2720 | `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; |
2687 | 2729 | } |
2688 | 2730 | </pre> |
2689 | 2731 |
|
@@ -2754,10 +2796,7 @@ <h3 title="Buttons (and button-like controls)">~button, ~buttonの様な~control |
2754 | 2796 | button, |
2755 | 2797 | ::file-selector-button, |
2756 | 2798 | 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"]) { |
2761 | 2800 | `border$p: 1px solid currentColor; |
2762 | 2801 | `background-color$p: transparent; |
2763 | 2802 | `color$p: inherit; |
@@ -2830,28 +2869,22 @@ <h3 title="Buttons (and button-like controls)">~button, ~buttonの様な~control |
2830 | 2869 |
|
2831 | 2870 | button:enabled:hover, |
2832 | 2871 | 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 { |
2837 | 2874 | `background-color$p: color-mix(currentColor 10%, transparent); |
2838 | 2875 | } |
2839 | 2876 |
|
2840 | 2877 | button:enabled:active, |
2841 | 2878 | 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 { |
2846 | 2881 | `background-color$p: color-mix(currentColor 20%, transparent); |
2847 | 2882 | } |
2848 | 2883 |
|
2849 | 2884 | button:disabled, |
2850 | 2885 | 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 { |
2855 | 2888 | `color$p: color-mix(currentColor 50%, transparent); |
2856 | 2889 | } |
2857 | 2890 | </pre> |
|
0 commit comments