mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:37:34 +00:00

When embedding an SVG in an img element, if the external SVG's root element has both width and height attributes, but no viewBox attribute, we now create a fallback viewBox with "0 0 width height". This appears to match the behavior of other browsers. Inspired by discussion on Mozilla's bug tracker: https://bugzilla.mozilla.org/show_bug.cgi?id=614649
8 lines
582 B
Text
8 lines
582 B
Text
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|
BlockContainer <html> at (0,0) content-size 800x116 [BFC] children: not-inline
|
|
BlockContainer <body> at (8,8) content-size 784x100 children: not-inline
|
|
ImageBox <img> at (8,8) content-size 50x100 children: not-inline
|
|
(SVG-as-image isolated context)
|
|
Viewport <#document> at (0,0) content-size 50x100 children: inline
|
|
SVGSVGBox <svg> at (0,0) content-size 50x100 [SVG] children: not-inline
|
|
SVGGeometryBox <rect> at (0,0) content-size 50x100 children: not-inline
|