blob: e5f5efc67746a8e49d5cfc5f6a2524d5264cc95f [file] [log] [blame]
<!DOCTYPE HTML>
<script src="../../resources/run-after-layout-and-paint.js"></script>
<style>
#scroller {
overflow: scroll;
height: 300px;
width: 300px;
background-color: red;
}
#inner {
height: 1000px;
width: 250px;
background-color: blue;
}
#fixed {
position: fixed;
height: 100px;
width: 100px;
background-color: green;
top: 400px;
left: 100px;
}
</style>
<div id="scroller">
<div id="inner">
<div id="fixed"></div>
</div>
</div>
<script>
if (window.internals)
internals.settings.setPreferCompositingToLCDTextEnabled(true);
onload = function() {
runAfterLayoutAndPaint(function() {
inner.style.clipPath = "polygon(40px 550px,432px 302px,409px 237px,46px 156px)";
}, true);
};
</script>