summaryrefslogtreecommitdiff
path: root/Base/res/html/misc
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2022-02-11 15:52:42 +0000
committerAndreas Kling <kling@serenityos.org>2022-02-11 21:38:27 +0100
commit1dde6a0a2bfef387c464a35de6d1b7332c4437b5 (patch)
tree943d8398a0b787850e57c0ca02ed1a4cef8608d0 /Base/res/html/misc
parentaa2f20fb601c27b60b4b79599163a01e76e3d9be (diff)
downloadserenity-1dde6a0a2bfef387c464a35de6d1b7332c4437b5.zip
LibWeb: Add SVG `<rect>` element and test case :^)
Diffstat (limited to 'Base/res/html/misc')
-rw-r--r--Base/res/html/misc/svg.html9
1 files changed, 8 insertions, 1 deletions
diff --git a/Base/res/html/misc/svg.html b/Base/res/html/misc/svg.html
index fd0062020d..0d02d71ed4 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="400">
+<svg width="800" height="800">
<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>
@@ -40,6 +40,13 @@
a 10,30 20 0,1 30,10 l 30,10
a 10,40 20 0,1 30,10 l 30,10 z"></path>
</g>
+
+ <!-- Based on https://svgwg.org/svg2-draft/shapes.html#RectElement -->
+ <rect x="50" y="420" width="120" height="60" fill="yellow" stroke="navy" stroke-width="3" />
+ <rect x="250" y="420" width="120" height="60" rx="15" fill="green" />
+ <g transform="translate(450 450) rotate(-30)">
+ <rect x="0" y="0" width="120" height="60" rx="15" fill="none" stroke="purple" stroke-width="9" />
+ </g>
</svg>
</body>
</html>