From 26a029d407be480d791972afb5975cf62c9360a6 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 02:47:55 +0200 Subject: Adding upstream version 124.0.1. Signed-off-by: Daniel Baumann --- layout/reftests/high-contrast/ahem.css | 4 + .../high-contrast/backplate-bg-image-001-ref.html | 25 +++++ .../high-contrast/backplate-bg-image-001.html | 16 ++++ .../high-contrast/backplate-bg-image-002-ref.html | 23 +++++ .../high-contrast/backplate-bg-image-002.html | 19 ++++ .../high-contrast/backplate-bg-image-003-ref.html | 40 ++++++++ .../high-contrast/backplate-bg-image-003.html | 36 +++++++ .../high-contrast/backplate-bg-image-004-ref.html | 33 +++++++ .../high-contrast/backplate-bg-image-004.html | 30 ++++++ .../high-contrast/backplate-bg-image-005-ref.html | 29 ++++++ .../high-contrast/backplate-bg-image-005.html | 22 +++++ .../high-contrast/backplate-bg-image-006-ref.html | 29 ++++++ .../high-contrast/backplate-bg-image-006.html | 24 +++++ .../high-contrast/backplate-bg-image-007-ref.html | 37 ++++++++ .../high-contrast/backplate-bg-image-007.html | 32 +++++++ .../high-contrast/backplate-bg-image-008-ref.html | 27 ++++++ .../high-contrast/backplate-bg-image-008.html | 25 +++++ .../high-contrast/backplate-bg-image-009-ref.html | 38 ++++++++ .../high-contrast/backplate-bg-image-009.html | 30 ++++++ .../high-contrast/backplate-bg-image-010-ref.html | 51 ++++++++++ .../high-contrast/backplate-bg-image-010.html | 46 +++++++++ .../high-contrast/backplate-bg-image-011-ref.html | 25 +++++ .../high-contrast/backplate-bg-image-011.html | 22 +++++ .../high-contrast/backplate-bg-image-012-ref.html | 21 +++++ .../high-contrast/backplate-bg-image-012.html | 18 ++++ .../high-contrast/backplate-bg-image-013-ref.html | 19 ++++ .../high-contrast/backplate-bg-image-013.html | 20 ++++ .../high-contrast/backplate-bg-image-014.html | 16 ++++ .../backplate-force-color-adjust-ref.html | 15 +++ .../backplate-force-color-adjust.html | 16 ++++ .../high-contrast/backplate-select-001-ref.html | 7 ++ .../high-contrast/backplate-select-001.html | 7 ++ .../high-contrast/bg-image-div-001-ref.html | 28 ++++++ .../reftests/high-contrast/bg-image-div-001.html | 41 ++++++++ .../high-contrast/bg-image-div-002-ref.html | 16 ++++ .../reftests/high-contrast/bg-image-div-002.html | 18 ++++ .../high-contrast/bg-image-root-001-ref.html | 1 + .../reftests/high-contrast/bg-image-root-001.html | 7 ++ layout/reftests/high-contrast/blue.png | Bin 0 -> 135 bytes .../border-color-transparent-ref.html | 7 ++ .../high-contrast/border-color-transparent.html | 7 ++ layout/reftests/high-contrast/cascade-001.html | 15 +++ .../reftests/high-contrast/color-mix-notref.html | 4 + layout/reftests/high-contrast/color-mix.html | 9 ++ .../high-contrast/color-transparent-001.html | 10 ++ .../high-contrast/color-transparent-002.html | 13 +++ .../reftests/high-contrast/currentColor-ref.html | 9 ++ layout/reftests/high-contrast/currentColor.html | 10 ++ .../reftests/high-contrast/forced-colors-000.html | 17 ++++ .../reftests/high-contrast/forced-colors-001.html | 16 ++++ .../reftests/high-contrast/forced-colors-002.html | 17 ++++ layout/reftests/high-contrast/green.png | Bin 0 -> 84 bytes layout/reftests/high-contrast/links-2.html | 5 + layout/reftests/high-contrast/links-ref.html | 2 + layout/reftests/high-contrast/links.html | 5 + .../no-system-colors-color-scheme-ref.html | 16 ++++ .../no-system-colors-color-scheme.html | 13 +++ .../high-contrast/non-themed-button-001-ref.html | 10 ++ .../high-contrast/non-themed-button-001.html | 9 ++ .../high-contrast/non-themed-button-002-ref.html | 9 ++ .../high-contrast/non-themed-button-002.html | 9 ++ .../high-contrast/prefers-color-scheme-dark.html | 5 + .../high-contrast/prefers-color-scheme-light.html | 5 + .../high-contrast/prefers-color-scheme.html | 8 ++ .../high-contrast/prefers-contrast-001.html | 15 +++ .../high-contrast/prefers-contrast-002.html | 23 +++++ .../high-contrast/prefers-contrast-005.html | 23 +++++ .../high-contrast/prefers-contrast-black-ref.html | 11 +++ layout/reftests/high-contrast/red.png | Bin 0 -> 87 bytes layout/reftests/high-contrast/reftest.list | 105 +++++++++++++++++++++ .../reftests/high-contrast/selection-001-ref.html | 11 +++ layout/reftests/high-contrast/selection-001.html | 17 ++++ .../high-contrast/semi-transparent-background.html | 11 +++ .../high-contrast/semi-transparent-overlay.html | 15 +++ .../high-contrast/system-colors-notref.html | 2 + layout/reftests/high-contrast/system-colors.html | 2 + 76 files changed, 1378 insertions(+) create mode 100644 layout/reftests/high-contrast/ahem.css create mode 100644 layout/reftests/high-contrast/backplate-bg-image-001-ref.html create mode 100644 layout/reftests/high-contrast/backplate-bg-image-001.html create mode 100644 layout/reftests/high-contrast/backplate-bg-image-002-ref.html create mode 100644 layout/reftests/high-contrast/backplate-bg-image-002.html create mode 100644 layout/reftests/high-contrast/backplate-bg-image-003-ref.html create mode 100644 layout/reftests/high-contrast/backplate-bg-image-003.html create mode 100644 layout/reftests/high-contrast/backplate-bg-image-004-ref.html create mode 100644 layout/reftests/high-contrast/backplate-bg-image-004.html create mode 100644 layout/reftests/high-contrast/backplate-bg-image-005-ref.html create mode 100644 layout/reftests/high-contrast/backplate-bg-image-005.html create mode 100644 layout/reftests/high-contrast/backplate-bg-image-006-ref.html create mode 100644 layout/reftests/high-contrast/backplate-bg-image-006.html create mode 100644 layout/reftests/high-contrast/backplate-bg-image-007-ref.html create mode 100644 layout/reftests/high-contrast/backplate-bg-image-007.html create mode 100644 layout/reftests/high-contrast/backplate-bg-image-008-ref.html create mode 100644 layout/reftests/high-contrast/backplate-bg-image-008.html create mode 100644 layout/reftests/high-contrast/backplate-bg-image-009-ref.html create mode 100644 layout/reftests/high-contrast/backplate-bg-image-009.html create mode 100644 layout/reftests/high-contrast/backplate-bg-image-010-ref.html create mode 100644 layout/reftests/high-contrast/backplate-bg-image-010.html create mode 100644 layout/reftests/high-contrast/backplate-bg-image-011-ref.html create mode 100644 layout/reftests/high-contrast/backplate-bg-image-011.html create mode 100644 layout/reftests/high-contrast/backplate-bg-image-012-ref.html create mode 100644 layout/reftests/high-contrast/backplate-bg-image-012.html create mode 100644 layout/reftests/high-contrast/backplate-bg-image-013-ref.html create mode 100644 layout/reftests/high-contrast/backplate-bg-image-013.html create mode 100644 layout/reftests/high-contrast/backplate-bg-image-014.html create mode 100644 layout/reftests/high-contrast/backplate-force-color-adjust-ref.html create mode 100644 layout/reftests/high-contrast/backplate-force-color-adjust.html create mode 100644 layout/reftests/high-contrast/backplate-select-001-ref.html create mode 100644 layout/reftests/high-contrast/backplate-select-001.html create mode 100644 layout/reftests/high-contrast/bg-image-div-001-ref.html create mode 100644 layout/reftests/high-contrast/bg-image-div-001.html create mode 100644 layout/reftests/high-contrast/bg-image-div-002-ref.html create mode 100644 layout/reftests/high-contrast/bg-image-div-002.html create mode 100644 layout/reftests/high-contrast/bg-image-root-001-ref.html create mode 100644 layout/reftests/high-contrast/bg-image-root-001.html create mode 100644 layout/reftests/high-contrast/blue.png create mode 100644 layout/reftests/high-contrast/border-color-transparent-ref.html create mode 100644 layout/reftests/high-contrast/border-color-transparent.html create mode 100644 layout/reftests/high-contrast/cascade-001.html create mode 100644 layout/reftests/high-contrast/color-mix-notref.html create mode 100644 layout/reftests/high-contrast/color-mix.html create mode 100644 layout/reftests/high-contrast/color-transparent-001.html create mode 100644 layout/reftests/high-contrast/color-transparent-002.html create mode 100644 layout/reftests/high-contrast/currentColor-ref.html create mode 100644 layout/reftests/high-contrast/currentColor.html create mode 100644 layout/reftests/high-contrast/forced-colors-000.html create mode 100644 layout/reftests/high-contrast/forced-colors-001.html create mode 100644 layout/reftests/high-contrast/forced-colors-002.html create mode 100644 layout/reftests/high-contrast/green.png create mode 100644 layout/reftests/high-contrast/links-2.html create mode 100644 layout/reftests/high-contrast/links-ref.html create mode 100644 layout/reftests/high-contrast/links.html create mode 100644 layout/reftests/high-contrast/no-system-colors-color-scheme-ref.html create mode 100644 layout/reftests/high-contrast/no-system-colors-color-scheme.html create mode 100644 layout/reftests/high-contrast/non-themed-button-001-ref.html create mode 100644 layout/reftests/high-contrast/non-themed-button-001.html create mode 100644 layout/reftests/high-contrast/non-themed-button-002-ref.html create mode 100644 layout/reftests/high-contrast/non-themed-button-002.html create mode 100644 layout/reftests/high-contrast/prefers-color-scheme-dark.html create mode 100644 layout/reftests/high-contrast/prefers-color-scheme-light.html create mode 100644 layout/reftests/high-contrast/prefers-color-scheme.html create mode 100644 layout/reftests/high-contrast/prefers-contrast-001.html create mode 100644 layout/reftests/high-contrast/prefers-contrast-002.html create mode 100644 layout/reftests/high-contrast/prefers-contrast-005.html create mode 100644 layout/reftests/high-contrast/prefers-contrast-black-ref.html create mode 100644 layout/reftests/high-contrast/red.png create mode 100644 layout/reftests/high-contrast/reftest.list create mode 100644 layout/reftests/high-contrast/selection-001-ref.html create mode 100644 layout/reftests/high-contrast/selection-001.html create mode 100644 layout/reftests/high-contrast/semi-transparent-background.html create mode 100644 layout/reftests/high-contrast/semi-transparent-overlay.html create mode 100644 layout/reftests/high-contrast/system-colors-notref.html create mode 100644 layout/reftests/high-contrast/system-colors.html (limited to 'layout/reftests/high-contrast') diff --git a/layout/reftests/high-contrast/ahem.css b/layout/reftests/high-contrast/ahem.css new file mode 100644 index 0000000000..884a41198b --- /dev/null +++ b/layout/reftests/high-contrast/ahem.css @@ -0,0 +1,4 @@ +@font-face { + font-family: "Ahem"; + src: url(../fonts/Ahem.ttf); +} diff --git a/layout/reftests/high-contrast/backplate-bg-image-001-ref.html b/layout/reftests/high-contrast/backplate-bg-image-001-ref.html new file mode 100644 index 0000000000..32d745fc98 --- /dev/null +++ b/layout/reftests/high-contrast/backplate-bg-image-001-ref.html @@ -0,0 +1,25 @@ + + + + + Reference: Text that overlaps a background image should be backplated. + + +
ppppp ppppp
+ diff --git a/layout/reftests/high-contrast/backplate-bg-image-001.html b/layout/reftests/high-contrast/backplate-bg-image-001.html new file mode 100644 index 0000000000..252c28ade2 --- /dev/null +++ b/layout/reftests/high-contrast/backplate-bg-image-001.html @@ -0,0 +1,16 @@ + + + + + Text that overlaps a background image should be backplated. + + +
+ ppppp ppppp +
+ diff --git a/layout/reftests/high-contrast/backplate-bg-image-002-ref.html b/layout/reftests/high-contrast/backplate-bg-image-002-ref.html new file mode 100644 index 0000000000..1ffc4542e7 --- /dev/null +++ b/layout/reftests/high-contrast/backplate-bg-image-002-ref.html @@ -0,0 +1,23 @@ + + + + + Reference: Text runs that are separated by a block-level line will get separate backplates. + + + +ppppp ppppp
ppppp ppppp
ppppp ppppp + + diff --git a/layout/reftests/high-contrast/backplate-bg-image-002.html b/layout/reftests/high-contrast/backplate-bg-image-002.html new file mode 100644 index 0000000000..2d1f79eaa8 --- /dev/null +++ b/layout/reftests/high-contrast/backplate-bg-image-002.html @@ -0,0 +1,19 @@ + + + + + Text runs that are separated by a block-level line will get separate backplates. + + + +ppppp ppppp
ppppp ppppp
ppppp ppppp + + diff --git a/layout/reftests/high-contrast/backplate-bg-image-003-ref.html b/layout/reftests/high-contrast/backplate-bg-image-003-ref.html new file mode 100644 index 0000000000..a4260fd394 --- /dev/null +++ b/layout/reftests/high-contrast/backplate-bg-image-003-ref.html @@ -0,0 +1,40 @@ + + + + Reference: Inline, relatively positioned backplate items should be drawn cooperatively with other backplates on the same line. Inline-block, relatively positioned backplate items should be drawn over other backplates on the same line. Absolutely positioned backplate items should be drawn over other page content. + + + +
ppppp pppppppppp ppppp
+


