summaryrefslogtreecommitdiffstats
path: root/layout/reftests/css-enabled/fieldset
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
commit43a97878ce14b72f0981164f87f2e35e14151312 (patch)
tree620249daf56c0258faa40cbdcf9cfba06de2a846 /layout/reftests/css-enabled/fieldset
parentInitial commit. (diff)
downloadfirefox-upstream.tar.xz
firefox-upstream.zip
Adding upstream version 110.0.1.upstream/110.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'layout/reftests/css-enabled/fieldset')
-rw-r--r--layout/reftests/css-enabled/fieldset/fieldset-disabled.html7
-rw-r--r--layout/reftests/css-enabled/fieldset/fieldset-enabled.html7
-rw-r--r--layout/reftests/css-enabled/fieldset/fieldset-fieldset-1.html11
-rw-r--r--layout/reftests/css-enabled/fieldset/fieldset-fieldset-2.html11
-rw-r--r--layout/reftests/css-enabled/fieldset/fieldset-fieldset-3.html20
-rw-r--r--layout/reftests/css-enabled/fieldset/fieldset-fieldset-4.html19
-rw-r--r--layout/reftests/css-enabled/fieldset/fieldset-fieldset-ref.html11
-rw-r--r--layout/reftests/css-enabled/fieldset/fieldset-legend-1.html11
-rw-r--r--layout/reftests/css-enabled/fieldset/fieldset-legend-2.html13
-rw-r--r--layout/reftests/css-enabled/fieldset/fieldset-legend-3.html13
-rw-r--r--layout/reftests/css-enabled/fieldset/fieldset-legend-4.html13
-rw-r--r--layout/reftests/css-enabled/fieldset/fieldset-legend-5.html15
-rw-r--r--layout/reftests/css-enabled/fieldset/fieldset-legend-ref-1.html11
-rw-r--r--layout/reftests/css-enabled/fieldset/fieldset-legend-ref-2.html13
-rw-r--r--layout/reftests/css-enabled/fieldset/fieldset-legend-ref-3.html13
-rw-r--r--layout/reftests/css-enabled/fieldset/fieldset-legend-ref-4.html13
-rw-r--r--layout/reftests/css-enabled/fieldset/fieldset-legend-ref-5.html15
-rw-r--r--layout/reftests/css-enabled/fieldset/fieldset-ref.html7
-rw-r--r--layout/reftests/css-enabled/fieldset/reftest.list11
-rw-r--r--layout/reftests/css-enabled/fieldset/style.css16
20 files changed, 250 insertions, 0 deletions
diff --git a/layout/reftests/css-enabled/fieldset/fieldset-disabled.html b/layout/reftests/css-enabled/fieldset/fieldset-disabled.html
new file mode 100644
index 0000000000..6cd4fbfead
--- /dev/null
+++ b/layout/reftests/css-enabled/fieldset/fieldset-disabled.html
@@ -0,0 +1,7 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="disabled" disabled></fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-enabled/fieldset/fieldset-enabled.html b/layout/reftests/css-enabled/fieldset/fieldset-enabled.html
new file mode 100644
index 0000000000..32915278e4
--- /dev/null
+++ b/layout/reftests/css-enabled/fieldset/fieldset-enabled.html
@@ -0,0 +1,7 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="enabled"></fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-enabled/fieldset/fieldset-fieldset-1.html b/layout/reftests/css-enabled/fieldset/fieldset-fieldset-1.html
new file mode 100644
index 0000000000..9b1ae9f11d
--- /dev/null
+++ b/layout/reftests/css-enabled/fieldset/fieldset-fieldset-1.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="enabled">
+ <fieldset class="enabled">
+ <fieldset class="enabled"></fieldset>
+ </fieldset>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-enabled/fieldset/fieldset-fieldset-2.html b/layout/reftests/css-enabled/fieldset/fieldset-fieldset-2.html
new file mode 100644
index 0000000000..01176a31e7
--- /dev/null
+++ b/layout/reftests/css-enabled/fieldset/fieldset-fieldset-2.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset disabled class="disabled">
+ <fieldset class="disabled">
+ <fieldset class="disabled"></fieldset>
+ </fieldset>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-enabled/fieldset/fieldset-fieldset-3.html b/layout/reftests/css-enabled/fieldset/fieldset-fieldset-3.html
new file mode 100644
index 0000000000..4c09335469
--- /dev/null
+++ b/layout/reftests/css-enabled/fieldset/fieldset-fieldset-3.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html class="reftest-wait">
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <script>
+ function onloadHandler()
+ {
+ var fieldsets = document.getElementsByTagName('fieldset');
+ fieldsets[1].disabled = true;
+ fieldsets[0].disabled = false;
+ document.documentElement.className='';
+ }
+ </script>
+ <body onload="onloadHandler();">
+ <fieldset disabled class="enabled">
+ <fieldset class="disabled">
+ <fieldset class="disabled"></fieldset>
+ </fieldset>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-enabled/fieldset/fieldset-fieldset-4.html b/layout/reftests/css-enabled/fieldset/fieldset-fieldset-4.html
new file mode 100644
index 0000000000..e655812965
--- /dev/null
+++ b/layout/reftests/css-enabled/fieldset/fieldset-fieldset-4.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html class="reftest-wait">
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <script>
+ function onloadHandler()
+ {
+ var fieldsets = document.getElementsByTagName('fieldset');
+ fieldsets[0].disabled = false;
+ document.documentElement.className='';
+ }
+ </script>
+ <body onload="onloadHandler();">
+ <fieldset disabled class="enabled">
+ <fieldset class="enabled">
+ <fieldset class="enabled"></fieldset>
+ </fieldset>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-enabled/fieldset/fieldset-fieldset-ref.html b/layout/reftests/css-enabled/fieldset/fieldset-fieldset-ref.html
new file mode 100644
index 0000000000..ade7fc477c
--- /dev/null
+++ b/layout/reftests/css-enabled/fieldset/fieldset-fieldset-ref.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="ref">
+ <fieldset class="ref">
+ <fieldset class="ref"></fieldset>
+ </fieldset>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-enabled/fieldset/fieldset-legend-1.html b/layout/reftests/css-enabled/fieldset/fieldset-legend-1.html
new file mode 100644
index 0000000000..04781eb604
--- /dev/null
+++ b/layout/reftests/css-enabled/fieldset/fieldset-legend-1.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="disabled" disabled>
+ <legend id='i'>
+ <fieldset class="enabled"></fieldset>
+ </legend>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-enabled/fieldset/fieldset-legend-2.html b/layout/reftests/css-enabled/fieldset/fieldset-legend-2.html
new file mode 100644
index 0000000000..e201ee1664
--- /dev/null
+++ b/layout/reftests/css-enabled/fieldset/fieldset-legend-2.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="disabled" disabled>
+ <legend>
+ </legend>
+ <legend>
+ <fieldset class="disabled"></fieldset>
+ </legend>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-enabled/fieldset/fieldset-legend-3.html b/layout/reftests/css-enabled/fieldset/fieldset-legend-3.html
new file mode 100644
index 0000000000..d9ca78dc31
--- /dev/null
+++ b/layout/reftests/css-enabled/fieldset/fieldset-legend-3.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="disabled" disabled>
+ <fieldset class="disabled">
+ <legend>
+ <fieldset class="disabled"></fieldset>
+ </legend>
+ </fieldset>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-enabled/fieldset/fieldset-legend-4.html b/layout/reftests/css-enabled/fieldset/fieldset-legend-4.html
new file mode 100644
index 0000000000..67c728ef19
--- /dev/null
+++ b/layout/reftests/css-enabled/fieldset/fieldset-legend-4.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="disabled" disabled>
+ <legend>
+ <fieldset class="enabled">
+ <fieldset class="enabled"></fieldset>
+ </fieldset>
+ </legend>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-enabled/fieldset/fieldset-legend-5.html b/layout/reftests/css-enabled/fieldset/fieldset-legend-5.html
new file mode 100644
index 0000000000..c3f82ae2a4
--- /dev/null
+++ b/layout/reftests/css-enabled/fieldset/fieldset-legend-5.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="disabled" disabled>
+ <legend>
+ <fieldset class="disabled" disabled>
+ <legend>
+ <fieldset class="enabled"></fieldset>
+ </legend>
+ </fieldset>
+ </legend>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-enabled/fieldset/fieldset-legend-ref-1.html b/layout/reftests/css-enabled/fieldset/fieldset-legend-ref-1.html
new file mode 100644
index 0000000000..83f1925ad7
--- /dev/null
+++ b/layout/reftests/css-enabled/fieldset/fieldset-legend-ref-1.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="ref">
+ <legend>
+ <fieldset class="ref"></fieldset>
+ </legend>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-enabled/fieldset/fieldset-legend-ref-2.html b/layout/reftests/css-enabled/fieldset/fieldset-legend-ref-2.html
new file mode 100644
index 0000000000..33fe2455cd
--- /dev/null
+++ b/layout/reftests/css-enabled/fieldset/fieldset-legend-ref-2.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="ref">
+ <legend>
+ </legend>
+ <legend>
+ <fieldset class="ref"></fieldset>
+ </legend>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-enabled/fieldset/fieldset-legend-ref-3.html b/layout/reftests/css-enabled/fieldset/fieldset-legend-ref-3.html
new file mode 100644
index 0000000000..7aaff27f19
--- /dev/null
+++ b/layout/reftests/css-enabled/fieldset/fieldset-legend-ref-3.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="ref">
+ <fieldset class="ref">
+ <legend>
+ <fieldset class="ref"></fieldset>
+ </legend>
+ </fieldset>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-enabled/fieldset/fieldset-legend-ref-4.html b/layout/reftests/css-enabled/fieldset/fieldset-legend-ref-4.html
new file mode 100644
index 0000000000..9f1a267a6a
--- /dev/null
+++ b/layout/reftests/css-enabled/fieldset/fieldset-legend-ref-4.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="ref">
+ <legend>
+ <fieldset class="ref">
+ <fieldset class="ref"></fieldset>
+ </fieldset>
+ </legend>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-enabled/fieldset/fieldset-legend-ref-5.html b/layout/reftests/css-enabled/fieldset/fieldset-legend-ref-5.html
new file mode 100644
index 0000000000..00df3f8348
--- /dev/null
+++ b/layout/reftests/css-enabled/fieldset/fieldset-legend-ref-5.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="ref">
+ <legend>
+ <fieldset class="ref">
+ <legend>
+ <fieldset class="ref"></fieldset>
+ </legend>
+ </fieldset>
+ </legend>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-enabled/fieldset/fieldset-ref.html b/layout/reftests/css-enabled/fieldset/fieldset-ref.html
new file mode 100644
index 0000000000..7f66bc698f
--- /dev/null
+++ b/layout/reftests/css-enabled/fieldset/fieldset-ref.html
@@ -0,0 +1,7 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class='ref'></fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-enabled/fieldset/reftest.list b/layout/reftests/css-enabled/fieldset/reftest.list
new file mode 100644
index 0000000000..c5b92e083b
--- /dev/null
+++ b/layout/reftests/css-enabled/fieldset/reftest.list
@@ -0,0 +1,11 @@
+== fieldset-enabled.html fieldset-ref.html
+== fieldset-disabled.html fieldset-ref.html
+== fieldset-fieldset-1.html fieldset-fieldset-ref.html
+== fieldset-fieldset-2.html fieldset-fieldset-ref.html
+fuzzy(0-1,0-11) == fieldset-fieldset-3.html fieldset-fieldset-ref.html
+fuzzy(0-1,0-11) == fieldset-fieldset-4.html fieldset-fieldset-ref.html
+== fieldset-legend-1.html fieldset-legend-ref-1.html
+fuzzy(0-1,0-2) == fieldset-legend-2.html fieldset-legend-ref-2.html
+fuzzy(0-2,0-5) == fieldset-legend-3.html fieldset-legend-ref-3.html
+fuzzy(0-2,0-9) == fieldset-legend-4.html fieldset-legend-ref-4.html
+fuzzy(0-2,0-5) == fieldset-legend-5.html fieldset-legend-ref-5.html
diff --git a/layout/reftests/css-enabled/fieldset/style.css b/layout/reftests/css-enabled/fieldset/style.css
new file mode 100644
index 0000000000..7b804aa6f1
--- /dev/null
+++ b/layout/reftests/css-enabled/fieldset/style.css
@@ -0,0 +1,16 @@
+fieldset.enabled {
+ background-color: red;
+}
+
+fieldset:enabled.enabled,
+fieldset.ref {
+ background-color: green;
+}
+
+fieldset.disabled {
+ background-color: green;
+}
+
+fieldset:enabled.disabled {
+ background-color: red;
+}