diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 19:33:14 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 19:33:14 +0000 |
commit | 36d22d82aa202bb199967e9512281e9a53db42c9 (patch) | |
tree | 105e8c98ddea1c1e4784a60a5a6410fa416be2de /layout/reftests/css-disabled/fieldset | |
parent | Initial commit. (diff) | |
download | firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.tar.xz firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.zip |
Adding upstream version 115.7.0esr.upstream/115.7.0esrupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
20 files changed, 253 insertions, 0 deletions
diff --git a/layout/reftests/css-disabled/fieldset/fieldset-disabled.html b/layout/reftests/css-disabled/fieldset/fieldset-disabled.html new file mode 100644 index 0000000000..6cd4fbfead --- /dev/null +++ b/layout/reftests/css-disabled/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-disabled/fieldset/fieldset-enabled.html b/layout/reftests/css-disabled/fieldset/fieldset-enabled.html new file mode 100644 index 0000000000..32915278e4 --- /dev/null +++ b/layout/reftests/css-disabled/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-disabled/fieldset/fieldset-fieldset-1.html b/layout/reftests/css-disabled/fieldset/fieldset-fieldset-1.html new file mode 100644 index 0000000000..9b1ae9f11d --- /dev/null +++ b/layout/reftests/css-disabled/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-disabled/fieldset/fieldset-fieldset-2.html b/layout/reftests/css-disabled/fieldset/fieldset-fieldset-2.html new file mode 100644 index 0000000000..01176a31e7 --- /dev/null +++ b/layout/reftests/css-disabled/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-disabled/fieldset/fieldset-fieldset-3.html b/layout/reftests/css-disabled/fieldset/fieldset-fieldset-3.html new file mode 100644 index 0000000000..4c09335469 --- /dev/null +++ b/layout/reftests/css-disabled/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-disabled/fieldset/fieldset-fieldset-4.html b/layout/reftests/css-disabled/fieldset/fieldset-fieldset-4.html new file mode 100644 index 0000000000..e655812965 --- /dev/null +++ b/layout/reftests/css-disabled/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-disabled/fieldset/fieldset-fieldset-ref.html b/layout/reftests/css-disabled/fieldset/fieldset-fieldset-ref.html new file mode 100644 index 0000000000..ade7fc477c --- /dev/null +++ b/layout/reftests/css-disabled/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-disabled/fieldset/fieldset-legend-1.html b/layout/reftests/css-disabled/fieldset/fieldset-legend-1.html new file mode 100644 index 0000000000..04781eb604 --- /dev/null +++ b/layout/reftests/css-disabled/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-disabled/fieldset/fieldset-legend-2.html b/layout/reftests/css-disabled/fieldset/fieldset-legend-2.html new file mode 100644 index 0000000000..e201ee1664 --- /dev/null +++ b/layout/reftests/css-disabled/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-disabled/fieldset/fieldset-legend-3.html b/layout/reftests/css-disabled/fieldset/fieldset-legend-3.html new file mode 100644 index 0000000000..d9ca78dc31 --- /dev/null +++ b/layout/reftests/css-disabled/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-disabled/fieldset/fieldset-legend-4.html b/layout/reftests/css-disabled/fieldset/fieldset-legend-4.html new file mode 100644 index 0000000000..67c728ef19 --- /dev/null +++ b/layout/reftests/css-disabled/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-disabled/fieldset/fieldset-legend-5.html b/layout/reftests/css-disabled/fieldset/fieldset-legend-5.html new file mode 100644 index 0000000000..c3f82ae2a4 --- /dev/null +++ b/layout/reftests/css-disabled/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-disabled/fieldset/fieldset-legend-ref-1.html b/layout/reftests/css-disabled/fieldset/fieldset-legend-ref-1.html new file mode 100644 index 0000000000..83f1925ad7 --- /dev/null +++ b/layout/reftests/css-disabled/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-disabled/fieldset/fieldset-legend-ref-2.html b/layout/reftests/css-disabled/fieldset/fieldset-legend-ref-2.html new file mode 100644 index 0000000000..33fe2455cd --- /dev/null +++ b/layout/reftests/css-disabled/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-disabled/fieldset/fieldset-legend-ref-3.html b/layout/reftests/css-disabled/fieldset/fieldset-legend-ref-3.html new file mode 100644 index 0000000000..7aaff27f19 --- /dev/null +++ b/layout/reftests/css-disabled/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-disabled/fieldset/fieldset-legend-ref-4.html b/layout/reftests/css-disabled/fieldset/fieldset-legend-ref-4.html new file mode 100644 index 0000000000..9f1a267a6a --- /dev/null +++ b/layout/reftests/css-disabled/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-disabled/fieldset/fieldset-legend-ref-5.html b/layout/reftests/css-disabled/fieldset/fieldset-legend-ref-5.html new file mode 100644 index 0000000000..00df3f8348 --- /dev/null +++ b/layout/reftests/css-disabled/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-disabled/fieldset/fieldset-ref.html b/layout/reftests/css-disabled/fieldset/fieldset-ref.html new file mode 100644 index 0000000000..7f66bc698f --- /dev/null +++ b/layout/reftests/css-disabled/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-disabled/fieldset/reftest.list b/layout/reftests/css-disabled/fieldset/reftest.list new file mode 100644 index 0000000000..cabdaa8e53 --- /dev/null +++ b/layout/reftests/css-disabled/fieldset/reftest.list @@ -0,0 +1,11 @@ +== fieldset-enabled.html fieldset-ref.html +fuzzy(0-2,0-5) == fieldset-disabled.html fieldset-ref.html +== fieldset-fieldset-1.html fieldset-fieldset-ref.html +fuzzy(0-1,0-11) == 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 +== fieldset-legend-2.html fieldset-legend-ref-2.html +== fieldset-legend-3.html fieldset-legend-ref-3.html +== fieldset-legend-4.html fieldset-legend-ref-4.html +== fieldset-legend-5.html fieldset-legend-ref-5.html diff --git a/layout/reftests/css-disabled/fieldset/style.css b/layout/reftests/css-disabled/fieldset/style.css new file mode 100644 index 0000000000..7e476eb822 --- /dev/null +++ b/layout/reftests/css-disabled/fieldset/style.css @@ -0,0 +1,19 @@ +.ref { + background-color: green; +} + +.disabled { + background-color: red; +} + +:disabled.disabled { + background-color: green; +} + +.enabled { + background-color: green; +} + +:disabled.enabled { + background-color: red; +} |