ppppp ppppp +ppppp ppppp
+
ppppp ppppp
+ diff --git a/layout/reftests/high-contrast/backplate-bg-image-003.html b/layout/reftests/high-contrast/backplate-bg-image-003.html new file mode 100644 index 0000000000..6b3758ac55 --- /dev/null +++ b/layout/reftests/high-contrast/backplate-bg-image-003.html @@ -0,0 +1,36 @@ + + + + Inline, relatively positioned backplate items should be drawn cooperatively with other backplates on the same line. Inline-block, relatively positioned backplate items should be drawn over other backplates on the same line. Absolutely positioned backplate items should be drawn over other page content. + + + +
ppppp pppppppppp ppppp
+


ppppp ppppp +ppppp ppppp
+
ppppp ppppp
+ diff --git a/layout/reftests/high-contrast/backplate-bg-image-004-ref.html b/layout/reftests/high-contrast/backplate-bg-image-004-ref.html new file mode 100644 index 0000000000..dab921d72b --- /dev/null +++ b/layout/reftests/high-contrast/backplate-bg-image-004-ref.html @@ -0,0 +1,33 @@ + + + + Reference: Assigning a negative z-index to text which is backplated should change the z-index of the text only; the backplate should not be affected. + + + + + + ppppp ppppp + + + ppppp ppppp + diff --git a/layout/reftests/high-contrast/backplate-bg-image-004.html b/layout/reftests/high-contrast/backplate-bg-image-004.html new file mode 100644 index 0000000000..7b0db471af --- /dev/null +++ b/layout/reftests/high-contrast/backplate-bg-image-004.html @@ -0,0 +1,30 @@ + + + + Assigning a negative z-index to text which is backplated should change the z-index of the text only; the backplate should not be affected. + + + + + ppppp ppppp + + ppppp ppppp + diff --git a/layout/reftests/high-contrast/backplate-bg-image-005-ref.html b/layout/reftests/high-contrast/backplate-bg-image-005-ref.html new file mode 100644 index 0000000000..a2edcfc571 --- /dev/null +++ b/layout/reftests/high-contrast/backplate-bg-image-005-ref.html @@ -0,0 +1,29 @@ + + + + + Reference: Preserved whitespace should contribute to overall backplate sizing. + + + +ppppp ppppp
ppppp ppppp
ppppp ppppp +
ppppp ppppp
+
+ + diff --git a/layout/reftests/high-contrast/backplate-bg-image-005.html b/layout/reftests/high-contrast/backplate-bg-image-005.html new file mode 100644 index 0000000000..1abb7ddebd --- /dev/null +++ b/layout/reftests/high-contrast/backplate-bg-image-005.html @@ -0,0 +1,22 @@ + + + + + Preserved whitespace should contribute to overall backplate sizing. + + + +ppppp ppppp
ppppp ppppp
ppppp ppppp +
ppppp ppppp
+
+ + diff --git a/layout/reftests/high-contrast/backplate-bg-image-006-ref.html b/layout/reftests/high-contrast/backplate-bg-image-006-ref.html new file mode 100644 index 0000000000..22d3f544d0 --- /dev/null +++ b/layout/reftests/high-contrast/backplate-bg-image-006-ref.html @@ -0,0 +1,29 @@ + + +Reference: Text in a native button or input object that overlaps a background image should be backplated. + +
+ppppp
+
+ +
+
+pppppppppp +
diff --git a/layout/reftests/high-contrast/backplate-bg-image-006.html b/layout/reftests/high-contrast/backplate-bg-image-006.html new file mode 100644 index 0000000000..864b50b70c --- /dev/null +++ b/layout/reftests/high-contrast/backplate-bg-image-006.html @@ -0,0 +1,24 @@ + + +Text in a native button or input object that overlaps a background image should be backplated. + +
+ppppp
+
+ +

