blob: d765a4dfe7caf4542c452c0b9c18cc7d72bb48d2 [file] [log] [blame]
<!-- Based on compositing/repaint/invalidations-on-composited-layers.html -->
<!DOCTYPE html>
This test checks that repaint testing works with composited layers.
<style type="text/css">
#parent {
transform: translateZ(0px);
width: 400px;
height: 400px;
background: blue;
#child {
transform: translateZ(0px);
position: relative;
left: 50px;
top: 50px;
width: 75px;
height: 75px;
background: green;
<script src="resources/paint-invalidation-test.js"></script>
window.expectedPaintInvalidationObjects = [
"LayoutBlockFlow DIV id='parent'",
"LayoutBlockFlow (relative positioned) DIV id='child'",
function paintInvalidationTest() {
var parent = document.getElementById('parent');
var child = document.getElementById('child'); = 'blue'; = 'green';
<div id="parent">
<div id="child"></div>