45 lines
842 B
HTML
45 lines
842 B
HTML
<!DOCTYPE html>
|
|
|
|
<html>
|
|
<head>
|
|
<style>
|
|
.box {
|
|
margin: 10px;
|
|
height: 50px;
|
|
width: 50px;
|
|
background-color: green;
|
|
}
|
|
|
|
.before {
|
|
background-color: red;
|
|
}
|
|
|
|
.sepia {
|
|
margin: 50px;
|
|
-webkit-filter: sepia();
|
|
}
|
|
</style>
|
|
|
|
<script src="../../fast/repaint/resources/repaint.js"></script>
|
|
<script>
|
|
if (window.testRunner)
|
|
testRunner.dumpAsText(true);
|
|
|
|
function repaintTest()
|
|
{
|
|
document.querySelector(".before").classList.remove("before");
|
|
}
|
|
</script>
|
|
</head>
|
|
|
|
<body onload="runRepaintTest()">
|
|
|
|
<div class="sepia">
|
|
<div class="box"></div>
|
|
<div class="box before"></div>
|
|
<div class="box"></div>
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|