pppppppppp
diff --git a/layout/reftests/high-contrast/backplate-bg-image-007-ref.html b/layout/reftests/high-contrast/backplate-bg-image-007-ref.html new file mode 100644 index 0000000000..eb03924ba6 --- /dev/null +++ b/layout/reftests/high-contrast/backplate-bg-image-007-ref.html @@ -0,0 +1,37 @@ + + + + + Reference: Text in a non-native button or input that overlaps a background image should be backplated. + + + +
+ ppppp
+
+ +
+
+ pppppppppp +
+ + diff --git a/layout/reftests/high-contrast/backplate-bg-image-007.html b/layout/reftests/high-contrast/backplate-bg-image-007.html new file mode 100644 index 0000000000..558884f9fb --- /dev/null +++ b/layout/reftests/high-contrast/backplate-bg-image-007.html @@ -0,0 +1,32 @@ + + + + + Text in a non-native button or input object that overlaps a background image should be backplated. + + + +
+ ppppp
+
+ +

+ pppppppppp +
+ + diff --git a/layout/reftests/high-contrast/backplate-bg-image-008-ref.html b/layout/reftests/high-contrast/backplate-bg-image-008-ref.html new file mode 100644 index 0000000000..ab55500e93 --- /dev/null +++ b/layout/reftests/high-contrast/backplate-bg-image-008-ref.html @@ -0,0 +1,27 @@ + + +Reference: Text in a native select object that overlaps a background image should be backplated. + +
+pppppppppp +
diff --git a/layout/reftests/high-contrast/backplate-bg-image-008.html b/layout/reftests/high-contrast/backplate-bg-image-008.html new file mode 100644 index 0000000000..227f85fc64 --- /dev/null +++ b/layout/reftests/high-contrast/backplate-bg-image-008.html @@ -0,0 +1,25 @@ + + + + + Text in a native select object that overlaps a background image should be backplated. + + + +
pppppppppp
+ + diff --git a/layout/reftests/high-contrast/backplate-bg-image-009-ref.html b/layout/reftests/high-contrast/backplate-bg-image-009-ref.html new file mode 100644 index 0000000000..c674f9948c --- /dev/null +++ b/layout/reftests/high-contrast/backplate-bg-image-009-ref.html @@ -0,0 +1,38 @@ + + + + + Reference: Text in a non-native select object that overlaps a background image should be backplated. + + + +
+ pppppppppp +
+ + diff --git a/layout/reftests/high-contrast/backplate-bg-image-009.html b/layout/reftests/high-contrast/backplate-bg-image-009.html new file mode 100644 index 0000000000..7d4bd590d6 --- /dev/null +++ b/layout/reftests/high-contrast/backplate-bg-image-009.html @@ -0,0 +1,30 @@ + + + + + Text in a non-native select object that overlaps a background image should be backplated. + + + +
pppppppppp
+ + diff --git a/layout/reftests/high-contrast/backplate-bg-image-010-ref.html b/layout/reftests/high-contrast/backplate-bg-image-010-ref.html new file mode 100644 index 0000000000..1472791cde --- /dev/null +++ b/layout/reftests/high-contrast/backplate-bg-image-010-ref.html @@ -0,0 +1,51 @@ + +Reference: Only lines containing visible content (visibility: visible) should receive backplates. + +
+
+ AAAA + + CCCC + +
+
+ GGGG +
+ HHHH + + JJJJ + + NNNN + +
+
diff --git a/layout/reftests/high-contrast/backplate-bg-image-010.html b/layout/reftests/high-contrast/backplate-bg-image-010.html new file mode 100644 index 0000000000..b6bb4cd83b --- /dev/null +++ b/layout/reftests/high-contrast/backplate-bg-image-010.html @@ -0,0 +1,46 @@ + +Only lines containing visible content (visibility: visible) should receive backplates. + +
+
+ AAAACCCC +
+ GGGG +
+ HHHH + + JJJJ + + NNNN + +
diff --git a/layout/reftests/high-contrast/backplate-bg-image-011-ref.html b/layout/reftests/high-contrast/backplate-bg-image-011-ref.html new file mode 100644 index 0000000000..7e13b2b3ec --- /dev/null +++ b/layout/reftests/high-contrast/backplate-bg-image-011-ref.html @@ -0,0 +1,25 @@ + +Reference: Backplates should not include margins, indentation, padding, border space, or text-alignment space. + +
+
div
+
div w/ margin-left
+
span w/ margin-left
+
nested span w/ margin on inner
+
span w/ padding
+
span w/ thick dotted border
+
div w/ text-align:center
+
div w/ text-align:right
+
div w/ RTL & text-align:center
+
div w/ text-indent
+
diff --git a/layout/reftests/high-contrast/backplate-bg-image-011.html b/layout/reftests/high-contrast/backplate-bg-image-011.html new file mode 100644 index 0000000000..9abfe3f2b0 --- /dev/null +++ b/layout/reftests/high-contrast/backplate-bg-image-011.html @@ -0,0 +1,22 @@ + +Backplates should not include margins, indentation, padding, border space, or text-alignment space. + +
+
div
+
div w/ margin-left
+
span w/ margin-left
+
nested span w/ margin on inner
+
span w/ padding
+
span w/ thick dotted border
+
div w/ text-align:center
+
div w/ text-align:right
+
div w/ RTL & text-align:center
+
div w/ text-indent
+
diff --git a/layout/reftests/high-contrast/backplate-bg-image-012-ref.html b/layout/reftests/high-contrast/backplate-bg-image-012-ref.html new file mode 100644 index 0000000000..d539fe1731 --- /dev/null +++ b/layout/reftests/high-contrast/backplate-bg-image-012-ref.html @@ -0,0 +1,21 @@ + +Reference: Empty canvas objects and images that do not share lines with text should not receive backplates. + +
+ +
+ +
+ Here is some alt text +
diff --git a/layout/reftests/high-contrast/backplate-bg-image-012.html b/layout/reftests/high-contrast/backplate-bg-image-012.html new file mode 100644 index 0000000000..39c1d854d7 --- /dev/null +++ b/layout/reftests/high-contrast/backplate-bg-image-012.html @@ -0,0 +1,18 @@ + +Empty canvas objects and images that do not share lines with text should not receive backplates. + +
+ +
+ +
+ Here is some alt text +
diff --git a/layout/reftests/high-contrast/backplate-bg-image-013-ref.html b/layout/reftests/high-contrast/backplate-bg-image-013-ref.html new file mode 100644 index 0000000000..dddbf9816e --- /dev/null +++ b/layout/reftests/high-contrast/backplate-bg-image-013-ref.html @@ -0,0 +1,19 @@ + + + + Reference: Whitespace-only text over images should not receive backplates. + + + +
+ + diff --git a/layout/reftests/high-contrast/backplate-bg-image-013.html b/layout/reftests/high-contrast/backplate-bg-image-013.html new file mode 100644 index 0000000000..6215184e39 --- /dev/null +++ b/layout/reftests/high-contrast/backplate-bg-image-013.html @@ -0,0 +1,20 @@ + + + + Whitespace-only text over images should not receive backplates. + + + +
+
 
