summaryrefslogtreecommitdiffstats
path: root/layout/reftests/css-parsing/invalid-attr-1.html
diff options
context:
space:
mode:
Diffstat (limited to 'layout/reftests/css-parsing/invalid-attr-1.html')
-rw-r--r--layout/reftests/css-parsing/invalid-attr-1.html25
1 files changed, 25 insertions, 0 deletions
diff --git a/layout/reftests/css-parsing/invalid-attr-1.html b/layout/reftests/css-parsing/invalid-attr-1.html
new file mode 100644
index 000000000..b418575bb
--- /dev/null
+++ b/layout/reftests/css-parsing/invalid-attr-1.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <style>
+ p { color: red; }
+ [
+ p { color: red !important; }
+ p { color: red !important; }
+ ] p { color: red !important; }
+ p { color: green; }
+ </style>
+ <style>
+ div { color: red; }
+ :not([)
+ div { color: red !important; }
+ div { color: red !important; }
+ ]) div { color: red !important; }
+ div { color: green; }
+ </style>
+ </head>
+ <body>
+ <p>This text should be green.</p>
+ <div>This text should be green.</p>
+ </body>
+</html>