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

Side by Side Diff: LayoutTests/paint/invalidation/spv2/overflow-hidden-in-overflow-hidden-scrolled-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 <html> 2 <html>
3 <head> 3 <head>
4 <link rel="stylesheet" href="resources/default.css"> 4 <link rel="stylesheet" href="../../../fast/repaint/resources/default.css">
5 <style> 5 <style>
6 #outer { 6 #outer {
7 position: relative; 7 position: relative;
8 overflow: hidden; 8 overflow: hidden;
9 height: 200px; 9 height: 200px;
10 } 10 }
11 11
12 section { 12 section {
13 padding: 192px 0 0 0; 13 padding: 192px 0 0 0;
14 width: 200px; 14 width: 200px;
15 } 15 }
16 16
17 div { 17 div {
18 height: 190px; 18 height: 190px;
19 } 19 }
20 20
21 .innerWrapper { 21 .innerWrapper {
22 overflow: hidden; 22 overflow: hidden;
23 } 23 }
24 24
25 .red { 25 .red {
26 background-color: red; 26 background-color: red;
27 } 27 }
28 28
29 .green { 29 .green {
30 background-color: green; 30 background-color: green;
31 } 31 }
32 </style> 32 </style>
33 <script src="resources/text-based-repaint.js"></script>
34 <script> 33 <script>
35 function repaintTest()
36 {
37 window.location.hash = "#ucp";
38 }
39
40 function runTest() 34 function runTest()
41 { 35 {
42 document.getElementById("outer").scrollTop = 1000; 36 document.getElementById("outer").scrollTop = 1000;
43 runRepaintTest();
44 } 37 }
45 </script> 38 </script>
46 </head> 39 </head>
47 <body onload="runTest()"> 40 <body onload="runTest()">
48 <!-- Bug 71550 - REGRESSION (r93614): Content remains despite parent element being scrolled off page using javascript. --> 41 <!-- Bug 71550 - REGRESSION (r93614): Content remains despite parent element being scrolled off page using javascript. -->
49 <!-- For the test to pass you should not see any RED, only green --> 42 <!-- For the test to pass you should not see any RED, only green -->
50 <div id="outer"> 43 <div id="outer">
51 <section> 44 <section>
52 <div class="innerWrapper"> 45 <div class="innerWrapper">
53 <div class="red"></div>
54 <div id="ucp" class="green"></div> 46 <div id="ucp" class="green"></div>
55 </div> 47 </div>
56 </section> 48 </section>
57 </div> 49 </div>
58 </body> 50 </body>
59 </html> 51 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698