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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/repaint/crbug-371640-4-expected.html

Issue 1994373002: Convert some repaint tests into ref tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="resources/text-based-repaint.js"></script>
3 <script>
4 function repaintTest()
5 {
6 document.getElementById('node').remove();
7 }
8 onload = runRepaintTest;
9 </script>
10 <style> 2 <style>
11 #wrapper { 3 #wrapper {
12 visibility: hidden; 4 visibility: hidden;
13 position: absolute; 5 position: absolute;
14 width: 600px; 6 width: 600px;
15 } 7 }
16 .outer { 8 .outer {
17 display: inline; 9 display: inline;
18 position: relative; 10 position: relative;
19 float: right; 11 float: right;
20 width: 100px; 12 width: 100px;
21 height: 100px; 13 height: 100px;
22 margin-right: 100px; 14 margin-right: 100px;
23 } 15 }
24 .inner { 16 .inner {
25 float: left; 17 float: left;
26 height: 100px; 18 height: 100px;
27 position: relative; 19 position: relative;
28 width: 100px; 20 width: 100px;
29 } 21 }
30 .abs_pos { position: absolute; } 22 .abs_pos { position: absolute; }
31 #container { float: right; width: 500px} 23 #container { float: right; width: 500px}
32 .item { 24 .item {
33 visibility: visible; 25 visibility: visible;
34 background-color: green; 26 background-color: green;
35 width: 100px; 27 width: 100px;
36 height: 100px; 28 height: 100px;
37 } 29 }
38 #node .item { background-color: red; }
39 </style> 30 </style>
40 31
41 <p>This is a reduction for http://crbug.com/371640.</p> 32 <p>This is a reduction for http://crbug.com/371640.</p>
42 <p>The test PASSES if you see 1 green square and no red square.</p> 33 <p>The test PASSES if you see 1 green square and no red square.</p>
43 34
44 <div id='wrapper'> 35 <div id='wrapper'>
45 <div id='container'> 36 <div id='container'>
46 <div id='node' class="outer">
47 <div id='to_remove_inner' class="inner">
48 <div id='to_remove' class="item">&nbsp;</div>
49 </div>
50 </div>
51 <div id='keep_outer' class="outer"> 37 <div id='keep_outer' class="outer">
52 <div class='abs_pos'> 38 <div class='abs_pos'>
53 <div id='keep_inner' class="inner"> 39 <div id='keep_inner' class="inner">
54 <div id='keep' class="item">&nbsp;</div> 40 <div id='keep' class="item">&nbsp;</div>
55 </div> 41 </div>
56 </div> 42 </div>
57 </div> 43 </div>
58 </div> 44 </div>
59 </div> 45 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698