You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: css-forms-1/Overview.bs
+59-1
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ Abstract: This document is currently a loosely-structured set of ideas and inspi
12
12
Warning: not ready
13
13
</pre>
14
14
15
-
# New Pseudo-Elements # {#pseudos}
15
+
# Pseudo-Elements # {#pseudo-elements}
16
16
17
17
This section defines some pseudo-elements for styling parts of form elements.
18
18
@@ -79,6 +79,64 @@ This section defines some pseudo-elements for styling parts of form elements.
79
79
element</a>, preceding any boxes generated by the ''::before''
80
80
pseudo-element, with content as specified by 'content'.
81
81
82
+
## Styling parts of [=slider-like controls=]: the ''::slider-thumb'', ''::slider-track'', ''::slider-fill'' and ''::slider-options-track'' pseudo-elements ## {#slider-pseudos}
83
+
84
+
<dfn>Slider-like controls</dfn> are form controls that represent progress.
85
+
That progress may be adjustable by the user.
86
+
87
+
The list of [=slider-like controls=] depends on the host language. For HTML, this corresponds to:
88
+
89
+
- ''<progress>''
90
+
- ''<meter>''
91
+
- ''<input>'' elements with `type="range"`
92
+
- ''<input>'' elements with `type="checkbox" switch`
93
+
94
+
95
+
The following pseudo-elements are provided to style their different parts:
96
+
97
+
<dl export>
98
+
<dt><dfn>::slider-thumb</dfn>
99
+
<dd>
100
+
The ''::slider-thumb'' pseudo-element represents
101
+
the portion that allows the user to adjust the progress of the control.
102
+
103
+
That portion may be omitted for controls where the progress is not adjustable.
104
+
Disabled controls should provide this portion if the enabled state allows adjusting the progress.
105
+
106
+
NOTE: It is typically natively rendered as a circle in most user agents.
107
+
108
+
<dt><dfn>::slider-track</dfn>
109
+
<dd>
110
+
The ''::slider-track'' pseudo-element represents the portion containing
111
+
both the progressed and unprogressed portions of the control.
112
+
113
+
<dt><dfn>::slider-fill</dfn>
114
+
<dd>
115
+
The ''::slider-fill'' pseudo-element represents
116
+
the portion containing the progressed portion of the control.
117
+
118
+
When the progress of control is undetermined (like with ''<progress indeterminate>''),
119
+
the user agent is expected to give this portion an inline-size of zero.
120
+
121
+
<dt><dfn>::slider-options-track</dfn>
122
+
<dd>
123
+
The ''::slider-options-track'' pseudo-element represents the portion containing
124
+
the options. It is expected to render at the same width as ''::slider-track''
125
+
and underneath it in the block direction.
126
+
127
+
With `appearance: auto`, the user agent may draw tickmarks
128
+
corresponding to the options given by the associated `<datalist>`.
129
+
</dl>
130
+
131
+
These pseudo-elements are [=tree-abiding pseudo-elements=] and their structure is expected to be the following:
0 commit comments