1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/bugs/315920-30.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,27 @@ 1.4 +<!DOCTYPE html> 1.5 +<html> 1.6 + <head> 1.7 + <style> 1.8 + option {color: green} 1.9 + optgroup {color: red} 1.10 + optgroup:disabled {color: green} 1.11 + optgroup[disabled]:disabled + optgroup {color: green} 1.12 + optgroup:not(:disabled) {color: red} 1.13 + optgroup[disabled]:disabled > option:default {color:blue} 1.14 + optgroup:disabled > option:default ~ option {color:blue} 1.15 + </style> 1.16 + </head> 1.17 + <body onload='document.getElementById("ogone").setAttribute("disabled", "disabled"); 1.18 + document.getElementById("one").setAttribute("selected", "selected");'> 1.19 + <select size="7"> 1.20 + <optgroup id="ogone" label="There should be no red"> 1.21 + <option id="one">This should be blue</option> 1.22 + <option id="two">This should be blue</option> 1.23 + </optgroup> 1.24 + <optgroup id="ogtwo" label="There should be no red"> 1.25 + <option id="three">There should be no red</option> 1.26 + <option id="four">There should be no red</option> 1.27 + </optgroup> 1.28 + </select> 1.29 + </body> 1.30 +</html>