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/select | |
parent | Initial commit. (diff) | |
download | firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.tar.xz firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.zip |
Adding upstream version 115.7.0esr.upstream/115.7.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'layout/reftests/css-disabled/select')
18 files changed, 241 insertions, 0 deletions
diff --git a/layout/reftests/css-disabled/select/reftest.list b/layout/reftests/css-disabled/select/reftest.list new file mode 100644 index 0000000000..9a7f56df91 --- /dev/null +++ b/layout/reftests/css-disabled/select/reftest.list @@ -0,0 +1,9 @@ +fuzzy-if(Android,0-12,0-1) == select-fieldset-1.html select-fieldset-ref.html +fuzzy-if(Android,0-12,0-1) fuzzy-if(!Android,0-2,0-17) == select-fieldset-2.html select-fieldset-ref-disabled.html +fuzzy-if(!Android,0-2,0-17) == select-fieldset-3.html select-fieldset-ref-disabled.html +fuzzy-if(Android,0-12,0-1) fuzzy-if(!Android,0-2,0-13) == select-fieldset-4.html select-fieldset-ref.html +== select-fieldset-legend-1.html select-fieldset-legend-ref-1.html +fuzzy-if(Android,0-12,0-1) fuzzy-if(!Android,0-2,0-6) == select-fieldset-legend-2.html select-fieldset-legend-ref-2.html +fuzzy-if(Android,0-12,0-1) fuzzy-if(!Android,0-2,0-8) == select-fieldset-legend-3.html select-fieldset-legend-ref-3.html +fuzzy-if(Android,0-12,0-1) fuzzy-if(!Android,0-2,0-12) == select-fieldset-legend-4.html select-fieldset-legend-ref-4.html +fuzzy(0-2,0-5) == select-fieldset-legend-5.html select-fieldset-legend-ref-5.html diff --git a/layout/reftests/css-disabled/select/select-fieldset-1.html b/layout/reftests/css-disabled/select/select-fieldset-1.html new file mode 100644 index 0000000000..84874986fe --- /dev/null +++ b/layout/reftests/css-disabled/select/select-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"> + <select class="enabled"></select> + </fieldset> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-disabled/select/select-fieldset-2.html b/layout/reftests/css-disabled/select/select-fieldset-2.html new file mode 100644 index 0000000000..4e34c7fefb --- /dev/null +++ b/layout/reftests/css-disabled/select/select-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"> + <select class="disabled"></select> + </fieldset> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-disabled/select/select-fieldset-3.html b/layout/reftests/css-disabled/select/select-fieldset-3.html new file mode 100644 index 0000000000..c30347271a --- /dev/null +++ b/layout/reftests/css-disabled/select/select-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"> + <select class="disabled"></select> + </fieldset> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-disabled/select/select-fieldset-4.html b/layout/reftests/css-disabled/select/select-fieldset-4.html new file mode 100644 index 0000000000..b168a2193c --- /dev/null +++ b/layout/reftests/css-disabled/select/select-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"> + <select class="enabled"></select> + </fieldset> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-disabled/select/select-fieldset-legend-1.html b/layout/reftests/css-disabled/select/select-fieldset-legend-1.html new file mode 100644 index 0000000000..944303b88a --- /dev/null +++ b/layout/reftests/css-disabled/select/select-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'> + <select class="enabled"></select> + </legend> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-disabled/select/select-fieldset-legend-2.html b/layout/reftests/css-disabled/select/select-fieldset-legend-2.html new file mode 100644 index 0000000000..7a3507be23 --- /dev/null +++ b/layout/reftests/css-disabled/select/select-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> + <select class="disabled"></select> + </legend> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-disabled/select/select-fieldset-legend-3.html b/layout/reftests/css-disabled/select/select-fieldset-legend-3.html new file mode 100644 index 0000000000..29a98a88ac --- /dev/null +++ b/layout/reftests/css-disabled/select/select-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> + <select class="disabled"></select> + </legend> + </fieldset> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-disabled/select/select-fieldset-legend-4.html b/layout/reftests/css-disabled/select/select-fieldset-legend-4.html new file mode 100644 index 0000000000..4cbc3ca856 --- /dev/null +++ b/layout/reftests/css-disabled/select/select-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"> + <select class="enabled"></select> + </fieldset> + </legend> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-disabled/select/select-fieldset-legend-5.html b/layout/reftests/css-disabled/select/select-fieldset-legend-5.html new file mode 100644 index 0000000000..0218b95481 --- /dev/null +++ b/layout/reftests/css-disabled/select/select-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> + <select class="enabled"></select> + </legend> + </fieldset> + </legend> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-disabled/select/select-fieldset-legend-ref-1.html b/layout/reftests/css-disabled/select/select-fieldset-legend-ref-1.html new file mode 100644 index 0000000000..57c42ddc22 --- /dev/null +++ b/layout/reftests/css-disabled/select/select-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> + <select class="ref"></select> + </legend> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-disabled/select/select-fieldset-legend-ref-2.html b/layout/reftests/css-disabled/select/select-fieldset-legend-ref-2.html new file mode 100644 index 0000000000..d21ba476ee --- /dev/null +++ b/layout/reftests/css-disabled/select/select-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> + <select disabled class="ref"></select> + </legend> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-disabled/select/select-fieldset-legend-ref-3.html b/layout/reftests/css-disabled/select/select-fieldset-legend-ref-3.html new file mode 100644 index 0000000000..d4b147fa1a --- /dev/null +++ b/layout/reftests/css-disabled/select/select-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> + <select disabled class="ref"></select> + </legend> + </fieldset> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-disabled/select/select-fieldset-legend-ref-4.html b/layout/reftests/css-disabled/select/select-fieldset-legend-ref-4.html new file mode 100644 index 0000000000..55df97e20a --- /dev/null +++ b/layout/reftests/css-disabled/select/select-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"> + <select class="ref"></select> + </fieldset> + </legend> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-disabled/select/select-fieldset-legend-ref-5.html b/layout/reftests/css-disabled/select/select-fieldset-legend-ref-5.html new file mode 100644 index 0000000000..1c3275c90b --- /dev/null +++ b/layout/reftests/css-disabled/select/select-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> + <select class="ref"></select> + </legend> + </fieldset> + </legend> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-disabled/select/select-fieldset-ref-disabled.html b/layout/reftests/css-disabled/select/select-fieldset-ref-disabled.html new file mode 100644 index 0000000000..273223696b --- /dev/null +++ b/layout/reftests/css-disabled/select/select-fieldset-ref-disabled.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> + <link rel='stylesheet' type='text/css' href='style.css'> + <body> + <fieldset class="ref"> + <fieldset class="ref"> + <select disabled class="ref"></select> + </fieldset> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-disabled/select/select-fieldset-ref.html b/layout/reftests/css-disabled/select/select-fieldset-ref.html new file mode 100644 index 0000000000..e85e16f6b1 --- /dev/null +++ b/layout/reftests/css-disabled/select/select-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"> + <select class="ref"></select> + </fieldset> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-disabled/select/style.css b/layout/reftests/css-disabled/select/style.css new file mode 100644 index 0000000000..7e476eb822 --- /dev/null +++ b/layout/reftests/css-disabled/select/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; +} |