Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

SVG Preview (Scaled)

Preview of https://raw.githubusercontent.com/mozilla-firefox/firefox/main/testing/web-platform/tests/svg/geometry/parsing/r-attribute-valid.svg
<?xml version="1.0" encoding="UTF-8"?>
width="800px" height="800px">
<title>SVG Geometry Properties: parsing the r presentation attribute with valid values</title>
<metadata>
<h:meta name="assert" content="the r presentation attribute supports '&lt;length-percentage [0,inf]&gt; | &lt;number [0,inf]&gt;'."/>
</metadata>
<circle id="target"/>
<h:script src="/resources/testharness.js"/>
<h:script src="/resources/testharnessreport.js"/>
<h:script src="support/attribute-testcommon.js"/>
<script><![CDATA[
test_valid_attribute_value("r", "0", 0);
test_valid_attribute_value("r", "5", 5);
test_valid_attribute_value("r", "5px", 5);
test_valid_attribute_value("r", "5%", 40, "5%");
]]></script>
</svg>