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

Unified Diff: third_party/WebKit/LayoutTests/fast/css-grid-layout/floated-grid-container-percentage-tracks.html

Issue 1892813002: [css-grid] Floated grid containers have indefinite width (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 | third_party/WebKit/Source/core/layout/LayoutBox.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/css-grid-layout/floated-grid-container-percentage-tracks.html
diff --git a/third_party/WebKit/LayoutTests/fast/css-grid-layout/positioned-grid-container-percentage-tracks.html b/third_party/WebKit/LayoutTests/fast/css-grid-layout/floated-grid-container-percentage-tracks.html
similarity index 76%
copy from third_party/WebKit/LayoutTests/fast/css-grid-layout/positioned-grid-container-percentage-tracks.html
copy to third_party/WebKit/LayoutTests/fast/css-grid-layout/floated-grid-container-percentage-tracks.html
index c9e2186d48ddba1647755df3473258067cbba488..c5ccf8bf1750c9bb18fa7125ddc904a3391c97ea 100644
--- a/third_party/WebKit/LayoutTests/fast/css-grid-layout/positioned-grid-container-percentage-tracks.html
+++ b/third_party/WebKit/LayoutTests/fast/css-grid-layout/floated-grid-container-percentage-tracks.html
@@ -4,20 +4,17 @@
.wrapper {
position: relative;
- width: 100px;
- height: 100px;
+ clear: both;
}
.grid {
- position: absolute;
+ float: left;
font: 10px/1 Ahem;
}
-.topBottomLeftRight {
- top: 0;
- bottom: 0;
- left: 0;
- right: 0;
+.fixedSize {
+ width: 200px;
+ height: 200px;
}
.oneRowOneColumn {
@@ -37,8 +34,7 @@
<body onload="checkLayout('.grid')">
<div id="log"></div>
-<p>This test checks that percentage tracks are properly resolved for absolute positioned grid containers.</p>
-
+<p>This test checks that percentage tracks are properly resolved for floated grid containers.</p>
<div class="wrapper">
<div class="grid oneRowOneColumn">
@@ -50,9 +46,9 @@
</div>
<div class="wrapper">
- <div class="grid oneRowOneColumn topBottomLeftRight">
+ <div class="grid oneRowOneColumn fixedSize">
<div class="firstRowFirstColumn"
- data-offset-x="0" data-offset-y="0" data-expected-width="100" data-expected-height="100">
+ data-offset-x="0" data-offset-y="0" data-expected-width="200" data-expected-height="200">
XXX
</div>
</div>
@@ -80,21 +76,21 @@
</div>
<div class="wrapper">
- <div class="grid twoRowsTwoColumns topBottomLeftRight">
+ <div class="grid twoRowsTwoColumns fixedSize">
<div class="firstRowFirstColumn"
- data-offset-x="0" data-offset-y="0" data-expected-width="60" data-expected-height="25">
+ data-offset-x="0" data-offset-y="0" data-expected-width="120" data-expected-height="50">
XXX
</div>
<div class="firstRowSecondColumn"
- data-offset-x="60" data-offset-y="0" data-expected-width="40" data-expected-height="25">
+ data-offset-x="120" data-offset-y="0" data-expected-width="80" data-expected-height="50">
XXX
</div>
<div class="secondRowFirstColumn"
- data-offset-x="0" data-offset-y="25" data-expected-width="60" data-expected-height="75">
+ data-offset-x="0" data-offset-y="50" data-expected-width="120" data-expected-height="150">
XXX
</div>
<div class="secondRowSecondColumn"
- data-offset-x="60" data-offset-y="25" data-expected-width="40" data-expected-height="75">
+ data-offset-x="120" data-offset-y="50" data-expected-width="80" data-expected-height="150">
XXX
</div>
</div>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698