summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/canvas/element/filters/2d.filter.canvasFilterObject.dropShadow.tentative-expected.html
blob: 86c5710132f348bd3e2332983d7211f4b3315cdb (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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<!DOCTYPE html>
<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->
<title>Canvas test: 2d.filter.canvasFilterObject.dropShadow.tentative</title>
<h1>2d.filter.canvasFilterObject.dropShadow.tentative</h1>
<p class="desc">Test CanvasFilter() dropShadow object.</p>

<svg xmlns="http://www.w3.org/2000/svg"
     width=520 height=420
     color-interpolation-filters="sRGB">
  <rect x=0 y=0 width=100% height=50 fill="teal" />
  <rect x=0 y=100 width=100% height=50 fill="teal" />
  <rect x=0 y=200 width=100% height=50 fill="teal" />
  <rect x=0 y=300 width=100% height=50 fill="teal" />

  <rect x=10 y=10 width=80 height=80 fill="crimson"
        filter="drop-shadow(2px 2px 2px black)"/>
  <rect x=110 y=10 width=80 height=80 fill="crimson"
        filter="drop-shadow(9px 12px 5px rgba(128, 0, 128, 0.7))"/>

  <rect x=10 y=110 width=80 height=80 fill="crimson"
        filter="drop-shadow(9px 12px 3px purple)"/>
  <rect x=110 y=110 width=80 height=80 fill="crimson"
        filter="drop-shadow(9px 12px 3px LinkText)"/>
  <rect x=210 y=110 width=80 height=80 fill="crimson"
        filter="drop-shadow(9px 12px 3px rgba(20, 50, 130, 1))"/>
  <rect x=310 y=110 width=80 height=80 fill="crimson"
        filter="drop-shadow(9px 12px 3px rgba(20, 50, 130, 0.7))"/>
  <rect x=410 y=110 width=80 height=80 fill="crimson"
        filter="drop-shadow(9px 12px 3px rgba(20, 50, 130, 0.49))"/>

  <rect x=10 y=210 width=80 height=80 fill="crimson"
        filter="drop-shadow(9px 12px 0px purple)"/>
  <rect x=110 y=210 width=80 height=80 fill="crimson"
        filter="drop-shadow(9px 12px 5px purple)"/>
  <rect x=210 y=210 width=80 height=80 fill="crimson"
        filter="drop-shadow(9px 12px 0px purple)"/>
  <filter id="separable-filter"
          x="-100%" y="-100%" width="300%" height="300%">
    <feDropShadow dx=9 dy=12 stdDeviation="3 5" flood-color="purple"/>
  </filter>
  <rect x=310 y=210 width=80 height=80 fill="crimson"
        filter="url(#separable-filter)"/>
  <rect x=410 y=210 width=80 height=80 fill="crimson"
        filter="drop-shadow(9px 12px 0px purple)"/>

  <rect x=10 y=310 width=80 height=80 fill="crimson"
        filter="drop-shadow(-5px 0px 0px purple)"/>
  <filter id="separable-filter-degenerate"
          x="-100%" y="-100%" width="300%" height="300%">
    <feDropShadow dx=0 dy=5 stdDeviation="0 3"
        flood-color="rgba(128, 0, 128, 0.8)"/>
  </filter>
  <rect x=110 y=310 width=80 height=80 fill="crimson"
        filter="url(#separable-filter-degenerate)"/>
  <rect x=210 y=310 width=80 height=80 fill="crimson"
        filter="drop-shadow(1px 10px 0px rgba(128, 0, 128, 0.4))"/>
</svg>