wpt / css / css-images / gradient-border-box.html

Status: PASS | Duration: 5ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/css-images/gradient-border-box.html

<!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="fuzzy" content="maxDifference=0-1; totalPixels=0-2500" />
  <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>

/css/css-images/gradient-border-box-ref.html

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <style>
#x {
  width: 280px;
  height: 280px;
  background-image: repeating-linear-gradient(to bottom right, white, black, white 30px);
}
  </style>
</head>
<body>
  <div id="x"></div>
</body>
</html>