summaryrefslogtreecommitdiffstats
path: root/layout/reftests/w3c-css/received/selectors-4/selector-required.html
diff options
context:
space:
mode:
Diffstat (limited to 'layout/reftests/w3c-css/received/selectors-4/selector-required.html')
-rw-r--r--layout/reftests/w3c-css/received/selectors-4/selector-required.html26
1 files changed, 26 insertions, 0 deletions
diff --git a/layout/reftests/w3c-css/received/selectors-4/selector-required.html b/layout/reftests/w3c-css/received/selectors-4/selector-required.html
new file mode 100644
index 000000000..9c0899ad2
--- /dev/null
+++ b/layout/reftests/w3c-css/received/selectors-4/selector-required.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>CSS level4 Selector :required and :optional</title>
+ <link rel="author" title="LEE YUN HEE" href="mailto:zzirasi@gmail.com">
+ <link rel="help" href="http://www.w3.org/TR/selectors4/#opt-pseudos">
+ <meta name="assert" content="You should see a green input box.">
+ <link rel="match" href="selector-required-ref.html">
+ <style>
+ input {border:3px solid red;}
+ :required {border-color:green;}
+ :optional {border-color:green;}
+ </style>
+ </head>
+ <body>
+ <p>
+ You should see a green input box.
+ </p>
+ <p>
+ <input required>
+ </p>
+ <p>
+ <input optional>
+ </p>
+ </body>
+</html>