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