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

Unified Diff: LayoutTests/fast/repaint/margin.html

Issue 340323002: Don't force full invalidation on padding or margin change (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Split tests; One new test Created 6 years, 6 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/margin.html
diff --git a/LayoutTests/fast/repaint/margin.html b/LayoutTests/fast/repaint/margin.html
new file mode 100644
index 0000000000000000000000000000000000000000..7184b5ecb37a87566a496d2624a4c67e32198028
--- /dev/null
+++ b/LayoutTests/fast/repaint/margin.html
@@ -0,0 +1,23 @@
+<!DOCTYPE HTML>
+<script src="resources/text-based-repaint.js"></script>
+<script>
+function repaintTest()
+{
+ // Margin change will visually move the content of the div.
+ // Should repaint the old position and the new position.
+ document.getElementById('target').style.margin = '20px';
+}
+window.onload = runRepaintTest;
+</script>
+<style>
+body {
+ margin: 0;
+}
+div {
+ width: 100px;
+ height: 100px;
+ position: absolute;
+ background-color: green;
+}
+</style>
+<div id="target"></div>
« no previous file with comments | « LayoutTests/fast/repaint/box-sizing-padding-keeping-size-expected.txt ('k') | LayoutTests/fast/repaint/margin-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698