wpt / svg / layout / svg-use-symbol-animateTransform-print.html

Status: FAIL | Duration: 9ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/svg/layout/svg-use-symbol-animateTransform-print.html

<!doctype html>
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1843883">
<link rel="match" href="svg-use-symbol-animateTransform-print-ref.html">
<html>
<head>
<style>
 body { margin: 0 }
</style>
</head>
<body>
<!-- Should see a blue square inside the top left quarter of a purple square -->
<svg width=200 height=200 viewBox="0 0 200 200">
  <defs>
    <symbol id="r" viewBox="0 0 200 200">
      <rect fill="blue" x="-40" width=100 height=100>
        <animateTransform attributeName="transform" dur="1s" fill="freeze" type="translate" from="40,0" to="40,0" />
      </rect>
    </symbol>
  </defs>
  <rect fill="purple" width=100 height=100 />
  <use href="#r" width="100" height="100" />
</svg>
</body>
</html>

/svg/layout/svg-use-symbol-animateTransform-print-ref.html

<!doctype html>
<html>
<style>
 body { margin: 0 }
</style>
<body>
<svg width=200 height=200 viewBox="0 0 200 200">
  <rect fill="purple" width=100 height=100 />
  <rect fill="blue" width=50 height=50 />
</svg>
</body>
</html>