Having this HTML
<select>
<option style="color:green">green</option>
<option style="color:red">red</option>
</select>
I'd like to make the selectbox inherit its color from selected option. Alas
select { color: inherit; }
doesn't do the trick. Is there any pure CSS solution?
Edit: I know there is simple javascript solution. I don't want to make fancy select box, just inherit the color from the selected option.