@@ -139450,6 +139450,103 @@ progress { appearance: auto; }</code></pre>
139450
139450
139451
139451
</div>
139452
139452
139453
+ <p>The following styles are expected to apply to <code>select</code> elements when they are being
139454
+ rendered as a <span>drop-down box</span> with <span>base appearance</span>:</p>
139455
+
139456
+ <pre><code class="css">@namespace "http://www.w3.org/1999/xhtml";
139457
+
139458
+ select {
139459
+ text-transform: initial;
139460
+ text-align: initial;
139461
+ text-indent: initial;
139462
+ background-color: transparent;
139463
+ border: 1px solid currentColor;
139464
+ padding-block: 0.25em;
139465
+ padding-inline: 0.5em;
139466
+ min-block-size: max(24px, 1lh);
139467
+ min-inline-size: 24px;
139468
+ display: inline-flex;
139469
+ gap: 0.5em;
139470
+ border-radius: 0.5em;
139471
+ user-select: none;
139472
+ box-sizing: border-box;
139473
+ field-sizing: content !important;
139474
+ }
139475
+
139476
+ select > button:first-child {
139477
+ all: unset;
139478
+ display: contents;
139479
+ interactivity: inert !important;
139480
+ }
139481
+
139482
+ select:enabled:hover,
139483
+ select option:enabled:hover {
139484
+ background-color: color-mix(in lab, currentColor 10%, transparent);
139485
+ }
139486
+ select:enabled:active,
139487
+ select option:enabled:active {
139488
+ background-color: color-mix(in lab, currentColor 20%, transparent);
139489
+ }
139490
+ select:disabled,
139491
+ select option:disabled {
139492
+ color: color-mix(in lab, currentColor 50%, transparent);
139493
+ }
139494
+
139495
+ ::picker(select) {
139496
+ box-sizing: border-box;
139497
+ border: 1px solid;
139498
+ padding: 0;
139499
+ color: CanvasText;
139500
+ background-color: Canvas;
139501
+ margin: 0;
139502
+ inset: auto;
139503
+ min-inline-size: anchor-size(self-inline);
139504
+ max-block-size: stretch;
139505
+ overflow: auto;
139506
+ position-area: block-end span-inline-end;
139507
+ position-try-order: most-block-size;
139508
+ position-try-fallbacks:
139509
+ block-start span-inline-end,
139510
+ block-end span-inline-start,
139511
+ block-start span-inline-start;
139512
+ }
139513
+
139514
+ select option {
139515
+ min-inline-size: 24px;
139516
+ min-block-size: max(24px, 1lh);
139517
+ padding-inline: 0.5em;
139518
+ padding-block-end: 0;
139519
+ display: flex;
139520
+ align-items: center;
139521
+ gap: 0.5em;
139522
+ white-space: nowrap;
139523
+ }
139524
+
139525
+ select option::checkmark {
139526
+ content: '\2713' / '';
139527
+ }
139528
+ select option:not(:checked)::checkmark {
139529
+ visibility: hidden;
139530
+ }
139531
+
139532
+ select::picker-icon {
139533
+ content: counter(fake-counter-name, disclosure-open);
139534
+ display: block;
139535
+ margin-inline-start: auto;
139536
+ }
139537
+
139538
+ select optgroup {
139539
+ font-weight: bolder;
139540
+ }
139541
+
139542
+ select optgroup option {
139543
+ font-weight: normal;
139544
+ }
139545
+
139546
+ select optgroup legend {
139547
+ padding-inline: 0.5em;
139548
+ min-block-size: 1lh;
139549
+ }</code></pre>
139453
139550
139454
139551
<div w-nodev>
139455
139552
0 commit comments