ladybird/Libraries/LibWeb/Layout
Callum Law 027c9f53be LibWeb: Handle text-overflow: ellipsis with trailing whitespace
We should calculate whether we need to truncate text with an ellipsis
exclusive of any trailing collapsible whitespace.

This was causing issues where an inline element was automatically sized
(e.g. min-content) as we would calculate available width exclusive of
trailing collapsible whitespace and then our text chunk would be wider,
always inserting an ellipsis.

Fixes the visual element of #4048 but we still are incorrect in how we
collapse whitespace more generally
2025-08-18 11:00:26 +01:00
..
AudioBox.cpp LibWeb: Allow Layout::ImageBox to be anonymous 2025-07-28 22:46:27 +02:00
AudioBox.h
AvailableSpace.cpp
AvailableSpace.h
BlockContainer.cpp LibWeb: Verify type before casting PaintableBox to PaintableWithLines 2025-07-13 03:01:59 +02:00
BlockContainer.h
BlockFormattingContext.cpp LibWeb: Honor "should treat as auto" cases in aspect-ratio decisions 2025-08-05 21:33:41 +02:00
BlockFormattingContext.h LibWeb: Avoid floats for BFC/FFC/GFCs with a definite width 2025-08-01 14:26:12 +02:00
Box.cpp LibWeb: Move containment checks to Layout::Node 2025-05-13 15:30:14 +03:00
Box.h LibWeb: Move containment checks to Layout::Node 2025-05-13 15:30:14 +03:00
BreakNode.cpp
BreakNode.h
CanvasBox.cpp
CanvasBox.h LibWeb: Allow Layout::ImageBox to be anonymous 2025-07-28 22:46:27 +02:00
CheckBox.cpp
CheckBox.h
FieldSetBox.cpp
FieldSetBox.h
FlexFormattingContext.cpp LibWeb: Remove unused includes from FlexFormattingContext 2025-07-28 12:13:06 +02:00
FlexFormattingContext.h LibWeb: Avoid computing automatic minimum size for some flex items 2025-04-22 15:46:10 +02:00
FormAssociatedLabelableNode.h
FormattingContext.cpp LibWeb: Fix cyclic percentage resolution in calculate_min_content_width 2025-08-13 10:14:37 +01:00
FormattingContext.h LibWeb: Honor "should treat as auto" cases in aspect-ratio decisions 2025-08-05 21:33:41 +02:00
GridFormattingContext.cpp LibWeb: Fix abspos layout when box is contained by grid area 2025-08-17 17:58:16 +02:00
GridFormattingContext.h LibWeb: Skip serialization of implicit grid lines created during layout 2025-06-25 20:45:48 +02:00
ImageBox.cpp LibWeb: Allow ImageProvider subclasses to visit additional GC edges 2025-07-28 22:46:27 +02:00
ImageBox.h LibWeb: Allow Layout::ImageBox to be anonymous 2025-07-28 22:46:27 +02:00
ImageProvider.cpp
ImageProvider.h LibWeb: Allow ImageProvider subclasses to visit additional GC edges 2025-07-28 22:46:27 +02:00
InlineFormattingContext.cpp LibWeb: Handle text-overflow: ellipsis with trailing whitespace 2025-08-18 11:00:26 +01:00
InlineFormattingContext.h
InlineLevelIterator.cpp LibWeb: Support percentages in word-spacing 2025-08-05 11:43:55 +01:00
InlineLevelIterator.h LibWeb: Remove unused include from InlineLevelIterator 2025-06-17 17:03:33 +02:00
InlineNode.cpp
InlineNode.h
Label.cpp
Label.h
LabelableNode.cpp
LabelableNode.h LibWeb: Allow Layout::ImageBox to be anonymous 2025-07-28 22:46:27 +02:00
LayoutState.cpp LibWeb: Don't let aspect-ratio influence size definiteness 2025-08-05 21:33:41 +02:00
LayoutState.h LibWeb: Support CSS content property images (and lists, too!) 2025-07-28 22:46:27 +02:00
LegendBox.cpp
LegendBox.h
LineBox.cpp LibWeb: Port rendered text to UTF-16 2025-07-25 18:16:22 +02:00
LineBox.h LibWeb: Make fragment start/length size_t instead of int 2025-06-13 15:08:26 +02:00
LineBoxFragment.cpp LibWeb: Port rendered text to UTF-16 2025-07-25 18:16:22 +02:00
LineBoxFragment.h LibWeb: Port rendered text to UTF-16 2025-07-25 18:16:22 +02:00
LineBuilder.cpp LibWeb: Prioritize inheriting text-align for <th> 2025-07-15 10:05:48 +02:00
LineBuilder.h LibWeb: Let LineBuilder decide on Y-coordinate for float insertion 2025-04-01 16:02:53 +02:00
ListItemBox.cpp
ListItemBox.h Meta: Enforce newlines around namespaces 2025-05-14 02:01:59 -06:00
ListItemMarkerBox.cpp AK+LibWeb/CSS: Add lower-greek counter style 2025-07-21 15:18:17 +01:00
ListItemMarkerBox.h LibWeb: Improve graphical list item marker positioning 2025-07-17 09:35:09 +01:00
NavigableContainerViewport.cpp
NavigableContainerViewport.h LibWeb: Allow Layout::ImageBox to be anonymous 2025-07-28 22:46:27 +02:00
Node.cpp LibWeb: Implement the color-interpolation property for SVG gradients 2025-08-17 10:51:05 +02:00
Node.h LibWeb: Rename PaintContext to DisplayListRecordingContext 2025-08-01 05:25:56 -04:00
RadioButton.cpp
RadioButton.h
ReplacedBox.cpp LibWeb: Allow Layout::ImageBox to be anonymous 2025-07-28 22:46:27 +02:00
ReplacedBox.h LibWeb: Allow Layout::ImageBox to be anonymous 2025-07-28 22:46:27 +02:00
SVGBox.cpp
SVGBox.h
SVGClipBox.cpp
SVGClipBox.h
SVGForeignObjectBox.cpp
SVGForeignObjectBox.h LibWeb: Make SVG foreignObject establish a new stacking context 2025-07-09 14:36:08 +02:00
SVGFormattingContext.cpp LibWeb: Port SVGFormattingContext to UTF-16 2025-08-05 15:13:36 +02:00
SVGFormattingContext.h
SVGGeometryBox.cpp
SVGGeometryBox.h
SVGGraphicsBox.cpp
SVGGraphicsBox.h LibWeb: Add more fast_is<T> helpers for layout and paintable nodes 2025-04-18 14:45:56 +02:00
SVGImageBox.cpp
SVGImageBox.h
SVGMaskBox.cpp
SVGMaskBox.h
SVGSVGBox.cpp
SVGSVGBox.h LibWeb: Allow Layout::ImageBox to be anonymous 2025-07-28 22:46:27 +02:00
SVGTextBox.cpp
SVGTextBox.h
SVGTextPathBox.cpp
SVGTextPathBox.h
TableFormattingContext.cpp LibWeb/Layout: Support visibility:collapse on table-row elements 2025-08-11 11:07:47 +01:00
TableFormattingContext.h
TableGrid.cpp LibWeb/Layout: Support visibility:collapse on table-row elements 2025-08-11 11:07:47 +01:00
TableGrid.h LibWeb/Layout: Support visibility:collapse on table-row elements 2025-08-11 11:07:47 +01:00
TableWrapper.cpp
TableWrapper.h
TextNode.cpp LibWeb: Port rendered text to UTF-16 2025-07-25 18:16:22 +02:00
TextNode.h LibWeb: Port rendered text to UTF-16 2025-07-25 18:16:22 +02:00
TreeBuilder.cpp LibWeb: Support CSS content property images (and lists, too!) 2025-07-28 22:46:27 +02:00
TreeBuilder.h LibWeb/CSS: Move and rename PseudoElement types to prep for code gen 2025-03-24 09:49:50 +00:00
VideoBox.cpp LibWeb: Allow Layout::ImageBox to be anonymous 2025-07-28 22:46:27 +02:00
VideoBox.h
Viewport.cpp LibWeb: Port rendered text to UTF-16 2025-07-25 18:16:22 +02:00
Viewport.h AK+LibJS+LibWeb+LibRegex: Replace AK::Utf16Data with AK::Utf16String 2025-07-18 12:45:38 -04:00