Skip to content

Commit b8c627f

Browse files
lukewarlownt1m
authored andcommitted
[css-forms-1] Define ::color-swatch pseudo element
1 parent a615baf commit b8c627f

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

css-forms-1/Overview.bs

+11-1
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ Markup Shorthands: css yes, markdown yes
252252
</tr>
253253
<tr>
254254
<td>`<input type=color>`</td>
255-
<td></td>
255+
<td>''::color-swatch''</td>
256256
</tr>
257257
<tr>
258258
<td>`<select>`</td>
@@ -497,6 +497,16 @@ Markup Shorthands: css yes, markdown yes
497497
```
498498
</div>
499499

500+
## Color Swatch: the ''::color-swatch'' pseudo-element ## {#color-swatch-pseudo}
501+
502+
The <dfn>::color-swatch</dfn> pseudo-element represents the portion of the control that displays the chosen color value.
503+
504+
<div class="example" id="color-swatch-example">
505+
For example, the following example should make the input and its color swatch rounded:
506+
507+
<pre class="lang-css">input[type=color], ::color-swatch { border-radius: 9999px; }</pre>
508+
</div>
509+
500510
## Compatibility With Vendor Pseudo-Element Extensions ## {#vendor-pseudo-element-compatibility}
501511

502512
When possible, the user agent should use aliasing to implement any non-standard pseudo-elements.

0 commit comments

Comments
 (0)