+ + diff --git a/layout/reftests/high-contrast/backplate-bg-image-014.html b/layout/reftests/high-contrast/backplate-bg-image-014.html new file mode 100644 index 0000000000..a3a8ea29fe --- /dev/null +++ b/layout/reftests/high-contrast/backplate-bg-image-014.html @@ -0,0 +1,16 @@ + + + + + Text that overlaps a background image should be backplated with multiple layers. + + +
+ ppppp ppppp +
+ diff --git a/layout/reftests/high-contrast/backplate-force-color-adjust-ref.html b/layout/reftests/high-contrast/backplate-force-color-adjust-ref.html new file mode 100644 index 0000000000..37e09fba29 --- /dev/null +++ b/layout/reftests/high-contrast/backplate-force-color-adjust-ref.html @@ -0,0 +1,15 @@ + + + + Reference: Text with forced-color-adjust set to none should not be backplated. + + +
+ Yellow Text +
+ diff --git a/layout/reftests/high-contrast/backplate-force-color-adjust.html b/layout/reftests/high-contrast/backplate-force-color-adjust.html new file mode 100644 index 0000000000..271510902a --- /dev/null +++ b/layout/reftests/high-contrast/backplate-force-color-adjust.html @@ -0,0 +1,16 @@ + + + + Text with forced-color-adjust set to none should not be backplated. + + +
+ Yellow Text +
+ diff --git a/layout/reftests/high-contrast/backplate-select-001-ref.html b/layout/reftests/high-contrast/backplate-select-001-ref.html new file mode 100644 index 0000000000..efa3a40596 --- /dev/null +++ b/layout/reftests/high-contrast/backplate-select-001-ref.html @@ -0,0 +1,7 @@ + +Reference: Multiple select's should have all options visible even when highlighted in high contrast mode. Options should render with backplates that are the same color as the select, or the applied highlight. + diff --git a/layout/reftests/high-contrast/backplate-select-001.html b/layout/reftests/high-contrast/backplate-select-001.html new file mode 100644 index 0000000000..2dd819c695 --- /dev/null +++ b/layout/reftests/high-contrast/backplate-select-001.html @@ -0,0 +1,7 @@ + +Multiple select's should have all options visible even when highlighted in high contrast mode. Options should render with backplates that are the same color as the select, or the applied highlight. + diff --git a/layout/reftests/high-contrast/bg-image-div-001-ref.html b/layout/reftests/high-contrast/bg-image-div-001-ref.html new file mode 100644 index 0000000000..0f240809c0 --- /dev/null +++ b/layout/reftests/high-contrast/bg-image-div-001-ref.html @@ -0,0 +1,28 @@ + + + + Reference: Non-URL background images should be ignored high-contrast. + + + +
+

