author cku <>
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.
<html xmlns=""
<div style="position:absolute;left:10.5px;top:10.5px;">
  <svg  xmlns="" viewBox="0 0 800 100" width="800" height="100">
      <filter x="8" y="8" width="400" height="40" id="shift" filterUnits="userSpaceOnUse">
        <feOffset dx="0" dy="0"/>

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