diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2022-02-11 17:28:24 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-02-11 21:38:27 +0100 |
commit | 116a1f485cc251bef8f61dec0e58556d74adb649 (patch) | |
tree | 925e74fa710e2084cc37256b209e56990b08b341 /Base/res/html/misc | |
parent | 17912330c40a6e67869366c9d7ba604348fc860f (diff) | |
download | serenity-116a1f485cc251bef8f61dec0e58556d74adb649.zip |
LibWeb: Add SVG `<polyline>` element and test case :^)
Diffstat (limited to 'Base/res/html/misc')
-rw-r--r-- | Base/res/html/misc/svg.html | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Base/res/html/misc/svg.html b/Base/res/html/misc/svg.html index 0b23741b9e..a6c14b8c31 100644 --- a/Base/res/html/misc/svg.html +++ b/Base/res/html/misc/svg.html @@ -11,7 +11,7 @@ </style> </head> <body> -<svg width="800" height="800"> +<svg width="800" height="1000"> <path d="M 10 10 h 100 l -50 80 z" fill="green" stroke="black" stroke-width="3"></path> <path d="M 60 10 h 100 l -50 80 z" fill="red" stroke="blue" stroke-width="3"></path> <path d="M 110 10 h 100 l -50 80 z" class="css"></path> @@ -65,6 +65,16 @@ <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> + + <!-- Based on https://svgwg.org/svg2-draft/shapes.html#PolylineElement --> + <polyline fill="none" stroke="blue" stroke-width="5" + points="25,850 + 75,850 75,825 125,825 125,850 + 175,850 175,800 225,800 225,850 + 275,850 275,775 325,775 325,850 + 375,850 375,750 425,750 425,850 + 475,850 475,725 525,725 525,850 + 575,850" /> </svg> </body> </html> |