blob: d6421fa33627bebab46b88d4b0e0b678f2ff2dcf [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);
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>
<body>
This tests that reference clip-path is applied with composited scrolling. If the content and
scrollbars are properly clipped, this test passes.
<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>