LibWeb: Layout <svg> nested inside <svg>

This is far from perfect, but let's at least make an attempt at laying
out <svg> when encountering it inside another <svg>.

This makes https://awesomekling.substack.com actually load and render
instead of asserting. :^)
This commit is contained in:
Andreas Kling 2023-04-18 19:32:00 +02:00
commit ce5a939148
Notes: sideshowbarker 2024-07-17 01:55:29 +09:00
3 changed files with 29 additions and 3 deletions

View file

@ -0,0 +1,10 @@
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
BlockContainer <html> at (0,0) content-size 800x40 children: not-inline
BlockContainer <body> at (8,8) content-size 784x24 children: inline
line 0 width: 24, height: 24, bottom: 24, baseline: 24
frag 0 from SVGSVGBox start: 0, length: 0, rect: [8,8 24x24]
SVGSVGBox <svg> at (8,8) content-size 24x24 children: inline
SVGGraphicsBox <g> children: inline
SVGSVGBox <svg> at (8,8) content-size 24x24 children: not-inline
SVGGeometryBox <rect> at (8,8) content-size 24x24 children: not-inline
TextNode <#text>