summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/gradients/unprefixed-radial-gradients.html
blob: 4e0791eaddfb129ed12c057bd9eb4c4c273b46b0 (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
<!DOCTYPE html>

<html>
<head>
  <style>
    .box {
      display: inline-block;
      height: 120px;
      width: 200px;
      margin: 10px;
      border: 1px solid black;
      background-repeat: no-repeat;
    }

    .gradient1 {
      background-image: radial-gradient(ellipse closest-corner, white, black);
    }

    .gradient2 {
      background-image: radial-gradient(circle closest-side at 50px 50%, white, black);
    }
    
    .gradient3 {
      background-image: radial-gradient(ellipse closest-corner at 20px 50px, white, black);
    }

    .gradient4 {
      background-image: radial-gradient(circle closest-corner at 20% 20%, white, black);
    }

    .gradient5 {
      background-image: radial-gradient(circle farthest-corner, red, green, blue);
    }

    .gradient6 {
      background-image: radial-gradient(circle farthest-corner at left, red, green 30%, blue 100%);
    }

    .gradient7 {
      background-image: radial-gradient(ellipse farthest-corner, red, green 80px, blue);
    }

    .gradient8 {
      background-image: radial-gradient(circle farthest-corner, red 20%, green, blue 150%);
    }

    .gradient9 {
      background-image: radial-gradient(circle closest-corner at 20% 20%, red -50%, green, blue 150%);
    }

  </style>
  <script>
    if (window.testRunner) {
      testRunner.dumpAsTextWithPixelResults();
    }
  </script>
</head>
<body>

  <div class="gradient1 box"></div>
  <div class="gradient2 box"></div>
  <div class="gradient3 box"></div>
  <br>
  <div class="gradient4 box"></div>
  <div class="gradient5 box"></div>
  <div class="gradient6 box"></div>
  <br>
  <div class="gradient7 box"></div>
  <div class="gradient8 box"></div>
  <div class="gradient9 box"></div>

</body>
</html>