mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:48:10 +00:00

SVG presentation attributes are parsed as CSS values, so we also need to handle CSS variable expansion when handling them. This (roughly) matches the behavior of other engines. It's also used on the web, for example on https://stripe.com/ :^)
7 lines
521 B
Text
7 lines
521 B
Text
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|
BlockContainer <html> at (0,0) content-size 800x118 [BFC] children: not-inline
|
|
BlockContainer <body> at (8,8) content-size 784x102 children: inline
|
|
line 0 width: 102, height: 102, bottom: 102, baseline: 60
|
|
frag 0 from SVGSVGBox start: 0, length: 0, rect: [9,9 100x100]
|
|
SVGSVGBox <svg> at (9,9) content-size 100x100 [SVG] children: not-inline
|
|
SVGGeometryBox <rect> at (29,29) content-size 60x60 children: not-inline
|