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

Unified Diff: LayoutTests/fast/repaint/box-sizing.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
« no previous file with comments | « no previous file | LayoutTests/fast/repaint/box-sizing-border-keeping-size.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/repaint/box-sizing.html
diff --git a/LayoutTests/fast/repaint/box-sizing.html b/LayoutTests/fast/repaint/box-sizing.html
index bcc83feaf478ac70a76ad4859704ba6815fe426b..7ebea8bf61f40617208c0243d9f8b684778bc004 100644
--- a/LayoutTests/fast/repaint/box-sizing.html
+++ b/LayoutTests/fast/repaint/box-sizing.html
@@ -3,7 +3,8 @@
<script>
function repaintTest()
{
- document.getElementById('target').style.boxSizing = 'content-box';
+ document.getElementById('target1').className = 'content-box';
+ document.getElementById('target2').className = 'border-box';
}
window.onload = runRepaintTest;
</script>
@@ -11,12 +12,19 @@ window.onload = runRepaintTest;
body {
margin: 0;
}
-#target {
- border: solid blue 20px;
+div {
width: 50%;
height: 100px;
- box-sizing: border-box;
position: absolute;
+ background-color: green;
+ border: blue solid 20px;
+}
+.border-box {
+ box-sizing: border-box;
+}
+.content-box {
+ box-sizing: content-box;
}
</style>
-<div id="target"></div>
+<div id="target1" class="border-box" style="top: 0px"></div>
+<div id="target2" class="content-box" style="top: 200px"></div>
« no previous file with comments | « no previous file | LayoutTests/fast/repaint/box-sizing-border-keeping-size.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698