Files
ladybird/Tests/LibWeb/Text/input/display_list/svg-overflow-on-inner-elements.html
Aliaksandr Kalenik 5a073fdbf1 Tests: Add display list test for overflow on SVG inner elements
This test captures the current (incorrect) behavior where setting
`overflow: hidden` on an SVG `<g>` element produces a clip in the
display list. Per the CSS Overflow spec, overflow properties only apply
to block containers, flex containers, and grid containers — not SVG
graphics elements.
2026-02-24 12:28:55 +01:00

16 lines
343 B
HTML

<!DOCTYPE html>
<script src="../include.js"></script>
<style>
* { margin: 0; padding: 0; }
</style>
<svg width="200" height="200">
<g style="overflow: hidden">
<rect x="10" y="10" width="100" height="100" fill="green" />
</g>
</svg>
<script>
test(() => {
println(internals.dumpDisplayList());
});
</script>