blob: e00c5e65f826c85280d8c34097bb0cce615861c6 [file] [edit]
<!DOCTYPE html>
<html>
<head>
<style>
.test {
margin: 20px;
width: 100px;
height: 100px;
background-color: green;
box-shadow: yellow 0 0 0 200px;
clip-path: inset(0px -100px 0px 0px);
}
body.changed .test {
box-shadow: yellow 0 0 0 1500px;
}
.composited {
transform: translateZ(0);
}
</style>
<script src="../../resources/ui-helper.js"></script>
<script>
if (window.testRunner)
testRunner.waitUntilDone();
window.addEventListener('load', async () => {
await UIHelper.renderingUpdate();
document.body.classList.add('changed');
if (window.testRunner)
testRunner.notifyDone();
}, false);
</script>
</head>
<body>
<p>There should be a green square next to a yellow square</p>
<div class="composited test">&nbsp;</div>
</body>
</html>