Status: FAIL | Duration: 14ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-transforms/css-transforms-transformlist.html
<!DOCTYPE html> <html> <!-- Submitted from TestTWF Paris --> <head> <title>CSS Test: SVG transform in baseVal list</title> <link rel="author" title="Rik Cabanier" href="mailto:cabanier@adobe.com"> <link rel="help" href="http://www.w3.org/TR/css-transforms-1/#transform-attribute-dom"> <link rel="match" href="reference/css-transforms-transformlist-ref.html"> <meta name="assert" content="This test verifies that the CSS transform does not end up in the list of SVG transforms"> <style type="text/css"> #rect { fill: green; transform: translate(10px, 10px); } #result { width:100px; height:100px; background-color: red; } </style> <script> window.addEventListener('load', function(){ var r = document.getElementById("rect"); var result = document.getElementById("result"); if (r.transform.baseVal.length == 0) result.style.backgroundColor = "green"; document.getElementById("svgelement").style.display="none"; }, false); </script> </head> <body> <p>The test passes if there is a green square and no red.</p> <svg id="svgelement"> <rect id="rect" style="transform: translate(20px, 20px)" width="100" height="100"></rect> </svg> <div id="result"></div> </body> </html>
/css/css-transforms/reference/css-transforms-transformlist-ref.html
<!DOCTYPE html> <html> <!-- Submitted from TestTWF Paris --> <head> <title>CSS Transforms Test: UNIQUE TEST DESCRIPTION</title> <link rel="author" title="Rik Cabanier" href="mailto:cabanier@adobe.com"> <style type="text/css"> #result { width:100px; height:100px; background-color: green; } </style> </head> <body> <p>The test passes if there is a green square and no red.</p> <div id="result"></div> </body> </html>