Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: bbd89401cb3d6be25ac140a9787b796838416e9b
https://github.com/WebKit/WebKit/commit/bbd89401cb3d6be25ac140a9787b796838416e9b
Author: Alan Baradlay <[email protected]>
Date: 2026-10-02 (Fri, 02 Oct 2026)
Changed paths:
M LayoutTests/TestExpectations
M Source/WebCore/rendering/LineClampUpdater.h
Log Message:
-----------
[line-clamp] Ruby annotations lose their text in a line-clamp container
https://bugs.webkit.org/show_bug.cgi?id=325455
<rdar://problem/188552871>
Reviewed by Antti Koivisto.
<div style="line-clamp:
3"><ruby>a<rt>1</rt></ruby><ruby>b<rt>2</rt></ruby><ruby>c<rt>3</rt></ruby><br>second
line</div>
Every annotation should show above its base. The annotation box (display:
ruby-text) is a block container, so
the clamp reached into it: each annotation took a line off the clamp's budget,
and once the budget ran out the
rest of the annotations lost their text. An annotation belongs to the line of
its base, so the clamp now stays
out of it, the way it stays out of independent formatting contexts.
* LayoutTests/TestExpectations: line-clamp-026 passes now.
* Source/WebCore/rendering/LineClampUpdater.h:
(WebCore::LineClampUpdater::LineClampUpdater):
Canonical link: https://commits.webkit.org/322578@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications