mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
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.
10 lines
254 B
Plaintext
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
|
|
|