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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/repaint/fixed-margin-change-repaint.html
diff --git a/LayoutTests/fast/repaint/fixed-margin-change-repaint.html b/LayoutTests/fast/repaint/fixed-margin-change-repaint.html
new file mode 100644
index 0000000000000000000000000000000000000000..091ef8c13ffb1c02d26123ec633e58e2bcfaacf8
--- /dev/null
+++ b/LayoutTests/fast/repaint/fixed-margin-change-repaint.html
@@ -0,0 +1,30 @@
+<!DOCTYPE HTML>
+<script src="resources/text-based-repaint.js"></script>
+<style>
+ body {
+ margin: 0;
+ }
+ #container {
+ position: relative;
+ top: 40px;
+ width: 200px;
+ height: 400px;
+ }
+ #test {
+ position: fixed;
+ background-color: green;
+ width: 100px;
+ height: 100px;
+ }
+</style>
+<script>
+ function repaintTest()
+ {
+ document.getElementById("test").style['margin-top'] = '20px';
+ }
+ window.onload = runRepaintTest;
+</script>
+Tests the repainting of fixed element when margin-top changes.
+<div id="container">
+ <div id="test" style="position: absolute; background-color: green; width: 100px; height: 100px;"></div>
+</div>

Powered by Google App Engine
This is Rietveld 408576698