From fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 03:14:29 +0200 Subject: Merging upstream version 125.0.1. Signed-off-by: Daniel Baumann --- .../eol-spaces-bidi-min-content-crash.html | 12 ++++++ .../tests/css/css-text/inheritance.html | 6 +-- .../letter-spacing/letter-spacing-percent-001.html | 23 +++++++++++ .../reference/letter-spacing-percent-001-ref.html | 19 +++++++++ .../css-text/parsing/letter-spacing-computed.html | 6 ++- .../css-text/parsing/letter-spacing-invalid.html | 5 +-- .../css/css-text/parsing/letter-spacing-valid.html | 11 ++++- .../parsing/webkit-text-stroke-computed.html | 25 +++++++++++ .../css-text/parsing/word-spacing-computed.html | 7 +++- .../css/css-text/parsing/word-spacing-invalid.html | 4 +- .../css/css-text/parsing/word-spacing-valid.html | 10 ++++- .../text-spacing-trim-span-001-ref.html | 31 ++++++++++++++ .../text-spacing-trim-span-001.html | 48 ++++++++++++++++++++++ .../reference/text-wrap-balance-003-ref.html | 19 +++++++++ .../white-space/text-wrap-balance-003.html | 24 +++++++++++ .../trailing-space-and-text-alignment-002.html | 1 + .../trailing-space-and-text-alignment-004.html | 1 + .../trailing-space-and-text-alignment-rtl-002.html | 1 + .../trailing-space-and-text-alignment-rtl-004.html | 1 + .../reference/word-spacing-percent-001-ref.html | 19 +++++++++ .../css-text/word-spacing/word-spacing-002.html | 32 +++++++++++++++ .../word-spacing/word-spacing-computed-001.html | 1 - .../word-spacing/word-spacing-percent-001.html | 19 +++++++++ 23 files changed, 310 insertions(+), 15 deletions(-) create mode 100644 testing/web-platform/tests/css/css-text/crashtests/eol-spaces-bidi-min-content-crash.html create mode 100644 testing/web-platform/tests/css/css-text/letter-spacing/letter-spacing-percent-001.html create mode 100644 testing/web-platform/tests/css/css-text/letter-spacing/reference/letter-spacing-percent-001-ref.html create mode 100644 testing/web-platform/tests/css/css-text/parsing/webkit-text-stroke-computed.html create mode 100644 testing/web-platform/tests/css/css-text/text-spacing-trim/text-spacing-trim-span-001-ref.html create mode 100644 testing/web-platform/tests/css/css-text/text-spacing-trim/text-spacing-trim-span-001.html create mode 100644 testing/web-platform/tests/css/css-text/white-space/reference/text-wrap-balance-003-ref.html create mode 100644 testing/web-platform/tests/css/css-text/white-space/text-wrap-balance-003.html create mode 100644 testing/web-platform/tests/css/css-text/word-spacing/reference/word-spacing-percent-001-ref.html create mode 100644 testing/web-platform/tests/css/css-text/word-spacing/word-spacing-002.html create mode 100644 testing/web-platform/tests/css/css-text/word-spacing/word-spacing-percent-001.html (limited to 'testing/web-platform/tests/css/css-text') diff --git a/testing/web-platform/tests/css/css-text/crashtests/eol-spaces-bidi-min-content-crash.html b/testing/web-platform/tests/css/css-text/crashtests/eol-spaces-bidi-min-content-crash.html new file mode 100644 index 0000000000..d8c3ec337b --- /dev/null +++ b/testing/web-platform/tests/css/css-text/crashtests/eol-spaces-bidi-min-content-crash.html @@ -0,0 +1,12 @@ + + + + + + + +
X   X
diff --git a/testing/web-platform/tests/css/css-text/inheritance.html b/testing/web-platform/tests/css/css-text/inheritance.html index 2043afe999..f41a5edcaf 100644 --- a/testing/web-platform/tests/css/css-text/inheritance.html +++ b/testing/web-platform/tests/css/css-text/inheritance.html @@ -3,7 +3,7 @@ Inheritance of CSS Text properties - + @@ -17,7 +17,7 @@ diff --git a/testing/web-platform/tests/css/css-text/letter-spacing/letter-spacing-percent-001.html b/testing/web-platform/tests/css/css-text/letter-spacing/letter-spacing-percent-001.html new file mode 100644 index 0000000000..522320de58 --- /dev/null +++ b/testing/web-platform/tests/css/css-text/letter-spacing/letter-spacing-percent-001.html @@ -0,0 +1,23 @@ + + + +letter-spacing as percentages + + + + + + +

