Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<html>
<head>
<title>CSS Masking: Test clip-path property and xywh function</title>
<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>