From 5d77104c2f214f0a78d936c014cea21335083eaf Mon Sep 17 00:00:00 2001 From: Manuel Zahariev Date: Thu, 5 Dec 2024 20:41:16 -0800 Subject: [PATCH] LibWeb: Test layout of standalone SVG document: main use case SVG document with specified width and height attributes is layed out with this width/height. --- Tests/LibWeb/Layout/expected/svg/standalone.txt | 17 +++++++++++++++++ Tests/LibWeb/Layout/input/svg/standalone.svg | 7 +++++++ 2 files changed, 24 insertions(+) create mode 100644 Tests/LibWeb/Layout/expected/svg/standalone.txt create mode 100644 Tests/LibWeb/Layout/input/svg/standalone.svg diff --git a/Tests/LibWeb/Layout/expected/svg/standalone.txt b/Tests/LibWeb/Layout/expected/svg/standalone.txt new file mode 100644 index 00000000000..a7b14e7bf2b --- /dev/null +++ b/Tests/LibWeb/Layout/expected/svg/standalone.txt @@ -0,0 +1,17 @@ +Viewport <#document> at (0,0) content-size 800x600 [BFC] children: not-inline + SVGSVGBox at (0,0) content-size 128x256 [SVG] children: inline + TextNode <#text> + TextNode <#text> + SVGGeometryBox at (0,0) content-size 128x256 children: not-inline + TextNode <#text> + SVGGraphicsBox at (0,0) content-size 128x256 children: inline + TextNode <#text> + SVGGeometryBox at (0,0) content-size 128x256 children: not-inline + TextNode <#text> + TextNode <#text> + +ViewportPaintable (Viewport<#document>) [0,0 800x600] + SVGSVGPaintable (SVGSVGBox) [0,0 128x256] + SVGPathPaintable (SVGGeometryBox) [0,0 128x256] + SVGGraphicsPaintable (SVGGraphicsBox) [0,0 128x256] + SVGPathPaintable (SVGGeometryBox) [0,0 128x256] diff --git a/Tests/LibWeb/Layout/input/svg/standalone.svg b/Tests/LibWeb/Layout/input/svg/standalone.svg new file mode 100644 index 00000000000..463f07a77e3 --- /dev/null +++ b/Tests/LibWeb/Layout/input/svg/standalone.svg @@ -0,0 +1,7 @@ + + white diamond on blue + + + + +