blob: c06f95e61c8b7f0f7db7f50646d03479421733a0 [file] [log] [blame]
<!DOCTYPE html>
<style>
.green {
background-color: green;
}
.box {
width: 200px;
height: 200px;
position: absolute;
left: 300px;
}
.reflected {
-webkit-box-reflect: right 50px;
}
</style>
<!--
This test checks that we correctly invalidate reflection when they are removed.
There should be only one green box below.
-->
<div class="green reflected box" id="box"></div>
<script src="resources/text-based-repaint.js"></script>
<script>
function repaintTest() {
var box = document.getElementById('box');
box.classList.toggle('reflected');
}
window.onload = runRepaintTest;
</script>