1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/css-ui-invalid/select/select-dyn-not-disabled.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,19 @@ 1.4 +<!DOCTYPE html> 1.5 +<html class="reftest-wait"> 1.6 + <!-- Test: if select is not disabled and invalid, it is candidate for 1.7 + constraint validation and should be affected 1.8 + by :-moz-ui-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('s'); 1.14 + e.setCustomValidity('foo'); 1.15 + e.removeAttribute('disabled'); 1.16 + document.documentElement.className=''; 1.17 + } 1.18 + </script> 1.19 + <body onload="onLoadHandler();"> 1.20 + <select class='invalid' id='s' disabled></select> 1.21 + </body> 1.22 +</html>