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

Side by Side Diff: LayoutTests/fast/repaint/crbug-371640-3.html

Issue 285103003: [RAL] Make sure RenderLayers are invalidated when moved. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase to master Created 6 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="resources/text-based-repaint.js"></script>
5 <script src="../../resources/run-after-display.js"></script>
6 <script>
7 if (window.testRunner) {
8 window.jsTestIsAsync = true;
9 testRunner.waitUntilDone();
10 }
11
12 function repaintTest()
13 {
14 document.getElementById('remove').style.display='none';
15
16 if (window.testRunner) {
17 runAfterDisplay(function() {
18 testRunner.notifyDone();
19 });
20 }
21 }
22 onload = runRepaintTest;
23 </script>
24 <style>
25 #wrapper {
26 visibility: hidden;
27 position: absolute;
28 width: 600px;
29 float: right;
30 }
31 #container { float: right; }
32 #abs_pos {
33 position: absolute;
34 bottom: 0;
35 }
36 #remove_child,
37 #keep_child {
38 height: 100px;
39 width: 100px;
40 visibility: visible;
41 }
42 #remove_child {
43 background-color: red;
44 position: absolute;
45 }
46 #keep_child { background-color: green; }
47 .outer {
48 float: left;
49 width: 100px;
50 height: 300px;
51 }
52 #keep_inner {
53 position: relative;
54 height: 220px;
55 }
56 p { visibility: visible; }
57 </style>
58 </head>
59
60 <body>
61 <p>This is a reduction for http://crbug.com/371640.</p>
62 <p>If the test worked correctly you should see 1 green square and no red square .</p>
63
64 <div id='wrapper'>
65 <div id='container'>
66 <div id='keep_outer' class='outer'>
67 <div id='keep_inner'>
68 <div id='abs_pos'>
69 <div id='keep_child'> </div>
70 </div>
71 </div>
72 </div>
73 <div id='remove' class='outer'>
74 <div id='remove_child'> </div>
75 </div>
76 </div>
77 </div>
78 </body>
79 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698