Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /svg/geometry/parsing/x-valid.svg - WPT Dashboard Interop Dashboard
<?xml version="1.0" encoding="UTF-8"?>
width="800px" height="8000px">
<title>SVG Geometry Properties: parsing x with valid values</title>
<metadata>
<h:meta name="assert" content="x supports the full grammar '<length-percentage>'."/>
</metadata>
<g id="target"></g>
<h:script src="/resources/testharness.js"/>
<h:script src="/resources/testharnessreport.js"/>
<h:script src="/css/support/parsing-testcommon.js"/>
<script><![CDATA[
test_valid_value("x", "0", "0px");
test_valid_value("x", "-1px");
test_valid_value("x", "calc(2em + 3ex)");
test_valid_value("x", "4%");
test_valid_value("x", "5cm");
]]></script>
</svg>