blob: d8f90abf131c427b7aed905088d46361efdbf2a8 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="../../svg/dynamic-updates/resources/SVGTestCase.js"></script>
<script src="../../resources/js-test-pre.js"></script>
</head>
<body>
<p id="description"></p>
<div id="console"></div>
<script>
description("Tests the parsing of shape-rendering property values")
createSVGTestCase();
var group = createSVGElement("g");
rootSVGElement.appendChild(group);
// Test initial value of font-length.
shouldBeEqualToString("document.defaultView.getComputedStyle(group, null).shapeRendering", "auto");
group.setAttribute("shape-rendering", "crispEdges");
shouldBeEqualToString("document.defaultView.getComputedStyle(group, null).shapeRendering", "crispedges");
group.setAttribute("shape-rendering", "crispedges");
shouldBeEqualToString("document.defaultView.getComputedStyle(group, null).shapeRendering", "crispedges");
group.setAttribute("shape-rendering", "optimizeSpeed");
shouldBeEqualToString("document.defaultView.getComputedStyle(group, null).shapeRendering", "optimizeSpeed");
group.setAttribute("shape-rendering", "geometricPrecision");
shouldBeEqualToString("document.defaultView.getComputedStyle(group, null).shapeRendering", "geometricPrecision");
var successfullyParsed = true;
completeTest();
</script>
</body>
</html>