1
0
Fork 0
firefox/testing/web-platform/tests/css/css-masking/clip-path/clip-path-rect-004.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

29 lines
755 B
HTML

<!DOCTYPE html>
<html>
<head>
<title>CSS Masking: Test clip-path property and rect function</title>
<link rel="help" href="https://drafts.csswg.org/css-shapes-1/#funcdef-basic-shape-rect">
<link rel="match" href="reference/green-100x100.html">
<meta name="assert" content="The clip-path property takes the basic shape
'rect()' for clipping. On pass you should see a green rect without any red.">
</head>
<style>
#background {
position: absolute;
width: 100px;
height: 100px;
background-color: green;
}
#rect {
position: absolute;
width: 100px;
height: 100px;
background-color: red;
clip-path: rect(50px 0 0 50px);
}
</style>
<body>
<div id="background"></div>
<div id="rect"></div>
</body>
</html>