blob: af04bb3e8d2422770ff04784cd5f6ef5ae89ffa2 [file] [log] [blame]
<!-- Based on fast/repaint/fixed-tranformed.html -->
<!DOCTYPE html>
<style type="text/css" media="screen">
body {
height: 1000px;
margin: 0;
#test {
width: 100px;
height: 100px;
background-color: red;
position: fixed;
top: 10px;
left: 10px;
transform: translate(50px, 50px);
.box:hover {
background-color: green;
<script src="resources/paint-invalidation-test.js" type="text/javascript"></script>
<script type="text/javascript">
function paintInvalidationTest()
function setupTest() {
window.scrollBy(0, 50);
window.addEventListener('load', setupTest, false);
Test repainting of a fixed-position element with a transform.
The box should be entirely green.
<div id="test"></div>