Tests/LibWeb: Add ref test for SVG <textPath>s

This commit is contained in:
MacDue 2023-12-17 18:50:15 +00:00 committed by Andreas Kling
parent 809c5b0b03
commit 8b5d90734d
3 changed files with 26 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

View file

@ -0,0 +1,15 @@
<style>
* {
margin: 0;
}
body {
background-color: white;
}
</style>
<!-- To rebase:
1. Open svg-textPath.html in Ladybird
2. Resize the window till there's x and y scrollbars
3. Right click > "Take Full Screenshot"
4. Update the image below:
-->
<img src="./images/svg-textPath-ref.png">

View file

@ -0,0 +1,11 @@
<link rel="match" href="reference/svg-textPath-ref.html" />
<svg width="400" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">
<path
id="path"
fill="none"
stroke="red"
d="M10,90 Q90,90 90,45 Q90,10 50,10 Q10,10 10,40 Q10,70 45,70 Q70,70 75,50" />
<text>
<textPath href="#path">Quick brown fox jumps over the lazy dog.</textPath>
</text>
</svg>