From 5c17dc91c08bce6aaf98b960c34dd497417fa921 Mon Sep 17 00:00:00 2001 From: Marco Castelluccio Date: Thu, 16 Jan 2025 01:48:41 +0000 Subject: [PATCH] Bug 1939155 [wpt PR 49844] - text-emphasis: Do not paint emphasis marks on punctuations, a=testonly Automatic update from web-platform-tests text-emphasis: Do not paint emphasis marks on punctuations * Do not paint emphasis marks on punctuations * Do not use IDEOGRAPHIC FULL STOP for text-combine placeholder It's a punctuation. Use HIRAGANA LETTER A instead. * Do not paint emphasis marks on generated ellipsis symbols just in case It's always a punctuation now. But we might support arbitrary string in the future. * Update text-emphasis-punctuation-1.html so that it uses Ahem font Without this change, the test had pixel glitches on Chromium. The new behavior matches to Firefox. https://drafts.csswg.org/css-text-decor/#text-emphasis-style-property Bug: 359420112 Change-Id: If93ef6190e739a0cf64d3becb24c41191dbe1100 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6108987 Commit-Queue: Koji Ishii Auto-Submit: Kent Tamura Reviewed-by: Koji Ishii Cr-Commit-Position: refs/heads/main{#1400253} -- wpt-commits: 7f001e1c77df092dcd77f3a06b0f27335e8b859c wpt-pr: 49844 UltraBlame original commit: b1a1b237510cccfb76b89beeb40e2c5f8035b814 --- .../text-emphasis-punctuation-1-ref.html | 40 +++++++++++++++++++ .../text-emphasis-punctuation-1.html | 31 ++++++++++++++ 2 files changed, 71 insertions(+) diff --git a/testing/web-platform/tests/css/css-text-decor/text-emphasis-punctuation-1-ref.html b/testing/web-platform/tests/css/css-text-decor/text-emphasis-punctuation-1-ref.html index 832e70969140..7762a20a72d2 100644 --- a/testing/web-platform/tests/css/css-text-decor/text-emphasis-punctuation-1-ref.html +++ b/testing/web-platform/tests/css/css-text-decor/text-emphasis-punctuation-1-ref.html @@ -30,8 +30,43 @@ title > < +link +rel += +" +stylesheet +" +type += +" +text +/ +css +" +href += +" +/ +fonts +/ +ahem +. +css +" +> +< style > +. +ahem +{ +font +- +family +: +Ahem +; +} span { text @@ -70,6 +105,11 @@ > < p +class += +" +ahem +" > < span diff --git a/testing/web-platform/tests/css/css-text-decor/text-emphasis-punctuation-1.html b/testing/web-platform/tests/css/css-text-decor/text-emphasis-punctuation-1.html index 43ec339a3129..724156eec536 100644 --- a/testing/web-platform/tests/css/css-text-decor/text-emphasis-punctuation-1.html +++ b/testing/web-platform/tests/css/css-text-decor/text-emphasis-punctuation-1.html @@ -116,6 +116,31 @@ " > < +link +rel += +" +stylesheet +" +type += +" +text +/ +css +" +href += +" +/ +fonts +/ +ahem +. +css +" +> +< style > . @@ -128,6 +153,12 @@ filled circle ; +font +- +family +: +Ahem +; } < /