summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/filter-effects/filter-scaling-001.html
blob: d00c1ce8c4c606c088efc9322301f71a8d1ce0d5 (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
<!doctype html>
<title>CSS Test: Blur filter scaling.</title>
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
<link rel="author" title="Mozilla" href="https://mozilla.org">
<link rel="help" href="https://drafts.fxtf.org/filter-effects/#FilterProperty">
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1224207">
<link rel="match" href="filter-scaling-001-ref.html">
<style>
  * {
    margin: 0;
    padding: 0;
  }

  :root, #outer {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
  }

  #outer {
    transform-origin: 0 0;
    transform: scale(5);
  }

  #pad {
    /* So that scaling by five it takes half of the viewport */
    height: 10vh;
  }

  #filtered {
    filter: url(#blur);
    width: 100%;
    height: 10vh;
    background: green;
  }
</style>
<div id="outer">
  <div id="pad"></div>
  <div id="filtered"></div>
  <svg xmlns="http://www.w3.org/2000/svg" version="1.1">
    <defs>
      <filter id="blur">
        <feGaussianBlur in="SourceGraphic" stdDeviation="0,0"></feGaussianBlur>
      </filter>
    </defs>
  </svg>
</div>