Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(41)

Side by Side Diff: third_party/WebKit/LayoutTests/paint/invalidation/multi-subsequence-composited.html

Issue 1391753005: (WIP) Invalidation during painting (for synchronized painting) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 Tests interference between different subsequences with compositing. Passes if no red. 2 Tests interference between different subsequences with compositing. Passes if no red.
3 <div id="container" style="position: absolute; width: 300px; height: 200px"> 3 <div id="container" style="position: absolute; width: 300px; height: 200px">
4 <div id="composited-content1" style="position: absolute; top: 0; left: 0; back face-visibility: hidden"> 4 <div id="composited-content1" style="position: absolute; top: 0; left: 0; back face-visibility: hidden">
5 <div id="content1a" style="position: absolute; top: 0; left: 0; width: 100px ; height: 100px; background-color: red"></div> 5 <div id="content1a" style="position: absolute; top: 0; left: 0; width: 100px ; height: 100px; background-color: red"></div>
6 </div> 6 </div>
7 <div id="content2" style="position: absolute; top: 0; left: 100px; width: 100p x; height: 100px; background-color: red"></div> 7 <div id="content2" style="position: absolute; top: 0; left: 100px; width: 100p x; height: 100px; background-color: red"></div>
8 </div> 8 </div>
9 <script src="../../resources/run-after-layout-and-paint.js"></script> 9 <script src="../../resources/run-after-layout-and-paint.js"></script>
10 <script> 10 <script>
11 onload = function() { 11 onload = function() {
12 if (window.testRunner) 12 if (window.testRunner)
13 testRunner.waitUntilDone(); 13 testRunner.waitUntilDone();
14 runAfterLayoutAndPaint(function() { 14 runAfterLayoutAndPaint(function() {
15 console.log('XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX');
15 content1a.style.backgroundColor = 'green'; 16 content1a.style.backgroundColor = 'green';
16 runAfterLayoutAndPaint(function() { 17 runAfterLayoutAndPaint(function() {
17 content2.style.backgroundColor = 'green'; 18 content2.style.backgroundColor = 'green';
18 if (window.testRunner) 19 if (window.testRunner)
20 testRunner.setCustomTextOutput(window.internals.layerTreeAsText(document , 0xffffffff));
19 testRunner.notifyDone(); 21 testRunner.notifyDone();
20 }); 22 });
21 }); 23 });
22 }; 24 };
23 </script> 25 </script>
24 26
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698