22 lines
1.6 KiB
HTML
22 lines
1.6 KiB
HTML
<!DOCTYPE html>
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<body>
|
|
<p>Test styling of elements using their local name. Matching the name should always be case-sensitive for XHTML.</p>
|
|
<div id="test-cases">
|
|
<rect style="width: 100px; height: 100px; background-color: green; border: 1px solid red; display: block; float: left; stroke: purple; fill: blue;"></rect>
|
|
<Rect style="stroke: purple; border: 2px dashed lime;"></Rect>
|
|
<RECT style="fill: yellow; background-color: orange;"></RECT>
|
|
<svg xmlns="http://www.w3.org/2000/svg">
|
|
<rect width="100" height="100" style="width: 100px; height: 100px; background-color: green; border: 1px solid red; display: block; float: left; stroke: purple; fill: blue;"></rect>
|
|
<Rect x="100" width="100" height="100" style="stroke: purple; border: 2px dashed lime;"></Rect>
|
|
<RECT x="200" width="100" height="100" style="fill: yellow; background-color: orange;"></RECT>
|
|
</svg>
|
|
</div>
|
|
</body>
|
|
<script><![CDATA[
|
|
var svgDocument = new DOMParser().parseFromString('<svg xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" style="width: 100px; height: 100px; background-color: green; border: 1px solid red; display: block; float: left; stroke: purple; fill: blue;"></rect><Rect x="100" width="100" height="100" style="stroke: purple; border: 2px dashed lime;"></Rect><RECT x="200" width="100" height="100" style="fill: yellow; background-color: orange;"></RECT></svg>', 'text/xml');
|
|
var testCases = document.getElementById("test-cases");
|
|
testCases.appendChild(document.importNode(svgDocument.documentElement, true));
|
|
]]></script>
|
|
</html>
|