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

Side by Side Diff: third_party/WebKit/LayoutTests/paint/invalidation/spv2/should-not-repaint-composited-descendants-as-text.html

Issue 1366763002: Text expectations of paint/invalidation/spv2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 <!-- Based on compositing/repaint/should-not-repaint-composited-descendants.html --> 1 <!-- Based on compositing/repaint/should-not-repaint-composited-descendants.html -->
2 <!DOCTYPE html> 2 <!DOCTYPE html>
3 <style> 3 <style>
4 #composited-box { 4 #composited-box {
5 backface-visibility: hidden; 5 backface-visibility: hidden;
6 position: absolute; 6 position: absolute;
7 background-color: green; 7 background-color: green;
8 clip: rect(40px, 110px, 110px, 40px); 8 clip: rect(40px, 110px, 110px, 40px);
9 } 9 }
10 .child { 10 .child {
11 width: 50px; 11 width: 50px;
12 height: 50px; 12 height: 50px;
13 background-color: green; 13 background-color: green;
14 } 14 }
15 .composited { 15 .composited {
16 backface-visibility: hidden; 16 backface-visibility: hidden;
17 } 17 }
18 </style> 18 </style>
19 <script src="resources/paint-invalidation-test.js"></script> 19 <script src="resources/paint-invalidation-test.js"></script>
20 <script> 20 <script>
21 window.expectedPaintInvalidationObjects = [ 21 if (window.testRunner)
22 "##ALL##", 22 testRunner.dumpAsText();
23 "LayoutBlockFlow (positioned) DIV id='composited-box'",
24 "LayoutBlockFlow DIV class='child'",
25 ];
26 function paintInvalidationTest() { 23 function paintInvalidationTest() {
27 // This will cause a full layer repaint, but should not include the composit ed child. 24 // This will cause a full layer repaint, but should not include the composit ed child.
28 document.getElementById('composited-box').style.clip = 'rect(30px, 120px, 12 0px, 30px)'; 25 document.getElementById('composited-box').style.clip = 'rect(30px, 120px, 12 0px, 30px)';
29 } 26 }
30 window.onload = runPaintInvalidationTest; 27 window.onload = runPaintInvalidationTest;
31 </script> 28 </script>
32 <div id="composited-box"> 29 <div id="composited-box">
33 <div class="child"></div> 30 <div class="child"></div>
34 <div class="composited child"></div> 31 <div class="composited child"></div>
35 </div> 32 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698