@@ -313,6 +313,11 @@ spec:css-forms-1; type:value; for:/; text:::placeholder
313
313
314
314
It typically targets the <{button}> inside an <{input}> element with `type=file`.
315
315
316
+ It is generated when the [=originating element=] has [=basic appearance=] . It
317
+ can also be generated for other ''appearance'' values.
318
+
319
+ NOTE: This is allowed in non [=basic appearance=] modes for compatability purposes.
320
+
316
321
<div class="example" id="file-selector-button-example">
317
322
For example, the following example should show a green border around the
318
323
file selector button:
@@ -358,18 +363,24 @@ spec:css-forms-1; type:value; for:/; text:::placeholder
358
363
The ''::slider-thumb'' pseudo-element represents
359
364
the portion that allows the user to adjust the progress of the control.
360
365
366
+ It is only generated when the [=originating element=] has [=basic appearance=] .
367
+
361
368
NOTE: It is typically natively rendered as a circle in most user agents.
362
369
363
370
<dt> <dfn>::slider-track</dfn>
364
371
<dd>
365
372
The ''::slider-track'' pseudo-element represents the portion containing
366
373
both the progressed and unprogressed portions of the control.
367
374
375
+ It is only generated when the [=originating element=] has [=basic appearance=] .
376
+
368
377
<dt> <dfn>::slider-fill</dfn>
369
378
<dd>
370
379
The ''::slider-fill'' pseudo-element represents
371
380
the portion containing the progressed portion of the control.
372
381
382
+ It is only generated when the [=originating element=] has [=basic appearance=] .
383
+
373
384
When the progress of control is indeterminate (like with ''<progress>'' ),
374
385
the user agent must give this portion an inline-size of zero.
375
386
</dl>
@@ -398,11 +409,18 @@ spec:css-forms-1; type:value; for:/; text:::placeholder
398
409
The ''::placeholder'' pseudo-element represents
399
410
the portion of the <{input}> that contains the placeholder text.
400
411
412
+ It is generated when the [=originating element=] has [=basic appearance=] . It
413
+ can also be generated for other ''appearance'' values.
414
+
415
+ NOTE: This is allowed in non [=basic appearance=] modes for compatability purposes.
416
+
401
417
<dt> <dfn>::field-text</dfn>
402
418
<dd>
403
419
The ''::field-text'' pseudo-element represents
404
420
the portion of the <{input}> that contains the editable text.
405
421
422
+ It is only generated when the [=originating element=] has [=basic appearance=] .
423
+
406
424
<dt> <dfn>::clear-icon</dfn>
407
425
<dd>
408
426
The ''::clear-icon'' pseudo-element represents
@@ -429,10 +447,17 @@ spec:css-forms-1; type:value; for:/; text:::placeholder
429
447
The ''::placeholder'' pseudo-element represents
430
448
the portion of the <{textarea}> that contains the placeholder text.
431
449
450
+ It is generated when the [=originating element=] has [=basic appearance=] . It
451
+ can also be generated for other ''appearance'' values.
452
+
453
+ NOTE: This is allowed in non [=basic appearance=] modes for compatability purposes.
454
+
432
455
<dt><span> ''::field-text'' </span>
433
456
<dd>
434
457
The ''::field-text'' pseudo-element represents
435
458
the portion of the <{textarea}> that contains the editable text.
459
+
460
+ It is only generated when the [=originating element=] has [=basic appearance=] .
436
461
</dl>
437
462
438
463
ISSUE(11850): Define something for the resizer.
@@ -448,16 +473,22 @@ spec:css-forms-1; type:value; for:/; text:::placeholder
448
473
<dd>
449
474
The ''::step-control'' pseudo-element represents
450
475
the portion of a number input that contains the up and down buttons.
476
+
477
+ It is only generated when the [=originating element=] has [=basic appearance=] .
451
478
452
479
<dt> <dfn>::step-up</dfn>
453
480
<dd>
454
481
The ''::step-up'' pseudo-element represents
455
482
the button that increments the value inside a number input when activated.
456
483
484
+ It is only generated when the [=originating element=] has [=basic appearance=] .
485
+
457
486
<dt> <dfn>::step-down</dfn>
458
487
<dd>
459
488
The ''::step-down'' pseudo-element represents
460
489
the button that decrements the value inside a number input when activated.
490
+
491
+ It is only generated when the [=originating element=] has [=basic appearance=] .
461
492
</dl>
462
493
463
494
Their structure is defined as follows:
@@ -512,11 +543,15 @@ spec:css-forms-1; type:value; for:/; text:::placeholder
512
543
<dd>
513
544
The ''::field-component'' pseudo-element represents
514
545
the portions of the control that contain the date/time component values.
546
+
547
+ It is only generated when the [=originating element=] has [=basic appearance=] .
515
548
516
549
<dt> <dfn>::field-separator</dfn>
517
550
<dd>
518
551
The ''::field-separator'' pseudo-element represents
519
552
the portions of the control that separate the date/time component values if the user agent provides those portions.
553
+
554
+ It is only generated when the [=originating element=] has [=basic appearance=] .
520
555
</dl>
521
556
522
557
Those pseudo-elements are siblings. The exact structure of the control is determined by internationalization and by the host language,
@@ -549,6 +584,8 @@ spec:css-forms-1; type:value; for:/; text:::placeholder
549
584
550
585
The <dfn>::color-swatch</dfn> pseudo-element represents the portion of the control that displays the chosen color value.
551
586
587
+ It is only generated when the [=originating element=] has [=basic appearance=] .
588
+
552
589
<div class="example" id="color-swatch-example">
553
590
For example, the following example should make the input and its color swatch rounded:
554
591
0 commit comments