summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-contain/container-queries/container-units-gradient-ref.html
blob: dbdabd9bc4ecee3eec34406e7fd13a1e04141978 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!DOCTYPE html>
<style>
  .container {
    width: 400px;
    height: 300px;
    display: flex;
    flex-wrap: wrap;
  }
  .box {
    width: 100px;
    height: 100px;
    margin: 5px;
  }
</style>
<div class=container>
  <div class=box style="background:linear-gradient(green 20px, blue 30px)"></div>
  <div class=box style="background:linear-gradient(green 20px, blue 30px)"></div>
  <div class=box style="background:linear-gradient(green 15px, blue 40px)"></div>
  <div class=box style="background:radial-gradient(green 20px, blue 30px)"></div>
  <div class=box style="background:conic-gradient(from 180deg at 30px, green, blue);"></div>
</div>