wpt / css / css-masking / clip-path / clip-path-xywh-003.html

Status: FAIL | Duration: 10ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/css-masking/clip-path/clip-path-xywh-003.html

<!DOCTYPE html>
<html>
<head>
  <title>CSS Masking: Test clip-path property and xywh function</title>
  <link rel="help" href="https://drafts.csswg.org/css-shapes-1/#funcdef-basic-shape-xywh">
  <link rel="match" href="reference/clip-path-xywh-003-ref.html">
  <meta name=fuzzy content="maxDifference=0-62;totalPixels=0-250">
  <meta name="assert" content="The clip-path property takes the basic shape
	'xywh()' for clipping. On pass you should see a green rect with round.">
</head>
<style>
  #rect {
    width: 400px;
    height: 200px;
    background-color: green;
    clip-path: xywh(50px 50px 150px 100px round 20px / 20px);
  }
</style>
<body>
  <p>The test passes if there is a green box with round.</p>
  <div id="rect"></div>
</body>
</html>

/css/css-masking/clip-path/reference/clip-path-xywh-003-ref.html

<!DOCTYPE html>
<title>CSS Reftest Reference for xywh()</title>
<style>
#box {
  margin-left: 50px;
  margin-top: 50px;
  position: absolute;
  width: 150px;
  height: 100px;
  background-color: green;
  border-radius: 20px / 20px;
}
</style>
<body>
  <p>The test passes if there is a green box with round.</p>
  <div id="box"></div>
</body>