Files
Kent Tamura 3ba0dcec9d Bug 1897890 [wpt PR 46396] - RubyLB: Fix an issue with text-indent, a=testonly
Automatic update from web-platform-tests
RubyLB: Fix an issue with text-indent

A line with `text-indent` and <ruby> had a wrong wrapping position.
Sub-LineBreakers should not apply `text-indent` values.

Bug: 324111880
Change-Id: I84c778750805eb332c9ffc6cc26e416243bc099b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5553214
Auto-Submit: Kent Tamura <[email protected]>
Reviewed-by: Koji Ishii <[email protected]>
Commit-Queue: Koji Ishii <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1303656}

--

wpt-commits: b0bf123f83753aa51183dad38940eefb95998b72
wpt-pr: 46396
2024-05-23 10:01:35 +00:00

32 lines
667 B
HTML

<!DOCTYPE html>
<link rel="stylesheet" href="/fonts/ahem.css">
<style>
body {
font: 50px/1 Ahem;
}
span {
text-wrap: nowrap;
}
p {
word-break: break-all;
inline-size: calc(6em + 5px);
}
.mc {
columns: 2 calc(6em + 5px);
column-gap: 10px;
inline-size: calc(12em + 10px + 10px);
block-size: 80px;
}
.indent {
text-indent: -1em;
}
</style>
<p>zzz<ruby><span>mmm</span><rt><span>mmmmmm</span></ruby> <ruby><span>mm</span><rt><span>mmmm</span></ruby>zzz
</p>
<p class="mc">zzz<ruby><span>mmm</span><span>mm</span><rt><span>mmmmmm</span><span>mmmm</span></ruby>zzz
</p>
<p class="indent">zzz<ruby>mmmm<rt>mmmmmmmm</ruby><br><ruby>m<rt>mm</ruby>zzz
</p>