blob: 9ac8cb86ade116afcbd10b433ee52ff36ad1d3ac [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<style>
.clip-path {
-webkit-clip-path: polygon(61px 237px,9px 313px,115px 386px,621px 356px,280px 339px,505px 187px,414px 61px,164px 143px,84px 42px,2px 189px);
clip-path: polygon(61px 237px,9px 313px,115px 386px,621px 356px,280px 339px,505px 187px,414px 61px,164px 143px,84px 42px,2px 189px);
overflow: scroll;
}
.outer {
height: 400px;
width: 400px;
background-color: blue;
}
.inner {
height: 500px;
width: 500px;
background-color: yellow;
}
.spacer {
width: 100px;
height: 100px;
background-color: green;
}
.bottom {
position: relative;
top: 250px;
}
</style>
<script>
if (window.internals)
internals.settings.setPreferCompositingToLCDTextEnabled(true);
</script>
</head>
<!-- This tests that clip-path is applied with composited scrolling. If the content and scrollbars
are properly clipped, this test passes. -->
<body>
<div class="clip-path outer" id="outer">
<div class="spacer"></div>
<div class="inner">
<div class="spacer bottom"></div>
</div>
<div class="spacer"></div>
</div>
</body>
</html>