Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

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