LibWeb: Apply SVG viewbox transform to foreignObject elements

This commit is contained in:
Andreas Kling
2025-07-08 10:31:42 +02:00
committed by Andreas Kling
parent f343a418b2
commit f5f3cd041a
Notes: github-actions[bot] 2025-07-09 12:37:35 +00:00
5 changed files with 100 additions and 3 deletions

View File

@@ -0,0 +1,13 @@
<!doctype html>
<style>
* { outline: 1px solid black; }
div {
width: 40px;
height: 40px;
background: orange;
border: 5px solid red;
}
svg {
display: block;
}
</style><svg width="48" height="48" viewBox="0 0 48 48"><foreignObject x="0" y="0" width="30" height="30"><div></div></foreignObject></svg>