[Webkit-unassigned] [Bug 238667] The color CSS property value is ignored on <select> element

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Jul 31 16:24:55 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=238667

--- Comment #3 from Karl Dubost <karlcow at apple.com> ---
Starting with 

```
data:text/html,<!doctype%20html><title>foo</title><style>%20select%20{%20%20%20color:%20green;%20}%20</style>%20<select>%20%20%20<option>PASS%20if%20this%20is%20green.</option>%20</select>
```

document.getElementsByTagName('select')[0].style.color
returns ''

window.getComputedStyle(document.getElementsByTagName('select')[0]).getPropertyValue('color')
returns 'rgba(0, 0, 0, 0.847)'

document.getElementsByTagName('select')[0].style.color = 'green'
then 
document.getElementsByTagName('select')[0].style.color
returns 'green'

But text is still blackish.

Finally let's set 
document.getElementsByTagName('select')[0].style.border = '1px red dashed'


The button takes a dashed red border AND the text becomes green. 
So it triggered the styling of the button.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220731/40789166/attachment.htm>


More information about the webkit-unassigned mailing list