summaryrefslogtreecommitdiffstats
path: root/layout/reftests/bugs/315920-6.html
blob: d1cc73738e1ec8a26d60d3b03ca9edfb18b70a49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!DOCTYPE html>
<html>
  <head>
    <style>
      option {color: red}
      option[selected] {color: green}
      option[selected]:default + option {color: green}
    </style>
  </head>
  <body onload='var elem = document.getElementById("one");
                elem.setAttribute("selected", "selected");'>
    <select size="2">
      <option id="one">Should be no red</option>
      <option id="two">Should be no red</option>
    </select>
  </body>
</html>