use-getComputedStyle.html (589B)
1 <!doctype html> 2 <title>SVG Test: Resolved positioning inside use</title> 3 <link rel="help" href="https://www.w3.org/TR/SVG2/struct.html#UseElement"> 4 <script src="/resources/testharness.js"></script> 5 <script src="/resources/testharnessreport.js"></script> 6 <svg> 7 <use id="use" x="1" y="2"/> 8 </svg> 9 <script> 10 test(() => { 11 assert_equals(getComputedStyle(use).x, "1px", "use element should have x computed to '1px'."); 12 assert_equals(getComputedStyle(use).y, "2px", "use element should have y computed to '2px'."); 13 }, "Test that we map use element positioning to style."); 14 </script>