summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-images/gradient-border-box.html
blob: 2938c5ea99e1e41c64c1d58e69806270318bccf9 (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
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>Gradient Background aligned to Content Box</title>
  <link rel="help" href="https://www.w3.org/TR/css-backgrounds-3/#the-background-origin">
  <link rel="match" href="gradient-border-box-ref.html">
  <meta name="assert" content="The background-origin: border-box; statement is understood.">
  <style>
#x {
  background-origin: border-box;
  width: 200px;
  height: 200px;
  border-style: solid;
  border-width: 40px;
  border-color: transparent;
  background-image: repeating-linear-gradient(to bottom right, white, black, white 30px);
}
  </style>
</head>
<body>
  <div id="x"></div>
</body>
</html>