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

Unified Diff: LayoutTests/fast/repaint/padding-border-keeping-border-box-and-content-box.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/padding-border-keeping-border-box-and-content-box.html
diff --git a/LayoutTests/fast/repaint/padding-border-keeping-border-box-and-content-box.html b/LayoutTests/fast/repaint/padding-border-keeping-border-box-and-content-box.html
new file mode 100644
index 0000000000000000000000000000000000000000..5a55079dd5870379ed632478cea0af8b5b631dbf
--- /dev/null
+++ b/LayoutTests/fast/repaint/padding-border-keeping-border-box-and-content-box.html
@@ -0,0 +1,29 @@
+<!DOCTYPE HTML>
+<script src="resources/text-based-repaint.js"></script>
+<script>
+function repaintTest()
+{
+ // Though neither border box nor content box changes, should full repaint
+ // because the border width changes.
+ var target = document.getElementById('target');
+ target.style.padding = '20px';
+ target.style.borderWidth = '20px';
+}
+window.onload = runRepaintTest;
+</script>
+<style>
+body {
+ margin: 0;
+}
+div {
+ width: 100px;
+ height: 100px;
+ padding: 40px;
+ position: absolute;
+ background-color: green;
+ border-color: blue;
+ border-style: solid;
+ border-width: 0;
+}
+</style>
+<div id="target"></div>

Powered by Google App Engine
This is Rietveld 408576698