@@ -196,9 +196,9 @@ spec:css-forms-1; type:value; for:/; text:::placeholder
196
196
<td> `<progress> `</td>
197
197
<td rowspan=4>
198
198
<pre>
199
- ├─ ''::track''
200
- │ └─ ''::fill''
201
- └─ ''::thumb''
199
+ ├─ ''::slider- track''
200
+ │ └─ ''::slider- fill''
201
+ └─ ''::slider- thumb''
202
202
</pre>
203
203
</td>
204
204
</tr>
@@ -345,44 +345,42 @@ spec:css-forms-1; type:value; for:/; text:::placeholder
345
345
<pre class="lang-css"> :indeterminate::checkmark { background-image: url(...) }</pre>
346
346
</div>
347
347
348
- ## Styling Parts of [=Slider-Like Controls=] : the ''::thumb'' , ''::track'' and ''::fill'' pseudo-elements ## {#slider-pseudos}
349
-
350
- ISSUE(9830): Naming is still under discussion.
348
+ ## Styling Parts of [=Slider-Like Controls=] : the ''::slider-thumb'' , ''::slider-track'' and ''::slider-fill'' pseudo-elements ## {#slider-pseudos}
351
349
352
350
<dfn>Slider-like controls</dfn> are form controls that represent progress.
353
351
That progress may be adjustable by the user.
354
352
355
353
The following pseudo-elements are provided to style their different parts:
356
354
357
355
<dl export>
358
- <dt> <dfn>::thumb</dfn>
356
+ <dt> <dfn>::slider- thumb</dfn>
359
357
<dd>
360
- The ''::thumb'' pseudo-element represents
358
+ The ''::slider- thumb'' pseudo-element represents
361
359
the portion that allows the user to adjust the progress of the control.
362
360
363
361
NOTE: It is typically natively rendered as a circle in most user agents.
364
362
365
- <dt> <dfn>::track</dfn>
363
+ <dt> <dfn>::slider- track</dfn>
366
364
<dd>
367
- The ''::track'' pseudo-element represents the portion containing
365
+ The ''::slider- track'' pseudo-element represents the portion containing
368
366
both the progressed and unprogressed portions of the control.
369
367
370
- <dt> <dfn>::fill</dfn>
368
+ <dt> <dfn>::slider- fill</dfn>
371
369
<dd>
372
- The ''::fill'' pseudo-element represents
370
+ The ''::slider- fill'' pseudo-element represents
373
371
the portion containing the progressed portion of the control.
374
372
375
- When the progress of control is undetermined (like with ''<progress indeterminate >'' ),
373
+ When the progress of control is indeterminate (like with ''<progress>'' ),
376
374
the user agent must give this portion an inline-size of zero.
377
375
</dl>
378
376
379
377
These pseudo-elements are [=fully styleable pseudo-elements=] and their structure is the following:
380
378
381
379
```
382
380
<input type="range">
383
- ├─ ::track
384
- │ └─ ::fill
385
- └─ ::thumb
381
+ ├─ ::slider- track
382
+ │ └─ ::slider- fill
383
+ └─ ::slider- thumb
386
384
```
387
385
388
386
The list of [=slider-like controls=] depends on the host language. For HTML, this corresponds to:
@@ -636,19 +634,19 @@ spec:css-forms-1; type:value; for:/; text:::placeholder
636
634
637
635
<dt> <dfn>left-to-right</dfn> </dt>
638
636
<dd>
639
- The [=slider-like control=] is rendered horizontally and ''::fill'' is left-aligned within the control.
637
+ The [=slider-like control=] is rendered horizontally and ''::slider- fill'' is left-aligned within the control.
640
638
641
639
<dt> <dfn>right-to-left</dfn> </dt>
642
640
<dd>
643
- The [=slider-like control=] is rendered horizontally and ''::fill'' is right-aligned within the control.
641
+ The [=slider-like control=] is rendered horizontally and ''::slider- fill'' is right-aligned within the control.
644
642
645
643
<dt> <dfn>top-to-bottom</dfn> </dt>
646
644
<dd>
647
- The [=slider-like control=] is rendered vertically and ''::fill'' is top-aligned within the control.
645
+ The [=slider-like control=] is rendered vertically and ''::slider- fill'' is top-aligned within the control.
648
646
649
647
<dt> <dfn>bottom-to-top</dfn> </dt>
650
648
<dd>
651
- The [=slider-like control=] is rendered vertically and ''::fill'' is bottom-aligned within the control.
649
+ The [=slider-like control=] is rendered vertically and ''::slider- fill'' is bottom-aligned within the control.
652
650
653
651
</dl>
654
652
@@ -683,7 +681,7 @@ input:not([type=file], [type=range]),
683
681
textarea,
684
682
button,
685
683
::file-selector-button,
686
- ::track,
684
+ ::slider- track,
687
685
select,
688
686
meter,
689
687
progress {
@@ -697,16 +695,16 @@ progress {
697
695
ISSUE: Refine meter, progress, switch and range input styling.
698
696
699
697
```css
700
- ::track {
698
+ ::slider- track {
701
699
height: 1em;
702
700
}
703
701
704
- ::fill {
702
+ ::slider- fill {
705
703
height: 100%;
706
704
background-color: currentColor;
707
705
}
708
706
709
- ::thumb {
707
+ ::slider- thumb {
710
708
border-radius: 0;
711
709
border: none;
712
710
background-color: currentColor;
0 commit comments