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

Side by Side Diff: LayoutTests/paint/invalidation/spv2/clipping-should-not-repaint-composited-descendants-expected.html

Issue 1302183007: Convert some text-based-repaint tests for spv2 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <style> 2 <style>
3 .spacer { 3 .spacer {
4 position: relative; 4 position: relative;
5 width: 300px; 5 width: 300px;
6 height: 300px; 6 height: 300px;
7 } 7 }
8 8
9 .clipping-container { 9 .clipping-container {
10 position: absolute; 10 position: absolute;
11 height: 300px; 11 height: 300px;
12 transform: translateZ(0); 12 transform: translateZ(0);
13 } 13 width: 100%;
14 14 clip: rect(100px, 200px, 200px, 100px);
15 .with-initial-clipping {
16 clip: rect(50px, 250px, 250px, 50px);
17 } 15 }
18 16
19 .clipped-composited-child { 17 .clipped-composited-child {
20 width: 250px; 18 width: 250px;
21 height: 250px; 19 height: 250px;
22 background-color: yellow; 20 background-color: yellow;
23 border: 1px solid black; 21 border: 1px solid black;
24 transform: translateZ(0); 22 transform: translateZ(0);
25 } 23 }
26 </style> 24 </style>
27 <style id="alt1">
28 .clipping-container {
29 width: 300px;
30 }
31 </style>
32 <style id="alt2">
33 .clipping-container {
34 width: 100%;
35 clip: rect(100px, 200px, 200px, 100px);
36 }
37 </style>
38 <script src="../../fast/repaint/resources/text-based-repaint.js"></script>
39 <script>
40 var alt1 = document.getElementById('alt1');
41 var alt2 = document.getElementById('alt2');
42 alt2.disabled = true;
43
44 function repaintTest() {
45 alt2.disabled = false;
46 alt1.disabled = true;
47 }
48
49 runRepaintTest();
50 </script>
51
52 <div class="spacer"> 25 <div class="spacer">
53 <div class="clipping-container"> 26 <div class="clipping-container">
54 <div class="clipped-composited-child"></div> 27 <div class="clipped-composited-child"></div>
55 </div> 28 </div>
56 </div> 29 </div>
57 <div class="spacer"> 30 <div class="spacer">
58 <div class="clipping-container with-initial-clipping"> 31 <div class="clipping-container">
59 <div class="clipped-composited-child"></div> 32 <div class="clipped-composited-child"></div>
60 </div> 33 </div>
61 </div> 34 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698