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

Side by Side Diff: LayoutTests/fast/repaint/crbug-371640-2.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 var container = document.getElementById('container');
15 var node = document.getElementById('node');
16 container.removeChild(node);
17
18 if (window.testRunner) {
19 runAfterDisplay(function() {
20 testRunner.notifyDone();
21 });
22 }
23 }
24 onload = runRepaintTest;
25 </script>
26
27 <style>
28 #wrapper {
29 visibility: hidden;
30 position: absolute;
31 width: 600px;
32 }
33 .outer { float: left; }
34 .inner {
35 float: left;
36 height: 100px;
37 position: relative;
38 width: 260px;
39 }
40 .abs_pos { position: absolute; }
41 #container { float: right; }
42 .item {
43 visibility: visible;
44 background-color: green;
45 width: 100px;
46 height: 100px;
47 }
48 #node .item { background-color: red; }
49 </style>
50 </head>
51 <body>
52 <p>This is a reduction for http://crbug.com/371640.</p>
53 <p>If the test worked correctly you should see 1 green square and no red square .</p>
54
55 <div id='wrapper'>
56 <div id='container'>
57 <div id='keep_outer' class='outer'>
58 <div>
59 <div id='keep_inner' class='inner'>
60 <div class='abs_pos'>
61 <div id='keep' class='item'> </div>
62 </div>
63 </div>
64 </div>
65 </div>
66
67 <div id='node' class='outer'>
68 <div id='to_remove_inner' class='inner'>
69 <div id='to_remove' class='item'> </div>
70 </div>
71 </div>
72 </div>
73 </div>
74 </body>
75 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698