summaryrefslogtreecommitdiffstats
path: root/layout/reftests/bugs/84400-2-ref.html
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:47:29 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:47:29 +0000
commit0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d (patch)
treea31f07c9bcca9d56ce61e9a1ffd30ef350d513aa /layout/reftests/bugs/84400-2-ref.html
parentInitial commit. (diff)
downloadfirefox-esr-0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d.tar.xz
firefox-esr-0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d.zip
Adding upstream version 115.8.0esr.upstream/115.8.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'layout/reftests/bugs/84400-2-ref.html')
-rw-r--r--layout/reftests/bugs/84400-2-ref.html66
1 files changed, 66 insertions, 0 deletions
diff --git a/layout/reftests/bugs/84400-2-ref.html b/layout/reftests/bugs/84400-2-ref.html
new file mode 100644
index 0000000000..08dc502347
--- /dev/null
+++ b/layout/reftests/bugs/84400-2-ref.html
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
+ "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>Testing controls that should not match :enabled/:disabled</title>
+ <style type="text/css">
+ input, label, object, *.hideme { display: none; }
+ div { margin-bottom: 1em; }
+
+ span, legend { color: lime; background-color: lime; }
+
+ #test + span { color: lime; background-color: lime; }
+ </style>
+ </head>
+ <body>
+ <div>
+ There should be no red in the following (note: form styling should be enabled).
+ </div>
+
+ <form method="get" action=".">
+ <div>
+ Make sure that :default is actually implemented:
+ <input id="test"/> <span>FAIL</span>
+ </div>
+
+ <div>
+ label:
+ <label>bogus</label> <span>FAIL</span>
+ <label disabled="disabled">bogus</label> <span>FAIL</span>
+ </div>
+
+ <div>
+ legend:
+ <fieldset><legend>FAIL</legend></fieldset>
+ <fieldset><legend disabled="disabled">FAIL</legend></fieldset>
+ <fieldset disabled="disabled"><legend>FAIL</legend></fieldset>
+ </div>
+
+ <div>
+ div (inside form):
+ <div class="hideme">bogus</div> <span>FAIL</span>
+ <div class="hideme" disabled="disabled">bogus</div> <span>FAIL</span>
+ </div>
+
+ </form>
+
+ <div>
+ div (outside form):
+ <div class="hideme">bogus</div> <span>FAIL</span>
+ <div class="hideme" disabled="disabled">bogus</div> <span>FAIL</span>
+ </div>
+
+ <div>
+ object:
+ <object>bogus</object> <span>FAIL</span>
+ <object disabled="disabled">bogus</object> <span>FAIL</span>
+ </div>
+
+ <div>
+ form:
+ <form class="hideme" method="get" action="."><p><input/></p></form> <span>FAIL</span>
+ <form class="hideme" method="get" action="." disabled="disabled"><p><input/></p></form> <span>FAIL</span>
+ </div>
+ </body>
+</html>