1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 16:27:35 +00:00

LibWeb: Support preserveAspectRatio=none for SVGs

This is very easy now all transforms are computed during layout.
This commit is contained in:
MacDue 2024-03-09 12:31:00 +01:00 committed by Andreas Kling
parent 190a8f948e
commit 05f42efc06
2 changed files with 18 additions and 10 deletions

View file

@ -98,7 +98,7 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline
TextNode <#text>
SVGSVGBox <svg> at (249,201) content-size 160x60 [SVG] children: inline
TextNode <#text>
SVGGeometryBox <circle> at (299,201) content-size 60x60 children: not-inline
SVGGeometryBox <circle> at (249,201) content-size 160x60 children: not-inline
TextNode <#text>
TextNode <#text>
@ -141,4 +141,4 @@ ViewportPaintable (Viewport<#document>) [0,0 800x600]
SVGPathPaintable (SVGGeometryBox<circle>) [114,136 125x125]
TextPaintable (TextNode<#text>)
SVGSVGPaintable (SVGSVGBox<svg>) [248,200 162x62]
SVGPathPaintable (SVGGeometryBox<circle>) [299,201 60x60]
SVGPathPaintable (SVGGeometryBox<circle>) [249,201 160x60]