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