Skip to content

Commit

Permalink
Bug 1863582 [wpt PR 42999] - Fix hyphens: none to disable soft hyph…
Browse files Browse the repository at this point in the history
…ens 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 <kojii@chromium.org>
Reviewed-by: Kent Tamura <tkent@chromium.org>
Commit-Queue: Kent Tamura <tkent@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1221202}

--

wpt-commits: 81c8027a6daa81593426449a943998c4559afb31
wpt-pr: 42999
  • Loading branch information
kojiishi authored and moz-wptsync-bot committed Nov 22, 2023
1 parent c1a9aa2 commit 728ec0b
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!DOCTYPE html>
<title>CSS Text: `hyphens: none` disables soft hyphens on 2nd and later lines</title>
<link rel="help" href="https://drafts.csswg.org/css-text-4/#valdef-hyphens-none">
<link rel="match" href="reference/hyphens-none-shy-on-2nd-line-001-ref.html">
<style>
.target {
hyphens: none;
width: 10ch;
}
</style>
<div class="target">
12345678
Deoxy&shy;ribo&shy;nucleic
Deoxy&shy;ribo&shy;nucleic
12345678
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<style>
.target {
width: 10ch;
}
</style>
<div class="target">
12345678
Deoxyribonucleic
Deoxyribonucleic
12345678
</div>

0 comments on commit 728ec0b

Please sign in to comment.