1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/css-invalid/form/form-valid-and-barred-remove-barred.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,23 @@ 1.4 +<!DOCTYPE html> 1.5 +<!-- form with one valid element and a barred for constraint 1.6 +validation element then you remove the second element --> 1.7 +<html class='reftest-wait'> 1.8 + <head> 1.9 + <style> 1.10 + form:invalid { display: none; } 1.11 + </style> 1.12 + </head> 1.13 + <script> 1.14 + function onloadHandler() 1.15 + { 1.16 + document.forms[0].removeChild(document.getElementById('j')); 1.17 + document.documentElement.className = ''; 1.18 + } 1.19 + </script> 1.20 + <body onload='onloadHandler();'> 1.21 + <form> 1.22 + <input id='i' value='foo'required> 1.23 + <input id='j' value='bar' readonly> 1.24 + </form> 1.25 + </body> 1.26 +</html>