diff options
Diffstat (limited to 'layout/reftests/css-disabled/textarea')
18 files changed, 240 insertions, 0 deletions
diff --git a/layout/reftests/css-disabled/textarea/reftest-stylo.list b/layout/reftests/css-disabled/textarea/reftest-stylo.list new file mode 100644 index 000000000..46e598475 --- /dev/null +++ b/layout/reftests/css-disabled/textarea/reftest-stylo.list @@ -0,0 +1,10 @@ +# DO NOT EDIT! This is a auto-generated temporary list for Stylo testing +fuzzy-if(skiaContent,1,10) == textarea-fieldset-1.html textarea-fieldset-1.html +== textarea-fieldset-2.html textarea-fieldset-2.html +== textarea-fieldset-3.html textarea-fieldset-3.html +== textarea-fieldset-4.html textarea-fieldset-4.html +fuzzy-if(skiaContent,1,5) == textarea-fieldset-legend-1.html textarea-fieldset-legend-1.html +fuzzy-if(skiaContent,1,5) == textarea-fieldset-legend-2.html textarea-fieldset-legend-2.html +fuzzy-if(skiaContent,1,5) == textarea-fieldset-legend-3.html textarea-fieldset-legend-3.html +fuzzy-if(skiaContent,1,5) == textarea-fieldset-legend-4.html textarea-fieldset-legend-4.html +fuzzy-if(skiaContent,1,5) == textarea-fieldset-legend-5.html textarea-fieldset-legend-5.html diff --git a/layout/reftests/css-disabled/textarea/reftest.list b/layout/reftests/css-disabled/textarea/reftest.list new file mode 100644 index 000000000..12f14cefe --- /dev/null +++ b/layout/reftests/css-disabled/textarea/reftest.list @@ -0,0 +1,9 @@ +fuzzy-if(skiaContent,1,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-if(skiaContent,1,5) == textarea-fieldset-legend-1.html textarea-fieldset-legend-ref-1.html +fuzzy-if(skiaContent,1,5) == textarea-fieldset-legend-2.html textarea-fieldset-legend-ref-2.html +fuzzy-if(skiaContent,1,5) == textarea-fieldset-legend-3.html textarea-fieldset-legend-ref-3.html +fuzzy-if(skiaContent,1,5) == textarea-fieldset-legend-4.html textarea-fieldset-legend-ref-4.html +fuzzy-if(skiaContent,1,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 000000000..7e476eb82 --- /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 000000000..6c040b67e --- /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 000000000..6c22f2c17 --- /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 000000000..82172c45f --- /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 000000000..a4ba7a100 --- /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 000000000..5ab543a86 --- /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 000000000..3385d534b --- /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 000000000..d3c94ee5d --- /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 000000000..8d04971bd --- /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 000000000..856023ad9 --- /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 000000000..d3824560d --- /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 000000000..f508a5d30 --- /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 000000000..799c2b876 --- /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 000000000..83ee46e60 --- /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 000000000..dd63a89a2 --- /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 000000000..1cc1d344d --- /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> |