1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/bugs/315920-29b.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,19 @@ 1.4 +<!DOCTYPE html> 1.5 +<html> 1.6 + <head> 1.7 + <style> 1.8 + optgroup {color: red} 1.9 + optgroup:disabled {color: green} 1.10 + optgroup[disabled]:disabled + optgroup {color: green} 1.11 + optgroup:not(:disabled) {color: red} 1.12 + </style> 1.13 + </head> 1.14 + <body onload='document.getElementById("ogone").setAttribute("disabled", "disabled");'> 1.15 + <select size="2"> 1.16 + <optgroup id="ogone" label="There should be no red"> 1.17 + </optgroup> 1.18 + <optgroup id="ogtwo" label="There should be no red"> 1.19 + </optgroup> 1.20 + </select> 1.21 + </body> 1.22 +</html>