Test passes if the pattern is identical on all four lines. + +

ABC123().*$いろはx x x፡x་x + ABC123().*$いろはx x x፡x་x
+
ABC123().*$いろはx x x፡x་x + ABC123().*$いろはx x x፡x་x
+
ABC123().*$いろはx x x፡x་x + ABC123().*$いろはx x x፡x་x
+
ABC123().*$いろはx x x፡x་x + ABC123().*$いろはx x x፡x་x
diff --git a/testing/web-platform/tests/css/css-text/letter-spacing/reference/letter-spacing-percent-001-ref.html b/testing/web-platform/tests/css/css-text/letter-spacing/reference/letter-spacing-percent-001-ref.html new file mode 100644 index 0000000000..1025ecb67c --- /dev/null +++ b/testing/web-platform/tests/css/css-text/letter-spacing/reference/letter-spacing-percent-001-ref.html @@ -0,0 +1,19 @@ + + + +letter-spacing as percentages + + +

Test passes if the pattern is identical on all four lines. + +

ABC123().*$いろはx x x፡x་x + ABC123().*$いろはx x x፡x་x
+
ABC123().*$いろはx x x፡x་x + ABC123().*$いろはx x x፡x་x
+
ABC123().*$いろはx x x፡x་x + ABC123().*$いろはx x x፡x་x
+
ABC123().*$いろはx x x፡x་x + ABC123().*$いろはx x x፡x་x
diff --git a/testing/web-platform/tests/css/css-text/parsing/letter-spacing-computed.html b/testing/web-platform/tests/css/css-text/parsing/letter-spacing-computed.html index 45417d1b4a..a7ef1390c1 100644 --- a/testing/web-platform/tests/css/css-text/parsing/letter-spacing-computed.html +++ b/testing/web-platform/tests/css/css-text/parsing/letter-spacing-computed.html @@ -4,7 +4,7 @@ CSS Text: getComputedStyle().letterSpacing - + @@ -24,6 +24,10 @@ test_computed_value("letter-spacing", "0px", "normal"); test_computed_value("letter-spacing", "10px"); test_computed_value("letter-spacing", "-20px"); test_computed_value("letter-spacing", "calc(10px - 0.5em)", "-10px"); +test_computed_value("letter-spacing", "110%"); +test_computed_value("letter-spacing", "-5%"); +test_computed_value("letter-spacing", "calc(10% - 20%)", "-10%"); +test_computed_value("letter-spacing", "calc(10px - (5% + 10%)", "calc(-15% + 10px)"); diff --git a/testing/web-platform/tests/css/css-text/parsing/letter-spacing-invalid.html b/testing/web-platform/tests/css/css-text/parsing/letter-spacing-invalid.html index e9ad4e56a5..e32b98c6d7 100644 --- a/testing/web-platform/tests/css/css-text/parsing/letter-spacing-invalid.html +++ b/testing/web-platform/tests/css/css-text/parsing/letter-spacing-invalid.html @@ -4,7 +4,7 @@ CSS Text Module Test: parsing letter-spacing with invalid values - + @@ -13,10 +13,9 @@ diff --git a/testing/web-platform/tests/css/css-text/parsing/letter-spacing-valid.html b/testing/web-platform/tests/css/css-text/parsing/letter-spacing-valid.html index 740d1fc398..f20fa21de1 100644 --- a/testing/web-platform/tests/css/css-text/parsing/letter-spacing-valid.html +++ b/testing/web-platform/tests/css/css-text/parsing/letter-spacing-valid.html @@ -4,7 +4,7 @@ CSS Text Module Test: parsing letter-spacing with valid values - + @@ -12,10 +12,17 @@ diff --git a/testing/web-platform/tests/css/css-text/parsing/webkit-text-stroke-computed.html b/testing/web-platform/tests/css/css-text/parsing/webkit-text-stroke-computed.html new file mode 100644 index 0000000000..0dadfe402a --- /dev/null +++ b/testing/web-platform/tests/css/css-text/parsing/webkit-text-stroke-computed.html @@ -0,0 +1,25 @@ + + + + +CSS webkit-text-stroke Test: Computed webkit-text-stroke + + + + + + + + +
+ + + diff --git a/testing/web-platform/tests/css/css-text/parsing/word-spacing-computed.html b/testing/web-platform/tests/css/css-text/parsing/word-spacing-computed.html index 192dec6f7a..7c3f989525 100644 --- a/testing/web-platform/tests/css/css-text/parsing/word-spacing-computed.html +++ b/testing/web-platform/tests/css/css-text/parsing/word-spacing-computed.html @@ -4,7 +4,7 @@ CSS Text: getComputedStyle().wordSpacing - + @@ -19,10 +19,15 @@
diff --git a/testing/web-platform/tests/css/css-text/parsing/word-spacing-invalid.html b/testing/web-platform/tests/css/css-text/parsing/word-spacing-invalid.html index 3a1c4ca487..ae8e121b9d 100644 --- a/testing/web-platform/tests/css/css-text/parsing/word-spacing-invalid.html +++ b/testing/web-platform/tests/css/css-text/parsing/word-spacing-invalid.html @@ -4,7 +4,7 @@ CSS Text Module Test: parsing word-spacing with invalid values - + @@ -12,9 +12,9 @@ diff --git a/testing/web-platform/tests/css/css-text/parsing/word-spacing-valid.html b/testing/web-platform/tests/css/css-text/parsing/word-spacing-valid.html index 217b2488f5..640f697f70 100644 --- a/testing/web-platform/tests/css/css-text/parsing/word-spacing-valid.html +++ b/testing/web-platform/tests/css/css-text/parsing/word-spacing-valid.html @@ -4,7 +4,7 @@ CSS Text Module Test: parsing word-spacing with valid values - + @@ -12,11 +12,17 @@ diff --git a/testing/web-platform/tests/css/css-text/text-spacing-trim/text-spacing-trim-span-001-ref.html b/testing/web-platform/tests/css/css-text/text-spacing-trim/text-spacing-trim-span-001-ref.html new file mode 100644 index 0000000000..072fd1e917 --- /dev/null +++ b/testing/web-platform/tests/css/css-text/text-spacing-trim/text-spacing-trim-span-001-ref.html @@ -0,0 +1,31 @@ + + + + +
+
国)(国
+
国国国)(国
+
diff --git a/testing/web-platform/tests/css/css-text/text-spacing-trim/text-spacing-trim-span-001.html b/testing/web-platform/tests/css/css-text/text-spacing-trim/text-spacing-trim-span-001.html new file mode 100644 index 0000000000..623abbf7c7 --- /dev/null +++ b/testing/web-platform/tests/css/css-text/text-spacing-trim/text-spacing-trim-span-001.html @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + + +
+
国)(国
+
国国国)(国
+
diff --git a/testing/web-platform/tests/css/css-text/white-space/reference/text-wrap-balance-003-ref.html b/testing/web-platform/tests/css/css-text/white-space/reference/text-wrap-balance-003-ref.html new file mode 100644 index 0000000000..318480bb50 --- /dev/null +++ b/testing/web-platform/tests/css/css-text/white-space/reference/text-wrap-balance-003-ref.html @@ -0,0 +1,19 @@ + + + +

Both test blocks (green) should have the same layout as the reference (blue):

+
The quickest brown fox
jumped over the lazy dog
+
The quickest brown fox
jumped over the lazy dog
+
The quickest brown fox
jumped over the lazy dog
diff --git a/testing/web-platform/tests/css/css-text/white-space/text-wrap-balance-003.html b/testing/web-platform/tests/css/css-text/white-space/text-wrap-balance-003.html new file mode 100644 index 0000000000..a2eb8bbff5 --- /dev/null +++ b/testing/web-platform/tests/css/css-text/white-space/text-wrap-balance-003.html @@ -0,0 +1,24 @@ + + + + + + +

Both test blocks (green) should have the same layout as the reference (blue):

+
The quickest brown fox jumped over the lazy dog
+ +
The quickest brown fox jumped over the lazy dog
+
The quickest brown fox
jumped over the lazy dog
diff --git a/testing/web-platform/tests/css/css-text/white-space/trailing-space-and-text-alignment-002.html b/testing/web-platform/tests/css/css-text/white-space/trailing-space-and-text-alignment-002.html index 30e37908a2..6ee7d03d9d 100644 --- a/testing/web-platform/tests/css/css-text/white-space/trailing-space-and-text-alignment-002.html +++ b/testing/web-platform/tests/css/css-text/white-space/trailing-space-and-text-alignment-002.html @@ -1,5 +1,6 @@ + CSS Text level 3 Test: preserved trailing white space that hang in a textarea diff --git a/testing/web-platform/tests/css/css-text/white-space/trailing-space-and-text-alignment-004.html b/testing/web-platform/tests/css/css-text/white-space/trailing-space-and-text-alignment-004.html index 3d7aad0541..69d74051f7 100644 --- a/testing/web-platform/tests/css/css-text/white-space/trailing-space-and-text-alignment-004.html +++ b/testing/web-platform/tests/css/css-text/white-space/trailing-space-and-text-alignment-004.html @@ -1,5 +1,6 @@ + CSS Text level 3 Test: preserved trailing white space that hang in a textarea diff --git a/testing/web-platform/tests/css/css-text/white-space/trailing-space-and-text-alignment-rtl-002.html b/testing/web-platform/tests/css/css-text/white-space/trailing-space-and-text-alignment-rtl-002.html index 0422506b51..3da84ae512 100644 --- a/testing/web-platform/tests/css/css-text/white-space/trailing-space-and-text-alignment-rtl-002.html +++ b/testing/web-platform/tests/css/css-text/white-space/trailing-space-and-text-alignment-rtl-002.html @@ -1,5 +1,6 @@ + CSS Text level 3 Test: preserved trailing RTL white space that hang in a textarea diff --git a/testing/web-platform/tests/css/css-text/white-space/trailing-space-and-text-alignment-rtl-004.html b/testing/web-platform/tests/css/css-text/white-space/trailing-space-and-text-alignment-rtl-004.html index 7705d6dfb1..480969efc0 100644 --- a/testing/web-platform/tests/css/css-text/white-space/trailing-space-and-text-alignment-rtl-004.html +++ b/testing/web-platform/tests/css/css-text/white-space/trailing-space-and-text-alignment-rtl-004.html @@ -1,5 +1,6 @@ + CSS Text level 3 Test: preserved trailing RTL white space that hang in a textarea diff --git a/testing/web-platform/tests/css/css-text/word-spacing/reference/word-spacing-percent-001-ref.html b/testing/web-platform/tests/css/css-text/word-spacing/reference/word-spacing-percent-001-ref.html new file mode 100644 index 0000000000..02bd2f64f4 --- /dev/null +++ b/testing/web-platform/tests/css/css-text/word-spacing/reference/word-spacing-percent-001-ref.html @@ -0,0 +1,19 @@ + + + +word-spacing as percentages + + +

Test passes if the pattern is identical on all four lines. + +

ABC123().*$いろはx x x፡x་x + ABC123().*$いろはx x x፡x་x
+
ABC123().*$いろはx x x፡x་x + ABC123().*$いろはx x x፡x་x
+
ABC123().*$いろはx x x፡x་x + ABC123().*$いろはx x x፡x་x
+
ABC123().*$いろはx x x፡x་x + ABC123().*$いろはx x x፡x་x
diff --git a/testing/web-platform/tests/css/css-text/word-spacing/word-spacing-002.html b/testing/web-platform/tests/css/css-text/word-spacing/word-spacing-002.html new file mode 100644 index 0000000000..0def7e0179 --- /dev/null +++ b/testing/web-platform/tests/css/css-text/word-spacing/word-spacing-002.html @@ -0,0 +1,32 @@ + +CSS Text Test: Word Spacing + + + + + + + + + +

Test passes if the space between the words starts at zero and increases by + an even amount on each subsequent line.

+
A Bc Def Ghij
+
A Bc Def Ghij
+
A Bc Def Ghij
+
A Bc Def Ghij
+
A  Bc Def  Ghij
+ diff --git a/testing/web-platform/tests/css/css-text/word-spacing/word-spacing-computed-001.html b/testing/web-platform/tests/css/css-text/word-spacing/word-spacing-computed-001.html index 84d1fcf1e5..fac211af66 100644 --- a/testing/web-platform/tests/css/css-text/word-spacing/word-spacing-computed-001.html +++ b/testing/web-platform/tests/css/css-text/word-spacing/word-spacing-computed-001.html @@ -76,7 +76,6 @@ verifyComputedStyle("word-spacing", "3rem", "48px"); verifyComputedStyle("word-spacing", "0ch", "0px"); - } startTesting(); diff --git a/testing/web-platform/tests/css/css-text/word-spacing/word-spacing-percent-001.html b/testing/web-platform/tests/css/css-text/word-spacing/word-spacing-percent-001.html new file mode 100644 index 0000000000..65f9972040 --- /dev/null +++ b/testing/web-platform/tests/css/css-text/word-spacing/word-spacing-percent-001.html @@ -0,0 +1,19 @@ + + + +word-spacing as percentages + + + + + + +

Test passes if the pattern is identical on all four lines. + +

ABC123().*$いろはx x x፡x་x ABC123().*$いろはx x x፡x་x
+
ABC123().*$いろはx x x፡x་x ABC123().*$いろはx x x፡x་x
+
ABC123().*$いろはx x x፡x་x ABC123().*$いろはx x x፡x་x
+
ABC123().*$いろはx x x፡x་x ABC123().*$いろはx x x፡x་x
-- cgit v1.2.3