From e6833df38e28670401e6f4c4c333209d68d1915b Mon Sep 17 00:00:00 2001 From: "L. David Baron" Date: Thu, 4 Feb 2016 09:43:03 +1100 Subject: [PATCH] Bug 823483 patch 6 - Tests r=dholbert Our behavior on these tests is reasonably close to matching Chromium thanks to the combination of patches 1, 3, and 4, and 5. --- ...sic-with-percents-across-elements-ref.html | 126 ++++++++++++++++++ ...trinsic-with-percents-across-elements.html | 124 +++++++++++++++++ ...ic-with-percents-across-img-cases-ref.html | 88 ++++++++++++ ...rinsic-with-percents-across-img-cases.html | 88 ++++++++++++ layout/reftests/css-sizing/reftest.list | 2 + layout/reftests/reftest.list | 3 + 6 files changed, 431 insertions(+) create mode 100644 layout/reftests/css-sizing/min-intrinsic-with-percents-across-elements-ref.html create mode 100644 layout/reftests/css-sizing/min-intrinsic-with-percents-across-elements.html create mode 100644 layout/reftests/css-sizing/min-intrinsic-with-percents-across-img-cases-ref.html create mode 100644 layout/reftests/css-sizing/min-intrinsic-with-percents-across-img-cases.html create mode 100644 layout/reftests/css-sizing/reftest.list diff --git a/layout/reftests/css-sizing/min-intrinsic-with-percents-across-elements-ref.html b/layout/reftests/css-sizing/min-intrinsic-with-percents-across-elements-ref.html new file mode 100644 index 00000000000..dbd50f8f4bc --- /dev/null +++ b/layout/reftests/css-sizing/min-intrinsic-with-percents-across-elements-ref.html @@ -0,0 +1,126 @@ + +References for bug 823483 + + + + + +
img, unstyled
+ + + + +
img, width: 50%
+ + + + +
img, max-width: 50%
+ + + + +
canvas, unstyled
+ + + + +
canvas, width: 50%
+ + + + +
canvas, max-width: 50%
+ + + + +
iframe, almost unstyled
+ + + + +
iframe, width: 50%
+ + + + +
iframe, max-width: 50%
+ + + + +
input type="text", unstyled
+ + + + +
input type="text", width: 50%
+ + + + +
input type="text", max-width: 50%
+ + + + +
empty input type="button", unstyled
+ + + + + +
empty input type="button", width: 50%
+ + + + + +
empty input type="button", max-width: 50%
+ + + + +
nonempty input type="button", unstyled
+ + + + +
nonempty input type="button", width: 50%
+ + + + +
nonempty input type="button", max-width: 50%
+ + diff --git a/layout/reftests/css-sizing/min-intrinsic-with-percents-across-elements.html b/layout/reftests/css-sizing/min-intrinsic-with-percents-across-elements.html new file mode 100644 index 00000000000..5abfa93e782 --- /dev/null +++ b/layout/reftests/css-sizing/min-intrinsic-with-percents-across-elements.html @@ -0,0 +1,124 @@ + +Tests for bug 823483 + + + + + +
img, unstyled
+ + + + +
img, width: 50%
+ + + + +
img, max-width: 50%
+ + + + +
canvas, unstyled
+ + + + +
canvas, width: 50%
+ + + + +
canvas, max-width: 50%
+ + + + +
iframe, almost unstyled
+ + + + +
iframe, width: 50%
+ + + + +
iframe, max-width: 50%
+ + + + +
input type="text", unstyled
+ + + + +
input type="text", width: 50%
+ + + + +
input type="text", max-width: 50%
+ + + + +
empty input type="button", unstyled
+ + + + +
empty input type="button", width: 50%
+ + + + +
empty input type="button", max-width: 50%
+ + + + +
nonempty input type="button", unstyled
+ + + + +
nonempty input type="button", width: 50%
+ + + + +
nonempty input type="button", max-width: 50%
+ + diff --git a/layout/reftests/css-sizing/min-intrinsic-with-percents-across-img-cases-ref.html b/layout/reftests/css-sizing/min-intrinsic-with-percents-across-img-cases-ref.html new file mode 100644 index 00000000000..efc63f344b8 --- /dev/null +++ b/layout/reftests/css-sizing/min-intrinsic-with-percents-across-img-cases-ref.html @@ -0,0 +1,88 @@ + +References for bug 823483 + + + + + + +
unstyled
+ + + + +
width: 10px
+ + + + +
width: 50%
+ + + + +
min-width: 50%
+ + + + +
max-width: 50%
+ + + + +
width: 10px; max-width: 50%
+ + + + +
width: 10px; min-width: 50%
+ + + + +
width: 150%
+ + + + +
min-width: 150%
+ + + + +
max-width: 150%
+ + + + +
width: 10px; max-width: 150%
+ + + + +
width: 10px; min-width: 150%
+ + diff --git a/layout/reftests/css-sizing/min-intrinsic-with-percents-across-img-cases.html b/layout/reftests/css-sizing/min-intrinsic-with-percents-across-img-cases.html new file mode 100644 index 00000000000..9679aa04774 --- /dev/null +++ b/layout/reftests/css-sizing/min-intrinsic-with-percents-across-img-cases.html @@ -0,0 +1,88 @@ + +Tests for bug 823483 + + + + + + +
unstyled
+ + + + +
width: 10px
+ + + + +
width: 50%
+ + + + +
min-width: 50%
+ + + + +
max-width: 50%
+ + + + +
width: 10px; max-width: 50%
+ + + + +
width: 10px; min-width: 50%
+ + + + +
width: 150%
+ + + + +
min-width: 150%
+ + + + +
max-width: 150%
+ + + + +
width: 10px; max-width: 150%
+ + + + +
width: 10px; min-width: 150%
+ + diff --git a/layout/reftests/css-sizing/reftest.list b/layout/reftests/css-sizing/reftest.list new file mode 100644 index 00000000000..5ffce29be3e --- /dev/null +++ b/layout/reftests/css-sizing/reftest.list @@ -0,0 +1,2 @@ +== min-intrinsic-with-percents-across-img-cases.html min-intrinsic-with-percents-across-img-cases-ref.html +== min-intrinsic-with-percents-across-elements.html min-intrinsic-with-percents-across-elements-ref.html diff --git a/layout/reftests/reftest.list b/layout/reftests/reftest.list index 0a889acc7e2..e2f55999902 100644 --- a/layout/reftests/reftest.list +++ b/layout/reftests/reftest.list @@ -118,6 +118,9 @@ include text-overflow/reftest.list # css selectors include css-selectors/reftest.list +# css sizing +include css-sizing/reftest.list + # css transitions include css-transitions/reftest.list