diff options
Diffstat (limited to 'layout/reftests/css-enabled/button')
18 files changed, 244 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 000000000..56c6c2812 --- /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 000000000..e8fff1673 --- /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 000000000..002881d84 --- /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 000000000..ed82a0479 --- /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 000000000..3e9e510ec --- /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 000000000..b7fe250fa --- /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 000000000..f9127b8d5 --- /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 000000000..1e8840ded --- /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 000000000..29b7a40d6 --- /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 000000000..69c8ff5f2 --- /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 000000000..62dec99da --- /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 000000000..8807601e0 --- /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 000000000..df92d4480 --- /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 000000000..7520a19bf --- /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 000000000..7941c7dde --- /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-stylo.list b/layout/reftests/css-enabled/button/reftest-stylo.list new file mode 100644 index 000000000..1ff75682f --- /dev/null +++ b/layout/reftests/css-enabled/button/reftest-stylo.list @@ -0,0 +1,14 @@ +# DO NOT EDIT! This is a auto-generated temporary list for Stylo testing +fuzzy-if(skiaContent,1,3) == button-fieldset-1.html button-fieldset-1.html +fails-if(B2G||Mulet) == button-fieldset-2.html button-fieldset-2.html +# Initial mulet triage: parity with B2G/B2G Desktop +fails-if(B2G||Mulet) fuzzy-if(skiaContent,1,7) == button-fieldset-3.html button-fieldset-3.html +# Initial mulet triage: parity with B2G/B2G Desktop +fails fuzzy-if(skiaContent,1,7) == button-fieldset-4.html button-fieldset-4.html +== button-fieldset-legend-1.html button-fieldset-legend-1.html +fails-if(B2G||Mulet) fuzzy-if(skiaContent,2,4) == button-fieldset-legend-2.html button-fieldset-legend-2.html +# Initial mulet triage: parity with B2G/B2G Desktop +fails-if(B2G||Mulet) fuzzy-if(skiaContent,1,3) == button-fieldset-legend-3.html button-fieldset-legend-3.html +# Initial mulet triage: parity with B2G/B2G Desktop +fuzzy-if(skiaContent,2,9) == button-fieldset-legend-4.html button-fieldset-legend-4.html +fuzzy-if(skiaContent,2,5) == button-fieldset-legend-5.html button-fieldset-legend-5.html diff --git a/layout/reftests/css-enabled/button/reftest.list b/layout/reftests/css-enabled/button/reftest.list new file mode 100644 index 000000000..4be7b48e6 --- /dev/null +++ b/layout/reftests/css-enabled/button/reftest.list @@ -0,0 +1,9 @@ +fuzzy-if(skiaContent,1,3) == button-fieldset-1.html button-fieldset-ref.html +== button-fieldset-2.html button-fieldset-ref.html +fuzzy-if(skiaContent,1,7) == button-fieldset-3.html button-fieldset-ref.html +fuzzy-if(skiaContent,1,7) == button-fieldset-4.html button-fieldset-ref.html +== button-fieldset-legend-1.html button-fieldset-legend-ref-1.html +fuzzy-if(skiaContent,2,4) == button-fieldset-legend-2.html button-fieldset-legend-ref-2.html +fuzzy-if(skiaContent,1,3) == button-fieldset-legend-3.html button-fieldset-legend-ref-3.html +fuzzy-if(skiaContent,2,9) == button-fieldset-legend-4.html button-fieldset-legend-ref-4.html +fuzzy-if(skiaContent,2,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 000000000..3846239d0 --- /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; +} |