mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 22:52:22 +02:00
Previously, when applying `text-overflow: ellipsis`, line box fragments after the ellipsis point were removed from the line box. This invalidated fragment indices stored in `containing_line_box_fragment`, causing an out-of-bounds access in `LayoutState::commit()` when resolving atomic inline positions. Instead of removing fragments, mark them as hidden. This preserves index stability while preventing hidden fragments from being displayed.
42 KiB
42 KiB