summaryrefslogtreecommitdiffstats
path: root/layout/reftests/bugs/501257-1a.html
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--layout/reftests/bugs/501257-1a.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/layout/reftests/bugs/501257-1a.html b/layout/reftests/bugs/501257-1a.html
new file mode 100644
index 0000000000..013b804153
--- /dev/null
+++ b/layout/reftests/bugs/501257-1a.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <style>
+ .green { color: green; }
+ </style>
+ </head>
+ <body>
+ <div>
+ This should be green
+ </div>
+ <script>
+ document.body.firstElementChild.classList.add("green");
+ </script>
+ </body>
+</html>