22 lines
441 B
HTML
22 lines
441 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>This tests proper clip-path masking when content is on subpixel position and the parent is composited too.</title>
|
|
<style>
|
|
.clip-path-content {
|
|
transform: translateZ(0);
|
|
position: relative;
|
|
left: 1px;
|
|
top: 0px;
|
|
height: 50px;
|
|
width: 100px;
|
|
background-color: black;
|
|
-webkit-clip-path: inset(20px 0px 0px 0px);
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class=clip-path-content></div>
|
|
</body>
|
|
</html>
|