layout/reftests/svg/svg-integration/filter-pixel-snap.xhtml
author cku <cku@mozilla.com>
Wed, 16 Aug 2017 00:16:30 +0800
changeset 646652 e83fb06d070f8560d8f9cd88a0e2c4c8e3018941
permissions -rw-r--r--
Bug 852100 - Part 2. A test case for varifying pixel snap with svg filter. MozReview-Commit-ID: 67QnlEYYTBl

<!--
     Any copyright is dedicated to the Public Domain.
     http://creativecommons.org/publicdomain/zero/1.0/
-->
<html xmlns="http://www.w3.org/1999/xhtml"
     xmlns:svg="http://www.w3.org/2000/svg"
     xmlns:xlink="http://www.w3.org/1999/xlink">
<body>
<div style="position:absolute;left:10.5px;top:10.5px;">
  <svg  xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 100" width="800" height="100">
    <defs>
      <filter x="8" y="8" width="400" height="40" id="shift" filterUnits="userSpaceOnUse">
        <feOffset dx="0" dy="0"/>
      </filter>

      <g id="shape">
        <rect x="10" y="10" width ="60" height="20" stroke="green" stroke-width="1" fill="lightgreen"/>
      </g>
    </defs>
    <g>
      <use xlink:href="#shape"/>
      <g transform="translate(100 0)" filter="url(#shift)">
        <use xlink:href="#shape"/>
      </g>
    </g>
  </svg>
</div>
</body>
</html>