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

Side by Side Diff: third_party/WebKit/LayoutTests/compositing/repaint/should-not-repaint-composited-descendants.html

Issue 1972273002: Let repaint tests test pixels by default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 <style> 2 <style>
3 #composited-box { 3 #composited-box {
4 backface-visibility: hidden; 4 backface-visibility: hidden;
5 position: absolute; 5 position: absolute;
6 background-color: green; 6 background-color: green;
7 clip: rect(40px, 110px, 110px, 40px); 7 clip: rect(40px, 110px, 110px, 40px);
8 } 8 }
9 .child { 9 .child {
10 width: 50px; 10 width: 50px;
11 height: 50px; 11 height: 50px;
12 background-color: green; 12 background-color: green;
13 } 13 }
14 .composited { 14 .composited {
15 backface-visibility: hidden; 15 backface-visibility: hidden;
16 } 16 }
17 </style> 17 </style>
18 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> 18 <script src="../../fast/repaint/resources/repaint.js"></script>
19 <script> 19 <script>
20 function repaintTest() { 20 function repaintTest() {
21 // This will cause a full layer repaint, but should not include the composit ed child. 21 // This will cause a full layer repaint, but should not include the composit ed child.
22 document.getElementById('composited-box').style.clip = 'rect(30px, 120px, 12 0px, 30px)'; 22 document.getElementById('composited-box').style.clip = 'rect(30px, 120px, 12 0px, 30px)';
23 } 23 }
24 window.onload = runRepaintTest; 24 window.onload = runRepaintTest;
25 </script> 25 </script>
26 <div id="composited-box"> 26 <div id="composited-box">
27 <div class="child"></div> 27 <div class="child"></div>
28 <div class="composited child"></div> 28 <div class="composited child"></div>
29 </div> 29 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698