1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/css-invalid/textarea/textarea-dyn-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 textarea is disabled and invalid, it is barred from constraint 1.7 + validation and should not be affected by :invalid pseudo-class. --> 1.8 + <link rel='stylesheet' type='text/css' href='style.css'> 1.9 + <script> 1.10 + function doTest() 1.11 + { 1.12 + var e = document.getElementById('t'); 1.13 + e.setCustomValidity('foo'); 1.14 + e.disabled = 'true'; 1.15 + document.documentElement.className=''; 1.16 + } 1.17 + document.addEventListener("MozReftestInvalidate", doTest, false); 1.18 + </script> 1.19 + <body> 1.20 + <textarea class='notinvalid' id='t'></textarea> 1.21 + </body> 1.22 +</html>