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/textarea | |
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 '')
17 files changed, 230 insertions, 0 deletions
diff --git a/layout/reftests/css-disabled/textarea/reftest.list b/layout/reftests/css-disabled/textarea/reftest.list new file mode 100644 index 0000000000..70f8c663be --- /dev/null +++ b/layout/reftests/css-disabled/textarea/reftest.list @@ -0,0 +1,9 @@ +fuzzy(0-1,0-10) == textarea-fieldset-1.html textarea-fieldset-ref.html +== textarea-fieldset-2.html textarea-fieldset-ref.html +== textarea-fieldset-3.html textarea-fieldset-ref.html +== textarea-fieldset-4.html textarea-fieldset-ref.html +fuzzy(0-1,0-5) == textarea-fieldset-legend-1.html textarea-fieldset-legend-ref-1.html +fuzzy(0-1,0-5) == textarea-fieldset-legend-2.html textarea-fieldset-legend-ref-2.html +fuzzy(0-1,0-5) == textarea-fieldset-legend-3.html textarea-fieldset-legend-ref-3.html +fuzzy(0-1,0-5) == textarea-fieldset-legend-4.html textarea-fieldset-legend-ref-4.html +fuzzy(0-1,0-5) == textarea-fieldset-legend-5.html textarea-fieldset-legend-ref-5.html diff --git a/layout/reftests/css-disabled/textarea/style.css b/layout/reftests/css-disabled/textarea/style.css new file mode 100644 index 0000000000..7e476eb822 --- /dev/null +++ b/layout/reftests/css-disabled/textarea/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; +} diff --git a/layout/reftests/css-disabled/textarea/textarea-fieldset-1.html b/layout/reftests/css-disabled/textarea/textarea-fieldset-1.html new file mode 100644 index 0000000000..6c040b67ea --- /dev/null +++ b/layout/reftests/css-disabled/textarea/textarea-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"> + <textarea class="enabled"></textarea> + </fieldset> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-disabled/textarea/textarea-fieldset-2.html b/layout/reftests/css-disabled/textarea/textarea-fieldset-2.html new file mode 100644 index 0000000000..6c22f2c175 --- /dev/null +++ b/layout/reftests/css-disabled/textarea/textarea-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"> + <textarea class="disabled"></textarea> + </fieldset> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-disabled/textarea/textarea-fieldset-3.html b/layout/reftests/css-disabled/textarea/textarea-fieldset-3.html new file mode 100644 index 0000000000..82172c45f4 --- /dev/null +++ b/layout/reftests/css-disabled/textarea/textarea-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"> + <textarea class="disabled"></textarea> + </fieldset> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-disabled/textarea/textarea-fieldset-4.html b/layout/reftests/css-disabled/textarea/textarea-fieldset-4.html new file mode 100644 index 0000000000..a4ba7a1006 --- /dev/null +++ b/layout/reftests/css-disabled/textarea/textarea-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"> + <textarea class="enabled"></textarea> + </fieldset> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-disabled/textarea/textarea-fieldset-legend-1.html b/layout/reftests/css-disabled/textarea/textarea-fieldset-legend-1.html new file mode 100644 index 0000000000..5ab543a864 --- /dev/null +++ b/layout/reftests/css-disabled/textarea/textarea-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'> + <textarea class="enabled"></textarea> + </legend> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-disabled/textarea/textarea-fieldset-legend-2.html b/layout/reftests/css-disabled/textarea/textarea-fieldset-legend-2.html new file mode 100644 index 0000000000..3385d534ba --- /dev/null +++ b/layout/reftests/css-disabled/textarea/textarea-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> + <textarea class="disabled"></textarea> + </legend> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-disabled/textarea/textarea-fieldset-legend-3.html b/layout/reftests/css-disabled/textarea/textarea-fieldset-legend-3.html new file mode 100644 index 0000000000..d3c94ee5d7 --- /dev/null +++ b/layout/reftests/css-disabled/textarea/textarea-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> + <textarea class="disabled"></textarea> + </legend> + </fieldset> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-disabled/textarea/textarea-fieldset-legend-4.html b/layout/reftests/css-disabled/textarea/textarea-fieldset-legend-4.html new file mode 100644 index 0000000000..8d04971bd8 --- /dev/null +++ b/layout/reftests/css-disabled/textarea/textarea-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"> + <textarea class="enabled"></textarea> + </fieldset> + </legend> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-disabled/textarea/textarea-fieldset-legend-5.html b/layout/reftests/css-disabled/textarea/textarea-fieldset-legend-5.html new file mode 100644 index 0000000000..856023ad9e --- /dev/null +++ b/layout/reftests/css-disabled/textarea/textarea-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> + <textarea class="enabled"></textarea> + </legend> + </fieldset> + </legend> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-disabled/textarea/textarea-fieldset-legend-ref-1.html b/layout/reftests/css-disabled/textarea/textarea-fieldset-legend-ref-1.html new file mode 100644 index 0000000000..d3824560dd --- /dev/null +++ b/layout/reftests/css-disabled/textarea/textarea-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> + <textarea class="ref"></textarea> + </legend> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-disabled/textarea/textarea-fieldset-legend-ref-2.html b/layout/reftests/css-disabled/textarea/textarea-fieldset-legend-ref-2.html new file mode 100644 index 0000000000..f508a5d307 --- /dev/null +++ b/layout/reftests/css-disabled/textarea/textarea-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> + <textarea class="ref"></textarea> + </legend> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-disabled/textarea/textarea-fieldset-legend-ref-3.html b/layout/reftests/css-disabled/textarea/textarea-fieldset-legend-ref-3.html new file mode 100644 index 0000000000..799c2b8763 --- /dev/null +++ b/layout/reftests/css-disabled/textarea/textarea-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> + <textarea class="ref"></textarea> + </legend> + </fieldset> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-disabled/textarea/textarea-fieldset-legend-ref-4.html b/layout/reftests/css-disabled/textarea/textarea-fieldset-legend-ref-4.html new file mode 100644 index 0000000000..83ee46e601 --- /dev/null +++ b/layout/reftests/css-disabled/textarea/textarea-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"> + <textarea class="ref"></textarea> + </fieldset> + </legend> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-disabled/textarea/textarea-fieldset-legend-ref-5.html b/layout/reftests/css-disabled/textarea/textarea-fieldset-legend-ref-5.html new file mode 100644 index 0000000000..dd63a89a21 --- /dev/null +++ b/layout/reftests/css-disabled/textarea/textarea-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> + <textarea class="ref"></textarea> + </legend> + </fieldset> + </legend> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-disabled/textarea/textarea-fieldset-ref.html b/layout/reftests/css-disabled/textarea/textarea-fieldset-ref.html new file mode 100644 index 0000000000..1cc1d344dc --- /dev/null +++ b/layout/reftests/css-disabled/textarea/textarea-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"> + <textarea class="ref"></textarea> + </fieldset> + </fieldset> + </body> +</html> |