From a1f697372c588549f185899e94be047cf548cd52 Mon Sep 17 00:00:00 2001 From: Arnaud Bienner Date: Tue, 13 May 2014 20:43:10 +0200 Subject: [PATCH 01/66] Bug 1007278: Restore the distinct text-color on disabled buttons. r=dholbert --- .../reftests/forms/button/disabled-1-ref.html | 16 ++++++++++++++++ layout/reftests/forms/button/disabled-1.html | 15 +++++++++++++++ .../reftests/forms/button/disabled-2-ref.html | 17 +++++++++++++++++ layout/reftests/forms/button/disabled-2.html | 17 +++++++++++++++++ .../forms/button/disabled-3-notref.html | 9 +++++++++ layout/reftests/forms/button/disabled-3.html | 9 +++++++++ .../forms/button/disabled-4-notref.html | 9 +++++++++ layout/reftests/forms/button/disabled-4.html | 9 +++++++++ .../forms/button/disabled-5-notref.html | 9 +++++++++ layout/reftests/forms/button/disabled-5.html | 9 +++++++++ .../forms/button/disabled-6-notref.html | 9 +++++++++ layout/reftests/forms/button/disabled-6.html | 9 +++++++++ layout/reftests/forms/button/reftest.list | 12 ++++++++++++ layout/style/forms.css | 1 + 14 files changed, 150 insertions(+) create mode 100644 layout/reftests/forms/button/disabled-1-ref.html create mode 100644 layout/reftests/forms/button/disabled-1.html create mode 100644 layout/reftests/forms/button/disabled-2-ref.html create mode 100644 layout/reftests/forms/button/disabled-2.html create mode 100644 layout/reftests/forms/button/disabled-3-notref.html create mode 100644 layout/reftests/forms/button/disabled-3.html create mode 100644 layout/reftests/forms/button/disabled-4-notref.html create mode 100644 layout/reftests/forms/button/disabled-4.html create mode 100644 layout/reftests/forms/button/disabled-5-notref.html create mode 100644 layout/reftests/forms/button/disabled-5.html create mode 100644 layout/reftests/forms/button/disabled-6-notref.html create mode 100644 layout/reftests/forms/button/disabled-6.html diff --git a/layout/reftests/forms/button/disabled-1-ref.html b/layout/reftests/forms/button/disabled-1-ref.html new file mode 100644 index 00000000000..c408ec16fbd --- /dev/null +++ b/layout/reftests/forms/button/disabled-1-ref.html @@ -0,0 +1,16 @@ + + + +Bug 1007278: test button "disabled" text style + + + + + + diff --git a/layout/reftests/forms/button/disabled-1.html b/layout/reftests/forms/button/disabled-1.html new file mode 100644 index 00000000000..6bcba667bda --- /dev/null +++ b/layout/reftests/forms/button/disabled-1.html @@ -0,0 +1,15 @@ + + + +Bug 1007278: test button "disabled" text style + + + + + + diff --git a/layout/reftests/forms/button/disabled-2-ref.html b/layout/reftests/forms/button/disabled-2-ref.html new file mode 100644 index 00000000000..53958f76b7f --- /dev/null +++ b/layout/reftests/forms/button/disabled-2-ref.html @@ -0,0 +1,17 @@ + + + +Bug 1007278: test all types of buttons look similar when disabled + + + + + + +
+ + + + + + diff --git a/layout/reftests/forms/button/disabled-2.html b/layout/reftests/forms/button/disabled-2.html new file mode 100644 index 00000000000..a77287dfeeb --- /dev/null +++ b/layout/reftests/forms/button/disabled-2.html @@ -0,0 +1,17 @@ + + + +Bug 1007278: test all types of buttons look similar when disabled + + + + + + +
+ + + + + + diff --git a/layout/reftests/forms/button/disabled-3-notref.html b/layout/reftests/forms/button/disabled-3-notref.html new file mode 100644 index 00000000000..bd8b4577467 --- /dev/null +++ b/layout/reftests/forms/button/disabled-3-notref.html @@ -0,0 +1,9 @@ + + + +Bug 1007278: check disabled and non-disabled buttons look different + + + + + diff --git a/layout/reftests/forms/button/disabled-3.html b/layout/reftests/forms/button/disabled-3.html new file mode 100644 index 00000000000..440d43b5318 --- /dev/null +++ b/layout/reftests/forms/button/disabled-3.html @@ -0,0 +1,9 @@ + + + +Bug 1007278: check disabled and non-disabled buttons look different + + + + + diff --git a/layout/reftests/forms/button/disabled-4-notref.html b/layout/reftests/forms/button/disabled-4-notref.html new file mode 100644 index 00000000000..41fe9e61072 --- /dev/null +++ b/layout/reftests/forms/button/disabled-4-notref.html @@ -0,0 +1,9 @@ + + + +Bug 1007278: check disabled and non-disabled buttons look different + + + + + diff --git a/layout/reftests/forms/button/disabled-4.html b/layout/reftests/forms/button/disabled-4.html new file mode 100644 index 00000000000..38f71544a23 --- /dev/null +++ b/layout/reftests/forms/button/disabled-4.html @@ -0,0 +1,9 @@ + + + +Bug 1007278: check disabled and non-disabled buttons look different + + + + + diff --git a/layout/reftests/forms/button/disabled-5-notref.html b/layout/reftests/forms/button/disabled-5-notref.html new file mode 100644 index 00000000000..d944d042164 --- /dev/null +++ b/layout/reftests/forms/button/disabled-5-notref.html @@ -0,0 +1,9 @@ + + + +Bug 1007278: check disabled and non-disabled buttons look different + + + + + diff --git a/layout/reftests/forms/button/disabled-5.html b/layout/reftests/forms/button/disabled-5.html new file mode 100644 index 00000000000..ded7c1905df --- /dev/null +++ b/layout/reftests/forms/button/disabled-5.html @@ -0,0 +1,9 @@ + + + +Bug 1007278: check disabled and non-disabled buttons look different + + + + + diff --git a/layout/reftests/forms/button/disabled-6-notref.html b/layout/reftests/forms/button/disabled-6-notref.html new file mode 100644 index 00000000000..c6f0abce669 --- /dev/null +++ b/layout/reftests/forms/button/disabled-6-notref.html @@ -0,0 +1,9 @@ + + + +Bug 1007278: check disabled and non-disabled buttons look different + + + + + diff --git a/layout/reftests/forms/button/disabled-6.html b/layout/reftests/forms/button/disabled-6.html new file mode 100644 index 00000000000..2a1d9cfa7fd --- /dev/null +++ b/layout/reftests/forms/button/disabled-6.html @@ -0,0 +1,9 @@ + + + +Bug 1007278: check disabled and non-disabled buttons look different + + + + + diff --git a/layout/reftests/forms/button/reftest.list b/layout/reftests/forms/button/reftest.list index 2ffdde8909a..6047d1a1af5 100644 --- a/layout/reftests/forms/button/reftest.list +++ b/layout/reftests/forms/button/reftest.list @@ -17,3 +17,15 @@ fuzzy-if(B2G||Android,125,80) == percent-width-child-2.html percent-width-child != line-height-button-1.5.html line-height-button-1.0.html != line-height-input-0.5.html line-height-input-1.0.html != line-height-input-1.5.html line-height-input-1.0.html + +# Looks like Android and B2G change the text color, but to something slightly +# different from ColorGray +fails-if(Android||B2G) == disabled-1.html disabled-1-ref.html +# While disabled buttons don't look like non-disabled buttons,