1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 18:17:45 +00:00

LibWeb: Add a very basic test for SVG-as-image

This mainly just checks that we load the file and learn the correct
intrinsic aspect ratio from the external SVG.
This commit is contained in:
Andreas Kling 2023-05-20 17:54:03 +02:00
parent b2c899af11
commit 24ea78c613
3 changed files with 8 additions and 0 deletions

View file

@ -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>

After

Width:  |  Height:  |  Size: 133 B

View file

@ -0,0 +1 @@
<!doctype html><img src="rectangle.svg" style="display: block">