wpt / css / css-images / conic-gradient-center.html

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

/css/css-images/conic-gradient-center.html

<!doctype html>
<meta charset="utf-8">
<title>Conic gradient with custom center parameter</title>
<link rel="author" title="Tim Nguyen" href="https://github.com/nt1m">
<link rel="help" href="https://drafts.csswg.org/css-images-4/#conic-gradients">
<meta name="assert" content="Rendering of conic-gradient with custom center parameter">
<meta name="fuzzy" content="maxDifference=0-1;totalPixels=0-40000">
<link rel="match" href="conic-gradient-center-ref.html">
<style>
  #gradient {
    width: 200px;
    height: 200px;
    background-image: conic-gradient(at 25% 25%, red 0 25%, green 25% 50%, blue 50% 75%, black 75% 100%);
  }
</style>
<div id="gradient"></div>

/css/css-images/conic-gradient-center-ref.html

<!doctype html>
<meta charset="utf-8">
<style>
  #box {
    width: 200px;
    height: 200px;
  }
  #top {
    border-left: 50px solid black;
    border-right: 150px solid red;
    height: 50px;
  }
  #bottom {
    border-left: 50px solid blue;
    border-right: 150px solid green;
    height: 150px;
  }
</style>
<div id="box">
  <div id="top"></div>
  <div id="bottom"></div>
</div>