Chrome 103.0.5060.114
When an option is "selected" using the "selected" attribute, shouldn't the style of that option supersede the style of the select ?
Use case: colours set on select options via CSS, the selected colour would display having been selected.
<select>
<option style='color:blue;' >1 Blaa x</option>
<option style='color:red;' selected >I would expect the collapsed select control to be red because this is the selected option</option>
<option style='color:green;' >3 Blaa more</option>
</select>
Chrome 103.0.5060.114
When an option is "selected" using the "selected" attribute, shouldn't the style of that option supersede the style of the select ?
Use case: colours set on select options via CSS, the selected colour would display having been selected.