background-color property for option element
-
imokali last edited by
Hello,
The background-color property of an option element is being specified like so in the element:
style="background-color:rgb(0,0,119)"In Firefox the background has the colour as specified. In Opera, Chrome and Safari the background is white.
In the Opera inspector the author's property displays normally:
element.style {
background-color: rgb(0,0,119);
}and the useragent's property displays faded:
select {
...
background-color: white;
...
}Anyone know why the useragent's style is given priority?
Cheers.
-
imokali last edited by
Thanks.
The code at http://jsfiddle.net/6ce5d5a6/ only works on Firefox on Mac OS X 10.6.8.
Which operating system have you seen it work on?
-
A Former User last edited by
The drop-down menus used for select’s options is a native menu. You cannot change their style at this time.
-
christoph142 last edited by
You said it for yourself:
In Opera, Chrome and Safari the background is white.
That means it's a Chromium-issue