summaryrefslogtreecommitdiffstats
path: root/layout/reftests/bugs/120834-2b.html
diff options
context:
space:
mode:
Diffstat (limited to 'layout/reftests/bugs/120834-2b.html')
-rw-r--r--layout/reftests/bugs/120834-2b.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/layout/reftests/bugs/120834-2b.html b/layout/reftests/bugs/120834-2b.html
new file mode 100644
index 000000000..aa348066e
--- /dev/null
+++ b/layout/reftests/bugs/120834-2b.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<style>
+span { color: red }
+:checked + span { color: green }
+input { display: none }
+</style>
+
+<body onload='document.getElementById("foo").setAttribute("type", "checkbox");
+ document.getElementById("bar").setAttribute("type", "radio")'>
+<input checked="checked" id="foo"><span>There should be no red</span>
+<input checked="checked" id="bar"><span>There should be no red</span>
+</body>
+</html>