mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-05-22 19:19:10 +00:00
This change makes overflow clipping work correctly for children of svg
element.
Fixes following example:
```html
<!doctype html><style>
body {
width: 300px;
height: 300px;
position: relative;
overflow: hidden;
border: 1px solid black;
}
svg {
position: absolute;
left: 50%;
top: 50%;
width: 100%;
height: 100%;
transform: translate(-50%, -50%);
}
</style>
<body>
<svg viewBox="0 0 100 100">
<g>
<rect x="0" y="0" width="100" height="100" fill="green"></rect>
</g>
</svg>
```
38 KiB
38 KiB