1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 23:37:35 +00:00

LibWeb: Add SVG <line> element and test case :^)

This commit is contained in:
Sam Atkins 2022-02-11 16:56:36 +00:00 committed by Andreas Kling
parent 3a1a35ef8f
commit 17912330c4
11 changed files with 126 additions and 0 deletions

View file

@ -56,6 +56,15 @@
<g transform="translate(400 550) rotate(-30)">
<ellipse rx="50" ry="20" fill="none" stroke="blue" stroke-width="4" />
</g>
<!-- Based on https://svgwg.org/svg2-draft/shapes.html#LineElement -->
<g stroke="green">
<line x1="10" y1="700" x2="110" y2="600" stroke-width="5" />
<line x1="120" y1="700" x2="220" y2="600" stroke-width="10" />
<line x1="230" y1="700" x2="330" y2="600" stroke-width="15" />
<line x1="340" y1="700" x2="440" y2="600" stroke-width="20" />
<line x1="450" y1="700" x2="550" y2="600" stroke-width="25" />
</g>
</svg>
</body>
</html>