1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/css-required/css-required-dyn-1.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,21 @@ 1.4 +<!DOCTYPE html> 1.5 +<html class="reftest-wait"> 1.6 + <!-- Test: Change an input element from non-required type 1.7 + to a required type. --> 1.8 + <link rel='stylesheet' type='text/css' href='css-required-style.css'> 1.9 + 1.10 + <script type="text/javascript"> 1.11 + function changeType() 1.12 + { 1.13 + document.getElementById('i').type = 'text'; 1.14 + } 1.15 + function disableReftestWait() 1.16 + { 1.17 + document.documentElement.className = ''; 1.18 + } 1.19 + </script> 1.20 + 1.21 + <body onload="changeType(); disableReftestWait();"> 1.22 + <input type="submit" id="i" required> 1.23 + </body> 1.24 +</html>