diff options
Diffstat (limited to 'layout/reftests/css-enabled/select')
18 files changed, 245 insertions, 0 deletions
diff --git a/layout/reftests/css-enabled/select/reftest.list b/layout/reftests/css-enabled/select/reftest.list new file mode 100644 index 0000000000..4e670f051e --- /dev/null +++ b/layout/reftests/css-enabled/select/reftest.list @@ -0,0 +1,9 @@ +== select-fieldset-1.html select-fieldset-ref.html +fuzzy-if(skiaContent,0-1,0-9) == select-fieldset-2.html select-fieldset-ref-disabled.html +== select-fieldset-3.html select-fieldset-ref-disabled.html +fuzzy-if(skiaContent,0-1,0-9) == select-fieldset-4.html select-fieldset-ref.html +== select-fieldset-legend-1.html select-fieldset-legend-ref-1.html +fuzzy-if(skiaContent,0-2,0-4) == select-fieldset-legend-2.html select-fieldset-legend-ref-2.html +fuzzy-if(skiaContent,0-2,0-5) == select-fieldset-legend-3.html select-fieldset-legend-ref-3.html +fuzzy-if(skiaContent,0-2,0-9) == select-fieldset-legend-4.html select-fieldset-legend-ref-4.html +fuzzy-if(skiaContent,0-2,0-5) == select-fieldset-legend-5.html select-fieldset-legend-ref-5.html diff --git a/layout/reftests/css-enabled/select/select-fieldset-1.html b/layout/reftests/css-enabled/select/select-fieldset-1.html new file mode 100644 index 0000000000..84874986fe --- /dev/null +++ b/layout/reftests/css-enabled/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-enabled/select/select-fieldset-2.html b/layout/reftests/css-enabled/select/select-fieldset-2.html new file mode 100644 index 0000000000..4e34c7fefb --- /dev/null +++ b/layout/reftests/css-enabled/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-enabled/select/select-fieldset-3.html b/layout/reftests/css-enabled/select/select-fieldset-3.html new file mode 100644 index 0000000000..c30347271a --- /dev/null +++ b/layout/reftests/css-enabled/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-enabled/select/select-fieldset-4.html b/layout/reftests/css-enabled/select/select-fieldset-4.html new file mode 100644 index 0000000000..b168a2193c --- /dev/null +++ b/layout/reftests/css-enabled/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-enabled/select/select-fieldset-legend-1.html b/layout/reftests/css-enabled/select/select-fieldset-legend-1.html new file mode 100644 index 0000000000..944303b88a --- /dev/null +++ b/layout/reftests/css-enabled/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-enabled/select/select-fieldset-legend-2.html b/layout/reftests/css-enabled/select/select-fieldset-legend-2.html new file mode 100644 index 0000000000..7a3507be23 --- /dev/null +++ b/layout/reftests/css-enabled/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-enabled/select/select-fieldset-legend-3.html b/layout/reftests/css-enabled/select/select-fieldset-legend-3.html new file mode 100644 index 0000000000..29a98a88ac --- /dev/null +++ b/layout/reftests/css-enabled/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-enabled/select/select-fieldset-legend-4.html b/layout/reftests/css-enabled/select/select-fieldset-legend-4.html new file mode 100644 index 0000000000..4cbc3ca856 --- /dev/null +++ b/layout/reftests/css-enabled/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-enabled/select/select-fieldset-legend-5.html b/layout/reftests/css-enabled/select/select-fieldset-legend-5.html new file mode 100644 index 0000000000..0218b95481 --- /dev/null +++ b/layout/reftests/css-enabled/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-enabled/select/select-fieldset-legend-ref-1.html b/layout/reftests/css-enabled/select/select-fieldset-legend-ref-1.html new file mode 100644 index 0000000000..57c42ddc22 --- /dev/null +++ b/layout/reftests/css-enabled/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-enabled/select/select-fieldset-legend-ref-2.html b/layout/reftests/css-enabled/select/select-fieldset-legend-ref-2.html new file mode 100644 index 0000000000..d21ba476ee --- /dev/null +++ b/layout/reftests/css-enabled/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-enabled/select/select-fieldset-legend-ref-3.html b/layout/reftests/css-enabled/select/select-fieldset-legend-ref-3.html new file mode 100644 index 0000000000..d4b147fa1a --- /dev/null +++ b/layout/reftests/css-enabled/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-enabled/select/select-fieldset-legend-ref-4.html b/layout/reftests/css-enabled/select/select-fieldset-legend-ref-4.html new file mode 100644 index 0000000000..55df97e20a --- /dev/null +++ b/layout/reftests/css-enabled/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-enabled/select/select-fieldset-legend-ref-5.html b/layout/reftests/css-enabled/select/select-fieldset-legend-ref-5.html new file mode 100644 index 0000000000..1c3275c90b --- /dev/null +++ b/layout/reftests/css-enabled/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-enabled/select/select-fieldset-ref-disabled.html b/layout/reftests/css-enabled/select/select-fieldset-ref-disabled.html new file mode 100644 index 0000000000..273223696b --- /dev/null +++ b/layout/reftests/css-enabled/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-enabled/select/select-fieldset-ref.html b/layout/reftests/css-enabled/select/select-fieldset-ref.html new file mode 100644 index 0000000000..e85e16f6b1 --- /dev/null +++ b/layout/reftests/css-enabled/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-enabled/select/style.css b/layout/reftests/css-enabled/select/style.css new file mode 100644 index 0000000000..b79686e37f --- /dev/null +++ b/layout/reftests/css-enabled/select/style.css @@ -0,0 +1,23 @@ +select { + -moz-appearance: none; +} + +.ref { + background-color: green; +} + +.enabled { + background-color: red; +} + +:enabled.enabled { + background-color: green; +} + +.disabled { + background-color: green; +} + +:enabled.disabled { + background-color: red; +} |