diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2022-02-11 17:36:05 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-02-11 21:38:27 +0100 |
commit | 2fad940b0b6f5bfe6eb8ec626fad0e17f2ca754d (patch) | |
tree | d10d548a4e894947f25a6293096d0e008308e90f /Base/res/html/misc/svg.html | |
parent | 116a1f485cc251bef8f61dec0e58556d74adb649 (diff) | |
download | serenity-2fad940b0b6f5bfe6eb8ec626fad0e17f2ca754d.zip |
LibWeb: Add SVG `<polygon>` element and test case :^)
Diffstat (limited to 'Base/res/html/misc/svg.html')
-rw-r--r-- | Base/res/html/misc/svg.html | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Base/res/html/misc/svg.html b/Base/res/html/misc/svg.html index a6c14b8c31..5488b8b178 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="1000"> +<svg width="800" height="1200"> <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> @@ -75,6 +75,15 @@ 375,850 375,750 425,750 425,850 475,850 475,725 525,725 525,850 575,850" /> + + <!-- Based on https://svgwg.org/svg2-draft/shapes.html#PolygonElement --> + <polygon fill="red" stroke="blue" stroke-width="10" + points="150,875 179,961 269,961 197,1015 + 223,1101 150,1050 77,1101 103,1015 + 31,961 121,961" /> + <polygon fill="lime" stroke="blue" stroke-width="10" + points="450,875 558,937.5 558,1062.5 + 450,1125 342,1062.6 342,937.5" /> </svg> </body> </html> |