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