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

Side by Side Diff: LayoutTests/fast/repaint/fixed-margin-change-repaint.html

Issue 580533002: Use PositionedMovementLayout for changes to positioned elements' margins (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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
(Empty)
1 <!DOCTYPE HTML>
2 <script src="resources/text-based-repaint.js"></script>
3 <style>
4 body {
5 margin: 0;
6 }
7 #container {
8 position: relative;
9 top: 40px;
10 width: 200px;
11 height: 400px;
12 }
13 #test {
14 position: fixed;
15 background-color: green;
16 width: 100px;
17 height: 100px;
18 }
19 </style>
20 <script>
21 function repaintTest()
22 {
23 document.getElementById("test").style['margin-top'] = '20px';
24 }
25 window.onload = runRepaintTest;
26 </script>
27 Tests the repainting of fixed element when margin-top changes.
28 <div id="container">
29 <div id="test" style="position: absolute; background-color: green; width: 10 0px; height: 100px;"></div>
30 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698