mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 09:45:06 +02:00
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.
16 lines
343 B
HTML
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>
|