blob: ef81dc1fb181559c8c4aa25acee49d8ce1c1749c [file] [log] [blame]
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test case for x/y attributes on root-most &lt;svg> element</title>
</head>
<body>
<h1>Test case for x/y attributes on root-most &lt;svg> element</h1>
<p>
The <code>x</code> and <code>y</code> attributes on a root-most <code>&lt;svg></code> element should be ignored, as specified by SVG 1.1. The root-most <code>&lt;svg></code> element is the element at the root of an SVG fragment. For the following test to pass, the green SVG square should be rendered aligned to the top-left of the red CSS-rendered square, which is 10 pixels wider and taller.
</p>
<p>
See <a href="http://bugs.webkit.org/show_bug.cgi?id=13828">Bug 13828</a>.
</p>
<div style="width: 110px; height: 110px; background-color: red;">
<svg x="10" y="10" width="100" height="100" xmlns="http://www.w3.org/2000/svg">
<rect width="100" height="100" fill="green" />
</svg>
</div>
</body>
</html>