+

+

+

+

+
+
+ + diff --git a/layout/reftests/high-contrast/bg-image-div-001.html b/layout/reftests/high-contrast/bg-image-div-001.html new file mode 100644 index 0000000000..8764901fb5 --- /dev/null +++ b/layout/reftests/high-contrast/bg-image-div-001.html @@ -0,0 +1,41 @@ + + + + When HCM is enabled, only background images sourced from URL's should be rendered. + + + +
+

+

+

+

+

+
+
+ + diff --git a/layout/reftests/high-contrast/bg-image-div-002-ref.html b/layout/reftests/high-contrast/bg-image-div-002-ref.html new file mode 100644 index 0000000000..17d816f7f6 --- /dev/null +++ b/layout/reftests/high-contrast/bg-image-div-002-ref.html @@ -0,0 +1,16 @@ + + +
+
X
+
diff --git a/layout/reftests/high-contrast/bg-image-div-002.html b/layout/reftests/high-contrast/bg-image-div-002.html new file mode 100644 index 0000000000..77f6018037 --- /dev/null +++ b/layout/reftests/high-contrast/bg-image-div-002.html @@ -0,0 +1,18 @@ + + +
+
X
+
diff --git a/layout/reftests/high-contrast/bg-image-root-001-ref.html b/layout/reftests/high-contrast/bg-image-root-001-ref.html new file mode 100644 index 0000000000..c50eddd41f --- /dev/null +++ b/layout/reftests/high-contrast/bg-image-root-001-ref.html @@ -0,0 +1 @@ + diff --git a/layout/reftests/high-contrast/bg-image-root-001.html b/layout/reftests/high-contrast/bg-image-root-001.html new file mode 100644 index 0000000000..8aef792394 --- /dev/null +++ b/layout/reftests/high-contrast/bg-image-root-001.html @@ -0,0 +1,7 @@ + +background-image on canvas is ignored if in high-contrast + diff --git a/layout/reftests/high-contrast/blue.png b/layout/reftests/high-contrast/blue.png new file mode 100644 index 0000000000..a64b6a4255 Binary files /dev/null and b/layout/reftests/high-contrast/blue.png differ diff --git a/layout/reftests/high-contrast/border-color-transparent-ref.html b/layout/reftests/high-contrast/border-color-transparent-ref.html new file mode 100644 index 0000000000..f0e7f94566 --- /dev/null +++ b/layout/reftests/high-contrast/border-color-transparent-ref.html @@ -0,0 +1,7 @@ + + +
diff --git a/layout/reftests/high-contrast/border-color-transparent.html b/layout/reftests/high-contrast/border-color-transparent.html new file mode 100644 index 0000000000..74e761b48f --- /dev/null +++ b/layout/reftests/high-contrast/border-color-transparent.html @@ -0,0 +1,7 @@ + + +
diff --git a/layout/reftests/high-contrast/cascade-001.html b/layout/reftests/high-contrast/cascade-001.html new file mode 100644 index 0000000000..9fdf1ae1ae --- /dev/null +++ b/layout/reftests/high-contrast/cascade-001.html @@ -0,0 +1,15 @@ + + +
You should see me
diff --git a/layout/reftests/high-contrast/color-mix-notref.html b/layout/reftests/high-contrast/color-mix-notref.html new file mode 100644 index 0000000000..e2d92fc589 --- /dev/null +++ b/layout/reftests/high-contrast/color-mix-notref.html @@ -0,0 +1,4 @@ + +

+ I should be semi-transparent. +

