diff options
Diffstat (limited to 'layout/reftests/css-optional/css-optional-dyn-2.html')
-rw-r--r-- | layout/reftests/css-optional/css-optional-dyn-2.html | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/layout/reftests/css-optional/css-optional-dyn-2.html b/layout/reftests/css-optional/css-optional-dyn-2.html new file mode 100644 index 0000000000..746e045abf --- /dev/null +++ b/layout/reftests/css-optional/css-optional-dyn-2.html @@ -0,0 +1,20 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <!-- Test: Add the required attribute to an element to make it required. --> + <link rel='stylesheet' type='text/css' href='css-optional-style.css'> + + <script type="text/javascript"> + function addRequired() + { + document.getElementById('i').required = true; + } + function disableReftestWait() + { + document.documentElement.className = ''; + } + </script> + + <body onload="addRequired(); disableReftestWait();"> + <input id="i"> + </body> +</html> |