Files
ladybird/Tests/LibWeb/Text/expected/display_list/svg-overflow-on-inner-elements.txt
Aliaksandr Kalenik d7a8db671b LibWeb: Skip overflow clip generation for SVG inner elements
Per the CSS Overflow spec, overflow properties apply only to block
containers, flex containers, and grid containers — not SVG graphics
elements. Add an `is<SVGPaintable>` check in
`overflow_property_applies()` to return false for SVG inner elements
like `<g>`, `<rect>`, `<path>`.

This doesn't affect `<svg>` elements (which use `SVGSVGPaintable`, a
direct `PaintableBox` subclass) or `<foreignObject>` (which uses
`SVGForeignObjectPaintable`, a `PaintableWithLines` subclass) — both
correctly keep their overflow clips.
2026-02-24 12:28:55 +01:00

10 lines
254 B
Plaintext

AccumulatedVisualContext Tree:
[1] scroll_frame_id=0 (PaintableWithLines(BlockContainer<PRE>#out))
[2] clip=[0,0 200x200] (SVGPathPaintable(SVGGeometryBox<rect>))
DisplayList:
SaveLayer@0
FillPath@2 path_bounding_rect=[10,10 100x100]
Restore@0