-
Notifications
You must be signed in to change notification settings - Fork 3k
Fix base appearance select styles #11805
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -146166,10 +146166,13 @@ table { | |
|
|
||
| <pre><code class="css">@namespace "http://www.w3.org/1999/xhtml"; | ||
|
|
||
| input, select, button, textarea { | ||
| input, button, textarea { | ||
| letter-spacing: initial; | ||
| word-spacing: initial; | ||
| line-height: initial; | ||
| } | ||
|
|
||
| input, select, button, textarea { | ||
| text-transform: initial; | ||
| text-indent: initial; | ||
| text-shadow: initial; | ||
|
|
@@ -147700,14 +147703,13 @@ progress { appearance: auto; }</code></pre> | |
|
|
||
| <p>A <code>select</code> element whose <code data-x="attr-select-multiple">multiple</code> | ||
| attribute is absent, and whose <span data-x="concept-select-size">display size</span> is 1, is | ||
| <span>expected</span> to render as an <span>'inline-block'</span> one-line <span>drop-down | ||
| box</span>. The <span>inline size</span> of its <span>intrinsic size</span> is the | ||
| <span>width of the <code>select</code>'s labels</span>. If the <span>'field-sizing'</span> | ||
| property on the element has a <span>computed value</span> of | ||
| <span data-x="field-sizing-content">'content'</span>, the <span>inline size</span> of the | ||
| <span>intrinsic size</span> depends on the shown text. The shown text is typically the label of | ||
| an <code>option</code> of which <span data-x="concept-option-selectedness">selectedness</span> is | ||
| set to true.</p> | ||
| <span>expected</span> to render as a <span>drop-down box</span>. The <span>inline size</span> of | ||
| its <span>intrinsic size</span> is the <span>width of the <code>select</code>'s labels</span>. If | ||
| the <span>'field-sizing'</span> property on the element has a <span>computed value</span> of <span | ||
| data-x="field-sizing-content">'content'</span>, the <span>inline size</span> of the | ||
| <span>intrinsic size</span> depends on the shown text. The shown text is typically the label of an | ||
| <code>option</code> of which <span data-x="concept-option-selectedness">selectedness</span> is set | ||
| to true.</p> | ||
|
|
||
| <div algorithm> | ||
| <p>When the element renders as a <span>drop-down box</span>, it is a <span>devolvable | ||
|
|
@@ -147827,15 +147829,27 @@ progress { appearance: auto; }</code></pre> | |
|
|
||
| </div> | ||
|
|
||
| <p>The following styles are <span>expected</span> to apply to <code>select</code> elements when | ||
| they are being rendered as a <span>drop-down box</span> with <span>native appearance</span> or | ||
| <span>primitive appearance</span>:</p> | ||
|
|
||
| <pre><code class="css">@namespace "http://www.w3.org/1999/xhtml"; | ||
|
|
||
| select { | ||
| display: inline-block; | ||
| letter-spacing: initial; | ||
| word-spacing: initial; | ||
| }</code></pre> | ||
|
|
||
| <p>The following styles are <span>expected</span> to apply to <code>select</code> elements when | ||
| they are being rendered as a <span>drop-down box</span> with <span>base appearance</span>:</p> | ||
|
||
|
|
||
| <pre><code class="css">@namespace "http://www.w3.org/1999/xhtml"; | ||
|
|
||
| select { | ||
| text-transform: initial; | ||
| text-align: initial; | ||
| text-indent: initial; | ||
| letter-spacing: inherit; | ||
| word-spacing: inherit; | ||
| line-height: inherit; | ||
josepharhar marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| background-color: transparent; | ||
| border: 1px solid currentColor; | ||
| padding-block: 0.25em; | ||
|
|
@@ -147846,7 +147860,6 @@ select { | |
| gap: 0.5em; | ||
| border-radius: 0.5em; | ||
| user-select: none; | ||
| box-sizing: border-box; | ||
| field-sizing: content !important; | ||
| } | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.