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

Unified Diff: LayoutTests/fast/repaint/box-sizing-padding-keeping-size.html

Issue 350043003: Add more cases of box-sizing change (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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/box-sizing-padding-keeping-size.html
diff --git a/LayoutTests/fast/repaint/box-sizing-padding-keeping-size.html b/LayoutTests/fast/repaint/box-sizing-padding-keeping-size.html
new file mode 100644
index 0000000000000000000000000000000000000000..93860c938d723c633d7a970626e880a103dd1aa9
--- /dev/null
+++ b/LayoutTests/fast/repaint/box-sizing-padding-keeping-size.html
@@ -0,0 +1,32 @@
+<!DOCTYPE HTML>
+<script src="resources/text-based-repaint.js"></script>
+<script>
+function repaintTest()
+{
+ document.getElementById('target1').className = 'content-box';
+ document.getElementById('target2').className = 'border-box';
+}
+window.onload = runRepaintTest;
+</script>
+<style>
+body {
+ margin: 0;
+}
+div {
+ position: absolute;
+ background-color: green;
+}
+.border-box {
+ width: 100px;
+ height: 100px;
+ box-sizing: border-box;
+}
+.content-box {
+ width: 60px;
+ height: 60px;
+ box-sizing: content-box;
+ padding: 20px;
+}
+</style>
+<div id="target1" class="border-box" style="top: 0px"></div>
+<div id="target2" class="content-box" style="top: 200px"></div>

Powered by Google App Engine
This is Rietveld 408576698