1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/css-invalid/fieldset/fieldset-dynamic-valid.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,21 @@ 1.4 +<!DOCTYPE html> 1.5 +<!-- fieldset with one valid element which is made valid dynamically --> 1.6 +<html> 1.7 + <head> 1.8 + <style> 1.9 + fieldset:valid {display: none;} 1.10 + </style> 1.11 + </head> 1.12 + <script> 1.13 + function onloadHandler() 1.14 + { 1.15 + document.getElementById('i').value = 'foo'; 1.16 + document.documentElement.className = ''; 1.17 + } 1.18 + </script> 1.19 + <body onload="onloadHandler();"> 1.20 + <fieldset id="fieldset"> 1.21 + <input id='i' required> 1.22 + </fieldset> 1.23 + </body> 1.24 +</html>