diff options
Diffstat (limited to '')
17 files changed, 230 insertions, 0 deletions
diff --git a/layout/reftests/css-enabled/button/button-fieldset-1.html b/layout/reftests/css-enabled/button/button-fieldset-1.html new file mode 100644 index 0000000000..56c6c2812b --- /dev/null +++ b/layout/reftests/css-enabled/button/button-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"> + <button class="enabled"></button> + </fieldset> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-enabled/button/button-fieldset-2.html b/layout/reftests/css-enabled/button/button-fieldset-2.html new file mode 100644 index 0000000000..e8fff16732 --- /dev/null +++ b/layout/reftests/css-enabled/button/button-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"> + <button class="disabled"></button> + </fieldset> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-enabled/button/button-fieldset-3.html b/layout/reftests/css-enabled/button/button-fieldset-3.html new file mode 100644 index 0000000000..002881d84c --- /dev/null +++ b/layout/reftests/css-enabled/button/button-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"> + <button class="disabled"></button> + </fieldset> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-enabled/button/button-fieldset-4.html b/layout/reftests/css-enabled/button/button-fieldset-4.html new file mode 100644 index 0000000000..ed82a0479b --- /dev/null +++ b/layout/reftests/css-enabled/button/button-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"> + <button class="enabled"></button> + </fieldset> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-enabled/button/button-fieldset-legend-1.html b/layout/reftests/css-enabled/button/button-fieldset-legend-1.html new file mode 100644 index 0000000000..3e9e510eca --- /dev/null +++ b/layout/reftests/css-enabled/button/button-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'> + <button class="enabled"></button> + </legend> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-enabled/button/button-fieldset-legend-2.html b/layout/reftests/css-enabled/button/button-fieldset-legend-2.html new file mode 100644 index 0000000000..b7fe250fa0 --- /dev/null +++ b/layout/reftests/css-enabled/button/button-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> + <button class="disabled"></button> + </legend> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-enabled/button/button-fieldset-legend-3.html b/layout/reftests/css-enabled/button/button-fieldset-legend-3.html new file mode 100644 index 0000000000..f9127b8d5e --- /dev/null +++ b/layout/reftests/css-enabled/button/button-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> + <button class="disabled"></button> + </legend> + </fieldset> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-enabled/button/button-fieldset-legend-4.html b/layout/reftests/css-enabled/button/button-fieldset-legend-4.html new file mode 100644 index 0000000000..1e8840ded3 --- /dev/null +++ b/layout/reftests/css-enabled/button/button-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"> + <button class="enabled"></button> + </fieldset> + </legend> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-enabled/button/button-fieldset-legend-5.html b/layout/reftests/css-enabled/button/button-fieldset-legend-5.html new file mode 100644 index 0000000000..29b7a40d66 --- /dev/null +++ b/layout/reftests/css-enabled/button/button-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> + <button class="enabled"></button> + </legend> + </fieldset> + </legend> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-enabled/button/button-fieldset-legend-ref-1.html b/layout/reftests/css-enabled/button/button-fieldset-legend-ref-1.html new file mode 100644 index 0000000000..69c8ff5f2b --- /dev/null +++ b/layout/reftests/css-enabled/button/button-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> + <button class="ref"></button> + </legend> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-enabled/button/button-fieldset-legend-ref-2.html b/layout/reftests/css-enabled/button/button-fieldset-legend-ref-2.html new file mode 100644 index 0000000000..62dec99da6 --- /dev/null +++ b/layout/reftests/css-enabled/button/button-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> + <button class="ref"></button> + </legend> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-enabled/button/button-fieldset-legend-ref-3.html b/layout/reftests/css-enabled/button/button-fieldset-legend-ref-3.html new file mode 100644 index 0000000000..8807601e09 --- /dev/null +++ b/layout/reftests/css-enabled/button/button-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> + <button class="ref"></button> + </legend> + </fieldset> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-enabled/button/button-fieldset-legend-ref-4.html b/layout/reftests/css-enabled/button/button-fieldset-legend-ref-4.html new file mode 100644 index 0000000000..df92d4480a --- /dev/null +++ b/layout/reftests/css-enabled/button/button-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"> + <button class="ref"></button> + </fieldset> + </legend> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-enabled/button/button-fieldset-legend-ref-5.html b/layout/reftests/css-enabled/button/button-fieldset-legend-ref-5.html new file mode 100644 index 0000000000..7520a19bff --- /dev/null +++ b/layout/reftests/css-enabled/button/button-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> + <button class="ref"></button> + </legend> + </fieldset> + </legend> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-enabled/button/button-fieldset-ref.html b/layout/reftests/css-enabled/button/button-fieldset-ref.html new file mode 100644 index 0000000000..7941c7ddee --- /dev/null +++ b/layout/reftests/css-enabled/button/button-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"> + <button class="ref"></button> + </fieldset> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-enabled/button/reftest.list b/layout/reftests/css-enabled/button/reftest.list new file mode 100644 index 0000000000..a28f72739a --- /dev/null +++ b/layout/reftests/css-enabled/button/reftest.list @@ -0,0 +1,9 @@ +fuzzy(0-1,0-3) == button-fieldset-1.html button-fieldset-ref.html +== button-fieldset-2.html button-fieldset-ref.html +fuzzy(0-1,0-7) == button-fieldset-3.html button-fieldset-ref.html +fuzzy(0-1,0-7) == button-fieldset-4.html button-fieldset-ref.html +== button-fieldset-legend-1.html button-fieldset-legend-ref-1.html +fuzzy(0-2,0-4) == button-fieldset-legend-2.html button-fieldset-legend-ref-2.html +fuzzy(0-1,0-3) == button-fieldset-legend-3.html button-fieldset-legend-ref-3.html +fuzzy(0-2,0-9) == button-fieldset-legend-4.html button-fieldset-legend-ref-4.html +fuzzy(0-2,0-5) == button-fieldset-legend-5.html button-fieldset-legend-ref-5.html diff --git a/layout/reftests/css-enabled/button/style.css b/layout/reftests/css-enabled/button/style.css new file mode 100644 index 0000000000..3846239d0d --- /dev/null +++ b/layout/reftests/css-enabled/button/style.css @@ -0,0 +1,19 @@ +.ref { + background-color: green; +} + +.enabled { + background-color: red; +} + +:enabled.enabled { + background-color: green; +} + +.disabled { + background-color: green; +} + +:enabled.disabled { + background-color: red; +} |