summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/canvas/element/layers/2d.layer.ctm.filter-expected.html
blob: 5fc1ac9acd5ec1b6132fb57a0c34e74a835f3372 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<!DOCTYPE html>
<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->
<title>Canvas test: 2d.layer.ctm.filter</title>
<h1>2d.layer.ctm.filter</h1>
<p class="desc">Checks that parent transforms affect layer filters.</p>

<svg xmlns="http://www.w3.org/2000/svg"
      width="200" height="200"
      color-interpolation-filters="sRGB">
  <filter id="filter" x="-100%" y="-100%" width="300%" height="300%">
    <feDropShadow dx="5" dy="5" stdDeviation="0" flood-color="grey" />
  </filter>

  <g filter="url(#filter)">
    <g transform="translate(30, 90) scale(2) rotate(90)">
      <rect x="-30" y="-5" width=60 height=10></rect>
    </g>
  </g>

  <g transform="translate(80, 90) scale(2) rotate(90)">
    <g filter="url(#filter)">
      <rect x="-30" y="-5" width=60 height=10></rect>
    </g>
  </g>
</svg>