mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-03 21:12:08 +02:00
LibWeb: Apply SVG viewbox transform to foreignObject elements
This commit is contained in:
committed by
Andreas Kling
parent
f343a418b2
commit
f5f3cd041a
Notes:
github-actions[bot]
2025-07-09 12:37:35 +00:00
Author: https://github.com/awesomekling Commit: https://github.com/LadybirdBrowser/ladybird/commit/f5f3cd041ab Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5369 Reviewed-by: https://github.com/gmta ✅
13
Tests/LibWeb/Layout/input/svg/foreignObject-simple.html
Normal file
13
Tests/LibWeb/Layout/input/svg/foreignObject-simple.html
Normal 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>
|
||||
Reference in New Issue
Block a user