layout: Set color and text decoration on <select> elements by default (#38570)

This makes the default style for `<select>` elements match that of gecko
(https://searchfox.org/mozilla-central/rev/a1f4cb9fc03d81be41ca2ba81294592df784364d/layout/style/res/forms.css#217-243),
with some small modifications because servo does not have fancy things
like `color: -moz-ComboboxText;`.

Testing: Includes a new web platform test
Fixes: https://github.com/servo/servo/issues/37895

---------

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
This commit is contained in:
Simon Wülker 2025-08-14 16:17:48 +02:00 committed by GitHub
parent 99ce81cf64
commit 6e7226961b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 92 additions and 3 deletions

View file

@ -357174,6 +357174,19 @@
],
{}
]
],
"select-text-decoration.html": [
"a697e0f7b0c3d3455b6595ee3064dbbe7baff22c",
[
null,
[
[
"/html/rendering/replaced-elements/the-select-element/select-text-decoration-ref.html",
"=="
]
],
{}
]
]
},
"the-textarea-element": {
@ -486570,6 +486583,10 @@
"select-multiple-re-add-option-via-document-fragment-ref.html": [
"cb66ddaaaf369479e59f6092d04633a2dc2baf6c",
[]
],
"select-text-decoration-ref.html": [
"41a039e988f17a0e8af5ad474f82828c4b8534ea",
[]
]
},
"the-textarea-element": {