1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/css-invalid/select/select-fieldset-legend.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,22 @@ 1.4 +<!DOCTYPE html> 1.5 +<html class="reftest-wait"> 1.6 + <!-- Test: if select has a disabled fieldset ancestor, but is in the first 1.7 + legend, it is not barred from constraint validation and should be 1.8 + affected by :invalid pseudo-class. --> 1.9 + <link rel='stylesheet' type='text/css' href='style.css'> 1.10 + <script> 1.11 + function onLoadHandler() 1.12 + { 1.13 + var e = document.getElementById('b'); 1.14 + e.setCustomValidity('foo'); 1.15 + document.documentElement.className=''; 1.16 + } 1.17 + </script> 1.18 + <body onload="onLoadHandler();"> 1.19 + <fieldset disabled> 1.20 + <legend> 1.21 + <select class='invalid' id='b'></select> 1.22 + </legend> 1.23 + </fieldset> 1.24 + </body> 1.25 +</html>