blob: 6f382d6eaec84fc9e4068fa7121643b35fcd1f35 [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">
window.expectedPaintInvalidationObjects = [
"LayoutBlockFlow (positioned) DIV id='test'",
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>