commit 9ad061062c4483139c428bb4e0c147de04b3cf9e parent 713a02b2fa625e48fec5e262bb1f8ee82fd9339d Author: Emily McDonough <emcdonough@mozilla.com> Date: Tue, 7 Oct 2025 17:58:45 +0000 Bug 1979915 Part 2 - Update text expectations for implementing text-decoration-trim r=layout-jp-market-reviewers,jfkthame,TYLin This adjusts two of the WPT where skip-ink could cause problems with the descenders when just shifting the text. There are still multiple tests that check that skip-ink functions correctly, both for negative and positive trim values, though not for BIDI text. Differential Revision: https://phabricator.services.mozilla.com/D267688 Diffstat:
19 files changed, 4 insertions(+), 32 deletions(-)
diff --git a/testing/web-platform/meta/css/css-text-decor/text-decoration-trim-001.html.ini b/testing/web-platform/meta/css/css-text-decor/text-decoration-trim-001.html.ini @@ -1,2 +0,0 @@ -[text-decoration-trim-001.html] - expected: FAIL diff --git a/testing/web-platform/meta/css/css-text-decor/text-decoration-trim-002.html.ini b/testing/web-platform/meta/css/css-text-decor/text-decoration-trim-002.html.ini @@ -1,2 +0,0 @@ -[text-decoration-trim-002.html] - expected: FAIL diff --git a/testing/web-platform/meta/css/css-text-decor/text-decoration-trim-003.html.ini b/testing/web-platform/meta/css/css-text-decor/text-decoration-trim-003.html.ini @@ -1,2 +0,0 @@ -[text-decoration-trim-003.html] - expected: FAIL diff --git a/testing/web-platform/meta/css/css-text-decor/text-decoration-trim-004.html.ini b/testing/web-platform/meta/css/css-text-decor/text-decoration-trim-004.html.ini @@ -1,2 +0,0 @@ -[text-decoration-trim-004.html] - expected: FAIL diff --git a/testing/web-platform/meta/css/css-text-decor/text-decoration-trim-005.html.ini b/testing/web-platform/meta/css/css-text-decor/text-decoration-trim-005.html.ini @@ -1,2 +0,0 @@ -[text-decoration-trim-005.html] - expected: FAIL diff --git a/testing/web-platform/meta/css/css-text-decor/text-decoration-trim-006.html.ini b/testing/web-platform/meta/css/css-text-decor/text-decoration-trim-006.html.ini @@ -1,2 +0,0 @@ -[text-decoration-trim-006.html] - expected: FAIL diff --git a/testing/web-platform/meta/css/css-text-decor/text-decoration-trim-007.html.ini b/testing/web-platform/meta/css/css-text-decor/text-decoration-trim-007.html.ini @@ -1,2 +0,0 @@ -[text-decoration-trim-007.html] - expected: FAIL diff --git a/testing/web-platform/meta/css/css-text-decor/text-decoration-trim-008.html.ini b/testing/web-platform/meta/css/css-text-decor/text-decoration-trim-008.html.ini @@ -1,2 +0,0 @@ -[text-decoration-trim-008.html] - expected: FAIL diff --git a/testing/web-platform/meta/css/css-text-decor/text-decoration-trim-009.html.ini b/testing/web-platform/meta/css/css-text-decor/text-decoration-trim-009.html.ini @@ -1,2 +0,0 @@ -[text-decoration-trim-009.html] - expected: FAIL diff --git a/testing/web-platform/meta/css/css-text-decor/text-decoration-trim-010.html.ini b/testing/web-platform/meta/css/css-text-decor/text-decoration-trim-010.html.ini @@ -1,2 +0,0 @@ -[text-decoration-trim-010.html] - expected: FAIL diff --git a/testing/web-platform/meta/css/css-text-decor/text-decoration-trim-012.html.ini b/testing/web-platform/meta/css/css-text-decor/text-decoration-trim-012.html.ini @@ -1,2 +0,0 @@ -[text-decoration-trim-012.html] - expected: FAIL diff --git a/testing/web-platform/meta/css/css-text-decor/text-decoration-trim-013.html.ini b/testing/web-platform/meta/css/css-text-decor/text-decoration-trim-013.html.ini @@ -1,2 +0,0 @@ -[text-decoration-trim-013.html] - expected: FAIL diff --git a/testing/web-platform/meta/css/css-text-decor/text-decoration-trim-014.html.ini b/testing/web-platform/meta/css/css-text-decor/text-decoration-trim-014.html.ini @@ -1,2 +0,0 @@ -[text-decoration-trim-014.html] - expected: FAIL diff --git a/testing/web-platform/meta/css/css-text-decor/text-decoration-trim-015.html.ini b/testing/web-platform/meta/css/css-text-decor/text-decoration-trim-015.html.ini @@ -1,2 +0,0 @@ -[text-decoration-trim-015.html] - expected: FAIL diff --git a/testing/web-platform/meta/css/css-text-decor/text-decoration-trim-016.html.ini b/testing/web-platform/meta/css/css-text-decor/text-decoration-trim-016.html.ini @@ -1,2 +0,0 @@ -[text-decoration-trim-016.html] - expected: FAIL diff --git a/testing/web-platform/tests/css/css-text-decor/reference/text-decoration-trim-007-ref.html b/testing/web-platform/tests/css/css-text-decor/reference/text-decoration-trim-007-ref.html @@ -19,6 +19,7 @@ h1 { position: absolute; } u { + text-decoration-skip-ink: none; text-decoration-color: black; } </style> diff --git a/testing/web-platform/tests/css/css-text-decor/reference/text-decoration-trim-008-ref.html b/testing/web-platform/tests/css/css-text-decor/reference/text-decoration-trim-008-ref.html @@ -25,8 +25,8 @@ span { u { display: inline-block; position: absolute; + text-decoration-skip-ink: none; text-decoration-color: black; - text-underline-offset: 10px; width: calc(100% - 20px); text-wrap-mode: nowrap; overflow-x: clip; diff --git a/testing/web-platform/tests/css/css-text-decor/text-decoration-trim-007.html b/testing/web-platform/tests/css/css-text-decor/text-decoration-trim-007.html @@ -21,6 +21,7 @@ h1 { position: absolute; } u { + text-decoration-skip-ink: none; text-decoration-color: black; text-decoration-trim: 10px -10px; text-underline-offset: 10px; diff --git a/testing/web-platform/tests/css/css-text-decor/text-decoration-trim-008.html b/testing/web-platform/tests/css/css-text-decor/text-decoration-trim-008.html @@ -25,9 +25,9 @@ span { position: relative; } u { + text-decoration-skip-ink: none; text-decoration-color: black; text-decoration-trim: 10px; - text-underline-offset: 10px; } </style>