OLD | NEW |
---|---|
(Empty) | |
1 <!doctype HTML> | |
2 <script src="../invalidation/resources/text-based-repaint.js"></script> | |
3 <div id=multicol style="columns:3;"> | |
4 <div style="height:300px; background:white;"> | |
5 </div> | |
6 </div> | |
7 <div style="width: 10px; height: 300px"></div> | |
8 <style> | |
9 .composited { | |
10 transform: translateZ(0); | |
11 } | |
12 </style> | |
13 <script> | |
14 if (window.internals) | |
15 window.internals.runtimeFlags.paintUnderInvalidationCheckingEnabled = true; | |
Xianzhu
2017/04/18 00:15:21
This is unnecessary because we always check for un
chrishtr
2017/04/18 21:13:13
Done.
| |
16 if (window.testRunner) | |
17 window.testRunner.waitUntilDone(); | |
Xianzhu
2017/04/18 00:15:21
Similar.
chrishtr
2017/04/18 21:13:13
Done.
| |
18 | |
19 function repaintTest() { | |
20 window.requestAnimationFrame(function() { | |
Xianzhu
2017/04/18 00:15:21
Is requestAnimationFrame necessary?
chrishtr
2017/04/18 21:13:13
Done. Good catches.
I seemed to need these in an e
| |
21 background.style.padding = "50px"; | |
22 }); | |
23 } | |
24 | |
25 window.testIsAsync = true; | |
26 onload = runRepaintTest; | |
27 </script> | |
28 <div class="composited" style="height:200px" id="background"> | |
Xianzhu
2017/04/18 00:15:21
Put all dom elements together (not separated by st
chrishtr
2017/04/18 21:13:13
Done.
| |
OLD | NEW |