blob: f24e9d0dba50d365877a6cdaea6e903ddcbd939f (
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
<!DOCTYPE html>
<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->
<title>Canvas test: 2d.filter.layers.gaussianBlur</title>
<h1 style="font-size: 20px;">2d.filter.layers.gaussianBlur</h1>
<p class="desc">Test CanvasFilter() with gaussianBlur.</p>
<div style="display: grid; grid-gap: 4px;
grid-template-columns: repeat(5, max-content);
font-size: 13px; text-align: center;">
<span>
<div>x-only</div>
<div style="width: 100px; height: 100px; outline: 1px solid">
<svg xmlns="http://www.w3.org/2000/svg"
width="100" height="100"
color-interpolation-filters="sRGB">
<filter id="blur0" x="-50%" y="-50%" width="200%" height="200%">
<feGaussianBlur stdDeviation="4 0" />
</filter>
<rect x="25" y="25" width="50" height="50"
fill="teal" filter="url(#blur0)" />
</svg>
</div>
</span>
<span>
<div>mostly-x</div>
<div style="width: 100px; height: 100px; outline: 1px solid">
<svg xmlns="http://www.w3.org/2000/svg"
width="100" height="100"
color-interpolation-filters="sRGB">
<filter id="blur1" x="-50%" y="-50%" width="200%" height="200%">
<feGaussianBlur stdDeviation="4 1" />
</filter>
<rect x="25" y="25" width="50" height="50"
fill="teal" filter="url(#blur1)" />
</svg>
</div>
</span>
<span>
<div>isotropic</div>
<div style="width: 100px; height: 100px; outline: 1px solid">
<svg xmlns="http://www.w3.org/2000/svg"
width="100" height="100"
color-interpolation-filters="sRGB">
<filter id="blur2" x="-50%" y="-50%" width="200%" height="200%">
<feGaussianBlur stdDeviation="4 4" />
</filter>
<rect x="25" y="25" width="50" height="50"
fill="teal" filter="url(#blur2)" />
</svg>
</div>
</span>
<span>
<div>mostly-y</div>
<div style="width: 100px; height: 100px; outline: 1px solid">
<svg xmlns="http://www.w3.org/2000/svg"
width="100" height="100"
color-interpolation-filters="sRGB">
<filter id="blur3" x="-50%" y="-50%" width="200%" height="200%">
<feGaussianBlur stdDeviation="1 4" />
</filter>
<rect x="25" y="25" width="50" height="50"
fill="teal" filter="url(#blur3)" />
</svg>
</div>
</span>
<span>
<div>y-only</div>
<div style="width: 100px; height: 100px; outline: 1px solid">
<svg xmlns="http://www.w3.org/2000/svg"
width="100" height="100"
color-interpolation-filters="sRGB">
<filter id="blur4" x="-50%" y="-50%" width="200%" height="200%">
<feGaussianBlur stdDeviation="0 4" />
</filter>
<rect x="25" y="25" width="50" height="50"
fill="teal" filter="url(#blur4)" />
</svg>
</div>
</span>
</div>
|