diff options
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/LibWeb/Layout/expected/svg/svg-as-image.txt | 4 | ||||
-rw-r--r-- | Tests/LibWeb/Layout/input/svg/rectangle.svg | 3 | ||||
-rw-r--r-- | Tests/LibWeb/Layout/input/svg/svg-as-image.html | 1 |
3 files changed, 8 insertions, 0 deletions
diff --git a/Tests/LibWeb/Layout/expected/svg/svg-as-image.txt b/Tests/LibWeb/Layout/expected/svg/svg-as-image.txt new file mode 100644 index 0000000000..0592f36d88 --- /dev/null +++ b/Tests/LibWeb/Layout/expected/svg/svg-as-image.txt @@ -0,0 +1,4 @@ +Viewport <#document> at (0,0) content-size 800x600 children: not-inline + BlockContainer <html> at (0,0) content-size 800x1584 [BFC] children: not-inline + BlockContainer <body> at (8,8) content-size 784x1568 children: not-inline + ImageBox <img> at (8,8) content-size 784x1568 children: not-inline diff --git a/Tests/LibWeb/Layout/input/svg/rectangle.svg b/Tests/LibWeb/Layout/input/svg/rectangle.svg new file mode 100644 index 0000000000..038b4a2765 --- /dev/null +++ b/Tests/LibWeb/Layout/input/svg/rectangle.svg @@ -0,0 +1,3 @@ +<svg viewBox="0 0 100 200" xmlns="http://www.w3.org/2000/svg"> + <rect x="0" y="0" width="100" height="200" fill="green" /> +</svg> diff --git a/Tests/LibWeb/Layout/input/svg/svg-as-image.html b/Tests/LibWeb/Layout/input/svg/svg-as-image.html new file mode 100644 index 0000000000..6a9f6bfd8a --- /dev/null +++ b/Tests/LibWeb/Layout/input/svg/svg-as-image.html @@ -0,0 +1 @@ +<!doctype html><img src="rectangle.svg" style="display: block">
\ No newline at end of file |