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

Side by Side Diff: LayoutTests/paint/invalidation/spv2/absolute-margin-change-repaint-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 <script src="resources/text-based-repaint.js"></script>
3 <style> 2 <style>
4 body { 3 body {
5 margin: 0; 4 margin: 0;
6 } 5 }
7 #container { 6 #container {
8 position: relative; 7 position: relative;
9 top: 40px; 8 top: 40px;
10 width: 200px; 9 width: 200px;
11 height: 400px; 10 height: 400px;
12 } 11 }
13 #test { 12 #test {
14 position: absolute; 13 position: absolute;
15 background-color: green; 14 background-color: green;
16 width: 100px; 15 width: 100px;
17 height: 100px; 16 height: 100px;
17 margin-top: 20px;
18 } 18 }
19 </style> 19 </style>
20 <script>
21 function repaintTest()
22 {
23 document.getElementById("test").style['margin-top'] = '20px';
24 }
25 window.onload = runRepaintTest;
26 </script>
27 <div id="container"> 20 <div id="container">
28 <div id="test"></div> 21 <div id="test"></div>
29 </div> 22 </div>
30 Tests the repainting of absolute element when margin-top changes. 23 Tests the repainting of absolute element when margin-top changes.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698