From 728ec0b04ace43d84dfc946e685da15a7910fb2e Mon Sep 17 00:00:00 2001 From: Koji Ishii Date: Mon, 20 Nov 2023 10:20:32 +0000 Subject: [PATCH] Bug 1863582 [wpt PR 42999] - Fix `hyphens: none` to disable soft hyphens on 2nd and later lines, a=testonly Automatic update from web-platform-tests Fix `hyphens: none` to disable soft hyphens on 2nd and later lines This patch fixes a regression by crrev.com/c/4591369, which fails to suppress soft hyphens on 2nd and later lines when `hyphens: none` is specified. Fixed: 1497495 Change-Id: Ic98f8e6cb669dd83dea7373d2d52d21a86ac83c9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5010433 Auto-Submit: Koji Ishii Reviewed-by: Kent Tamura Commit-Queue: Kent Tamura Cr-Commit-Position: refs/heads/main@{#1221202} -- wpt-commits: 81c8027a6daa81593426449a943998c4559afb31 wpt-pr: 42999 --- .../hyphens-none-shy-on-2nd-line-001.html | 16 ++++++++++++++++ .../hyphens-none-shy-on-2nd-line-001-ref.html | 12 ++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 testing/web-platform/tests/css/css-text/hyphens/hyphens-none-shy-on-2nd-line-001.html create mode 100644 testing/web-platform/tests/css/css-text/hyphens/reference/hyphens-none-shy-on-2nd-line-001-ref.html diff --git a/testing/web-platform/tests/css/css-text/hyphens/hyphens-none-shy-on-2nd-line-001.html b/testing/web-platform/tests/css/css-text/hyphens/hyphens-none-shy-on-2nd-line-001.html new file mode 100644 index 0000000000000..3efaa54d4f450 --- /dev/null +++ b/testing/web-platform/tests/css/css-text/hyphens/hyphens-none-shy-on-2nd-line-001.html @@ -0,0 +1,16 @@ + +CSS Text: `hyphens: none` disables soft hyphens on 2nd and later lines + + + +
+ 12345678 + Deoxy­ribo­nucleic + Deoxy­ribo­nucleic + 12345678 +
diff --git a/testing/web-platform/tests/css/css-text/hyphens/reference/hyphens-none-shy-on-2nd-line-001-ref.html b/testing/web-platform/tests/css/css-text/hyphens/reference/hyphens-none-shy-on-2nd-line-001-ref.html new file mode 100644 index 0000000000000..932330e927a79 --- /dev/null +++ b/testing/web-platform/tests/css/css-text/hyphens/reference/hyphens-none-shy-on-2nd-line-001-ref.html @@ -0,0 +1,12 @@ + + +
+ 12345678 + Deoxyribonucleic + Deoxyribonucleic + 12345678 +