diff --git a/layout/reftests/high-contrast/color-mix.html b/layout/reftests/high-contrast/color-mix.html new file mode 100644 index 0000000000..967bf0abdd --- /dev/null +++ b/layout/reftests/high-contrast/color-mix.html @@ -0,0 +1,9 @@ + + +

+ I should be semi-transparent. +

diff --git a/layout/reftests/high-contrast/color-transparent-001.html b/layout/reftests/high-contrast/color-transparent-001.html new file mode 100644 index 0000000000..c317327b20 --- /dev/null +++ b/layout/reftests/high-contrast/color-transparent-001.html @@ -0,0 +1,10 @@ + +color: transparent should be honored in high contrast mode + +

+ I should not show up. +

diff --git a/layout/reftests/high-contrast/color-transparent-002.html b/layout/reftests/high-contrast/color-transparent-002.html new file mode 100644 index 0000000000..7b625649e7 --- /dev/null +++ b/layout/reftests/high-contrast/color-transparent-002.html @@ -0,0 +1,13 @@ + +color: transparent should not make other text below it not show up + +

+ Only the span should show up. +

diff --git a/layout/reftests/high-contrast/currentColor-ref.html b/layout/reftests/high-contrast/currentColor-ref.html new file mode 100644 index 0000000000..fd2f93acbe --- /dev/null +++ b/layout/reftests/high-contrast/currentColor-ref.html @@ -0,0 +1,9 @@ + + +
diff --git a/layout/reftests/high-contrast/currentColor.html b/layout/reftests/high-contrast/currentColor.html new file mode 100644 index 0000000000..ec298ac7a7 --- /dev/null +++ b/layout/reftests/high-contrast/currentColor.html @@ -0,0 +1,10 @@ + + +
diff --git a/layout/reftests/high-contrast/forced-colors-000.html b/layout/reftests/high-contrast/forced-colors-000.html new file mode 100644 index 0000000000..d6bdf536aa --- /dev/null +++ b/layout/reftests/high-contrast/forced-colors-000.html @@ -0,0 +1,17 @@ + + +forced colors should match when colors are forced + + +
+ diff --git a/layout/reftests/high-contrast/forced-colors-001.html b/layout/reftests/high-contrast/forced-colors-001.html new file mode 100644 index 0000000000..921cab8f30 --- /dev/null +++ b/layout/reftests/high-contrast/forced-colors-001.html @@ -0,0 +1,16 @@ + + +forced colors active should be true in boolean context + +
+ diff --git a/layout/reftests/high-contrast/forced-colors-002.html b/layout/reftests/high-contrast/forced-colors-002.html new file mode 100644 index 0000000000..213b99ea51 --- /dev/null +++ b/layout/reftests/high-contrast/forced-colors-002.html @@ -0,0 +1,17 @@ + + +forced colors none should match with no forced colors + + +
+ diff --git a/layout/reftests/high-contrast/green.png b/layout/reftests/high-contrast/green.png new file mode 100644 index 0000000000..0aa79b0c86 Binary files /dev/null and b/layout/reftests/high-contrast/green.png differ diff --git a/layout/reftests/high-contrast/links-2.html b/layout/reftests/high-contrast/links-2.html new file mode 100644 index 0000000000..23c28abf97 --- /dev/null +++ b/layout/reftests/high-contrast/links-2.html @@ -0,0 +1,5 @@ + + +Should have link color, not default color diff --git a/layout/reftests/high-contrast/links-ref.html b/layout/reftests/high-contrast/links-ref.html new file mode 100644 index 0000000000..f8ef95d194 --- /dev/null +++ b/layout/reftests/high-contrast/links-ref.html @@ -0,0 +1,2 @@ + +Should have link color, not default color diff --git a/layout/reftests/high-contrast/links.html b/layout/reftests/high-contrast/links.html new file mode 100644 index 0000000000..bdba108d04 --- /dev/null +++ b/layout/reftests/high-contrast/links.html @@ -0,0 +1,5 @@ + + +Should have link color, not default color diff --git a/layout/reftests/high-contrast/no-system-colors-color-scheme-ref.html b/layout/reftests/high-contrast/no-system-colors-color-scheme-ref.html new file mode 100644 index 0000000000..6320d22bc8 --- /dev/null +++ b/layout/reftests/high-contrast/no-system-colors-color-scheme-ref.html @@ -0,0 +1,16 @@ + + +XXX
+ diff --git a/layout/reftests/high-contrast/no-system-colors-color-scheme.html b/layout/reftests/high-contrast/no-system-colors-color-scheme.html new file mode 100644 index 0000000000..d4a9cf45b1 --- /dev/null +++ b/layout/reftests/high-contrast/no-system-colors-color-scheme.html @@ -0,0 +1,13 @@ + + + +XXX
+ diff --git a/layout/reftests/high-contrast/non-themed-button-001-ref.html b/layout/reftests/high-contrast/non-themed-button-001-ref.html new file mode 100644 index 0000000000..956e337dd5 --- /dev/null +++ b/layout/reftests/high-contrast/non-themed-button-001-ref.html @@ -0,0 +1,10 @@ + + + diff --git a/layout/reftests/high-contrast/non-themed-button-001.html b/layout/reftests/high-contrast/non-themed-button-001.html new file mode 100644 index 0000000000..a13d0b7a08 --- /dev/null +++ b/layout/reftests/high-contrast/non-themed-button-001.html @@ -0,0 +1,9 @@ + + + diff --git a/layout/reftests/high-contrast/non-themed-button-002-ref.html b/layout/reftests/high-contrast/non-themed-button-002-ref.html new file mode 100644 index 0000000000..45bf4517a2 --- /dev/null +++ b/layout/reftests/high-contrast/non-themed-button-002-ref.html @@ -0,0 +1,9 @@ + + + diff --git a/layout/reftests/high-contrast/non-themed-button-002.html b/layout/reftests/high-contrast/non-themed-button-002.html new file mode 100644 index 0000000000..c2ccf9a7f2 --- /dev/null +++ b/layout/reftests/high-contrast/non-themed-button-002.html @@ -0,0 +1,9 @@ + + + diff --git a/layout/reftests/high-contrast/prefers-color-scheme-dark.html b/layout/reftests/high-contrast/prefers-color-scheme-dark.html new file mode 100644 index 0000000000..46519c09b7 --- /dev/null +++ b/layout/reftests/high-contrast/prefers-color-scheme-dark.html @@ -0,0 +1,5 @@ + + + diff --git a/layout/reftests/high-contrast/prefers-color-scheme-light.html b/layout/reftests/high-contrast/prefers-color-scheme-light.html new file mode 100644 index 0000000000..972cf906ee --- /dev/null +++ b/layout/reftests/high-contrast/prefers-color-scheme-light.html @@ -0,0 +1,5 @@ + + + diff --git a/layout/reftests/high-contrast/prefers-color-scheme.html b/layout/reftests/high-contrast/prefers-color-scheme.html new file mode 100644 index 0000000000..ca093cc132 --- /dev/null +++ b/layout/reftests/high-contrast/prefers-color-scheme.html @@ -0,0 +1,8 @@ + + + diff --git a/layout/reftests/high-contrast/prefers-contrast-001.html b/layout/reftests/high-contrast/prefers-contrast-001.html new file mode 100644 index 0000000000..0e94012ed8 --- /dev/null +++ b/layout/reftests/high-contrast/prefers-contrast-001.html @@ -0,0 +1,15 @@ + + +low, fixed, and high should all evaluate to true in the boolean context. + +
diff --git a/layout/reftests/high-contrast/prefers-contrast-002.html b/layout/reftests/high-contrast/prefers-contrast-002.html new file mode 100644 index 0000000000..56bd8329bb --- /dev/null +++ b/layout/reftests/high-contrast/prefers-contrast-002.html @@ -0,0 +1,23 @@ + + + + +high contrast mode should cause a black box to be drawn + + + + +
+ + + diff --git a/layout/reftests/high-contrast/prefers-contrast-005.html b/layout/reftests/high-contrast/prefers-contrast-005.html new file mode 100644 index 0000000000..4009804174 --- /dev/null +++ b/layout/reftests/high-contrast/prefers-contrast-005.html @@ -0,0 +1,23 @@ + + + + +no contrast preference should cause a black box to be +drawn + + + + +
+ + diff --git a/layout/reftests/high-contrast/prefers-contrast-black-ref.html b/layout/reftests/high-contrast/prefers-contrast-black-ref.html new file mode 100644 index 0000000000..67385886f5 --- /dev/null +++ b/layout/reftests/high-contrast/prefers-contrast-black-ref.html @@ -0,0 +1,11 @@ + + +reference: a black box to test the prefers-contrast media query + +
diff --git a/layout/reftests/high-contrast/red.png b/layout/reftests/high-contrast/red.png new file mode 100644 index 0000000000..a6e195d59c Binary files /dev/null and b/layout/reftests/high-contrast/red.png differ diff --git a/layout/reftests/high-contrast/reftest.list b/layout/reftests/high-contrast/reftest.list new file mode 100644 index 0000000000..0057a92b2e --- /dev/null +++ b/layout/reftests/high-contrast/reftest.list @@ -0,0 +1,105 @@ +# This pref enables high-contrast mode in the testcases here: +defaults test-pref(browser.display.document_color_use,2) test-pref(browser.display.permit_backplate,true) test-pref(layout.css.prefers-contrast.enabled,true) test-pref(layout.css.forced-colors.enabled,true) test-pref(browser.display.foreground_color,"#000000") test-pref(browser.display.background_color,"#FFFFFF") pref(ui.use_standins_for_native_colors,true) pref(widget.non-native-theme.always-high-contrast,true) + +# There are several platform-specific fuzzy-if notations below due to +# anti-aliasing, extra ink overflow, and slightly inacurate reftest +# mocking. You can read more about the annotations and their specifics here: +# https://bugzilla.mozilla.org/show_bug.cgi?id=1539212#c25 + +== backplate-select-001.html backplate-select-001-ref.html + +fuzzy-if(cocoaWidget,255-255,20-20) == backplate-bg-image-001.html backplate-bg-image-001-ref.html # bug 1577028 +fuzzy-if(cocoaWidget,255-255,20-20) == backplate-bg-image-002.html backplate-bg-image-002-ref.html +fuzzy-if(cocoaWidget,255-255,4-4) == backplate-bg-image-003.html backplate-bg-image-003-ref.html +fuzzy-if(cocoaWidget,255-255,20-20) == backplate-bg-image-004.html backplate-bg-image-004-ref.html +fuzzy-if(cocoaWidget,255-255,80-80) == backplate-bg-image-005.html backplate-bg-image-005-ref.html + +fuzzy-if(cocoaWidget,255-255,40-40) == backplate-bg-image-006.html backplate-bg-image-006-ref.html + +fuzzy-if(cocoaWidget,255-255,40-40) == backplate-bg-image-007.html backplate-bg-image-007-ref.html +fuzzy-if(cocoaWidget,255-255,20-20) fuzzy-if(!cocoaWidget,0-21,0-6) == backplate-bg-image-008.html backplate-bg-image-008-ref.html +fuzzy-if(cocoaWidget,255-255,20-20) == backplate-bg-image-009.html backplate-bg-image-009-ref.html +fuzzy-if(cocoaWidget,255-255,1495-1495) fuzzy-if(winWidget,255-255,353-353) fuzzy-if(Android,255-255,700-700) == backplate-bg-image-010.html backplate-bg-image-010-ref.html +random-if(useDrawSnapshot) fuzzy-if(cocoaWidget,255-255,284-320) == backplate-bg-image-011.html backplate-bg-image-011-ref.html +fuzzy-if(cocoaWidget,255-255,16-16) == backplate-bg-image-012.html backplate-bg-image-012-ref.html +== backplate-bg-image-013.html backplate-bg-image-013-ref.html +fuzzy-if(cocoaWidget,255-255,20-20) == backplate-bg-image-014.html backplate-bg-image-001-ref.html # bug 1577028 + +test-pref(browser.display.suppress_canvas_background_image_on_forced_colors,true) == bg-image-root-001.html bg-image-root-001-ref.html +test-pref(browser.display.suppress_canvas_background_image_on_forced_colors,false) != bg-image-root-001.html bg-image-root-001-ref.html + +== bg-image-div-001.html bg-image-div-001-ref.html +== bg-image-div-002.html bg-image-div-002-ref.html + +needs-focus == selection-001.html selection-001-ref.html +pref(browser.display.document_color_use,0) needs-focus != selection-001.html selection-001-ref.html + +== color-transparent-001.html about:blank +!= color-transparent-002.html about:blank +!= semi-transparent-overlay.html about:blank +!= semi-transparent-overlay.html semi-transparent-background.html + +== links.html links-ref.html +== links-2.html links-ref.html + +pref(browser.display.document_color_use,2) == non-themed-button-001.html non-themed-button-001-ref.html +pref(browser.display.document_color_use,2) == non-themed-button-002.html non-themed-button-002-ref.html + +!= cascade-001.html about:blank + +# prefers-contrast media query: + +# Forced colors affects prefers-contrast. +== prefers-contrast-001.html prefers-contrast-black-ref.html +# high should match when an accessibility theme is used +test-pref(ui.windowForeground,"black") test-pref(ui.windowBackground,"white") test-pref(ui.useAccessibilityTheme,1) == prefers-contrast-001.html prefers-contrast-black-ref.html + +# high should match when an accessibility theme is being used +test-pref(ui.windowForeground,"black") test-pref(ui.windowBackground,"white") test-pref(ui.useAccessibilityTheme,1) == prefers-contrast-002.html prefers-contrast-black-ref.html + +# If RFP is on the media query stops evaluating contrast preferences and +# defaults to no-preference. +test-pref(privacy.resistFingerprinting,true) != prefers-contrast-001.html prefers-contrast-black-ref.html +# high should not match when RFP is enabled. +test-pref(ui.windowForeground,"black") test-pref(ui.windowBackground,"white") test-pref(privacy.resistFingerprinting,true) test-pref(ui.useAccessibilityTheme,1) != prefers-contrast-002.html prefers-contrast-black-ref.html + +# Should only be enabled behind preference. +test-pref(layout.css.prefers-contrast.enabled,false) != prefers-contrast-001.html prefers-contrast-black-ref.html + +# a prefers-contrast value of no-preference should evaluate to false +# in the boolean context +test-pref(browser.display.document_color_use,0) != prefers-contrast-001.html prefers-contrast-black-ref.html + +# a prefers-contrast value of no-preference should match no-preference +test-pref(browser.display.document_color_use,0) == prefers-contrast-005.html prefers-contrast-black-ref.html + +# forced-colors media query + +# active +== forced-colors-000.html prefers-contrast-black-ref.html +test-pref(browser.display.document_color_use,0) != forced-colors-000.html prefers-contrast-black-ref.html + +# none +test-pref(browser.display.document_color_use,0) == forced-colors-002.html prefers-contrast-black-ref.html +!= forced-colors-002.html prefers-contrast-black-ref.html + +# boolean context +== forced-colors-001.html prefers-contrast-black-ref.html +test-pref(browser.display.document_color_use,0) != forced-colors-001.html prefers-contrast-black-ref.html + +pref(browser.display.use_system_colors,true) pref(browser.display.document_color_use,0) test-pref(layout.css.prefers-color-scheme.content-override,0) != about:blank about:blank + +!= system-colors.html system-colors-notref.html + +!= border-color-transparent.html about:blank +== border-color-transparent.html border-color-transparent-ref.html +== currentColor.html currentColor-ref.html + +!= color-mix.html color-mix-notref.html + +test-pref(browser.display.background_color,"black") test-pref(browser.display.foreground_color,"white") test-pref(ui.-moz-fieldtext,"black") test-pref(ui.-moz-fieldtext.dark,"white") pref(ui.use_standins_for_native_colors,false) pref(browser.display.use_system_colors,false) == no-system-colors-color-scheme.html no-system-colors-color-scheme-ref.html +pref(ui.use_standins_for_native_colors,false) pref(browser.display.use_system_colors,false) pref(browser.display.background_color,"black") pref(browser.display.foreground_color,"white") == prefers-color-scheme.html prefers-color-scheme-dark.html +pref(ui.use_standins_for_native_colors,false) pref(browser.display.use_system_colors,false) pref(browser.display.background_color,"white") pref(browser.display.foreground_color,"black") == prefers-color-scheme.html prefers-color-scheme-light.html + +# Forced color adjust +pref(layout.css.forced-color-adjust.enabled,true) == backplate-force-color-adjust.html backplate-force-color-adjust-ref.html diff --git a/layout/reftests/high-contrast/selection-001-ref.html b/layout/reftests/high-contrast/selection-001-ref.html new file mode 100644 index 0000000000..55a43aafd0 --- /dev/null +++ b/layout/reftests/high-contrast/selection-001-ref.html @@ -0,0 +1,11 @@ + +Test reference +

