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

Side by Side Diff: LayoutTests/fast/repaint/crbug-371640.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>
ojan 2014/05/24 05:14:29 We usually leave out the html, head and body eleme
dsinclair 2014/05/26 14:57:25 Done.
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();
ojan 2014/05/24 05:14:29 You don't need both these lines. Just the first wi
dsinclair 2014/05/26 14:57:25 Done.
10 }
11
12 function repaintTest()
13 {
14 var container = document.getElementById('container');
15 var node = document.getElementById('node');
16 container.removeChild(node);
ojan 2014/05/24 05:14:29 Nit: this can all just be: document.getElementById
dsinclair 2014/05/26 14:57:25 Done.
17
18 if (window.testRunner) {
19 runAfterDisplay(function() {
20 testRunner.notifyDone();
21 });
22 }
23 }
24 onload = runRepaintTest;
25 </script>
26 <style>
27 #wrapper {
28 visibility: hidden;
29 position: absolute;
30 width: 600px;
31 }
32 .outer { float: left; }
33 .inner {
34 float: left ;
35 height: 100px;
36 position: relative;
37 width: 260px;
38 }
39 .abs_pos { position: absolute; }
40 #container { float: right; }
41 .item {
42 visibility: visible;
43 background-color: green;
44 width: 100px;
45 height: 100px;
46 }
47 #node .item { background-color: red; }
48 </style>
49 </head>
50 <body>
51 <p>This is a reduction for http://crbug.com/371640.</p>
52 <p>If the test worked correctly you should see 1 green square and no red square .</p>
53
54 <div id='wrapper'>
55 <div id='container'>
56 <div id='keep_outer' class="outer">
57 <div id='keep_inner' class="inner">
58 <div class="abs_pos">
59 <div id='keep' class="item">&nbsp;</div>
60 </div>
61 </div>
62 </div>
63
64 <div id='node' class="outer">
65 <div id='to_remove_inner' class="inner">
66 <div id='to_remove' class="item">&nbsp;</div>
67 </div>
68 </div>
69 </div>
70 </div>
71 </body>
72 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/repaint/crbug-371640-2.html » ('j') | Source/core/rendering/RenderBlock.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698