+ Some selected text +

+ diff --git a/layout/reftests/high-contrast/selection-001.html b/layout/reftests/high-contrast/selection-001.html new file mode 100644 index 0000000000..2d3cabdf0c --- /dev/null +++ b/layout/reftests/high-contrast/selection-001.html @@ -0,0 +1,17 @@ + +::selection should use native colors in high contrast mode + +

+ Some selected text +

+ diff --git a/layout/reftests/high-contrast/semi-transparent-background.html b/layout/reftests/high-contrast/semi-transparent-background.html new file mode 100644 index 0000000000..8902d19fcb --- /dev/null +++ b/layout/reftests/high-contrast/semi-transparent-background.html @@ -0,0 +1,11 @@ + + +
+ + Some text that you should be able to read. +
diff --git a/layout/reftests/high-contrast/semi-transparent-overlay.html b/layout/reftests/high-contrast/semi-transparent-overlay.html new file mode 100644 index 0000000000..76f2542ee4 --- /dev/null +++ b/layout/reftests/high-contrast/semi-transparent-overlay.html @@ -0,0 +1,15 @@ + + +
+ + Some text that you should be able to read. +
diff --git a/layout/reftests/high-contrast/system-colors-notref.html b/layout/reftests/high-contrast/system-colors-notref.html new file mode 100644 index 0000000000..9b3770924e --- /dev/null +++ b/layout/reftests/high-contrast/system-colors-notref.html @@ -0,0 +1,2 @@ + +
ABC
diff --git a/layout/reftests/high-contrast/system-colors.html b/layout/reftests/high-contrast/system-colors.html new file mode 100644 index 0000000000..44b33287ef --- /dev/null +++ b/layout/reftests/high-contrast/system-colors.html @@ -0,0 +1,2 @@ + +
ABC
-- cgit v1.2.3