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

Unified Diff: LayoutTests/fast/css-grid-layout/flex-factor-sum-less-than-1.html

Issue 1321573005: [CSS Grid Layout] Flex factor sum must be 1 at least. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Just return if accumulatedFractions is 1. Created 5 years, 4 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/css-grid-layout/flex-factor-sum-less-than-1-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/css-grid-layout/flex-factor-sum-less-than-1.html
diff --git a/LayoutTests/fast/css-grid-layout/flex-factor-sum-less-than-1.html b/LayoutTests/fast/css-grid-layout/flex-factor-sum-less-than-1.html
new file mode 100644
index 0000000000000000000000000000000000000000..d8cf2ed18ee557f5ce09950c5652c69b22c18492
--- /dev/null
+++ b/LayoutTests/fast/css-grid-layout/flex-factor-sum-less-than-1.html
@@ -0,0 +1,81 @@
+<!DOCTYPE html>
+<html>
+<link href="resources/grid.css" rel="stylesheet">
+<style>
+.onlyColumnFractionFlexFactors {
+ grid-template-columns: minmax(0,0.1fr) minmax(0,0.2fr) minmax(0,0.3fr);
+ grid-template-rows: 50px;
+ width: 100px;
+}
+.onlyRowFractionFlexFactors {
+ grid-template-columns: 50px;
+ grid-template-rows: minmax(0,0.1fr) minmax(0,0.2fr) minmax(0,0.3fr);
+ width: 50px;
+ height: 100px;
+}
+.fixedAndfractionFlexFactors {
+ grid-template-columns: 50px minmax(0,0.2fr) 30px;
+ grid-template-rows: minmax(0,0.1fr) 50px minmax(0,0.3fr);
+ width: 100px;
+ height: 100px;
+}
+.firstRowThirdColumn {
+ background-color: yellow;
+ grid-column: 3;
+ grid-row: 1;
+}
+.secondRowThirdColumn {
+ background-color: yellow;
+ grid-column: 3;
+ grid-row: 2;
+}
+.thirdRowFirstColumn {
+ background-color: brown;
+ grid-column: 1;
+ grid-row: 3;
+}
+.thirdRowThirdColumn {
+ background-color: magenta;
+ grid-column: 3;
+ grid-row: 3;
+}
+</style>
+<script src="../../resources/check-layout.js"></script>
+<body onload="checkLayout('.grid');">
+
+<p>Test that resolving auto tracks on grid items works properly.</p>
+
+<div style="position: relative;">
+ <div class="grid onlyColumnFractionFlexFactors">
+ <div class="firstRowFirstColumn" data-expected-width="10" data-expected-height="50"></div>
+ <div class="firstRowSecondColumn" data-expected-width="20" data-expected-height="50"></div>
+ <div class="firstRowThirdColumn" data-expected-width="30" data-expected-height="50"></div>
+ </div>
+</div>
+
+<div style="position: relative;">
+ <div class="grid onlyRowFractionFlexFactors">
+ <div class="firstRowFirstColumn" data-expected-width="50" data-expected-height="10"></div>
+ <div class="secondRowFirstColumn" data-expected-width="50" data-expected-height="20"></div>
+ <div class="thirdRowFirstColumn" data-expected-width="50" data-expected-height="30"></div>
+ </div>
+</div>
+
+<div style="position: relative;">
+ <div class="grid fixedAndfractionFlexFactors">
+ <div class="firstRowFirstColumn" data-expected-width="50" data-expected-height="5"></div>
+ <div class="firstRowSecondColumn" data-expected-width="4" data-expected-height="5"></div>
+ <div class="firstRowThirdColumn" data-expected-width="30" data-expected-height="5"></div>
+ <div class="secondRowFirstColumn" data-expected-width="50" data-expected-height="50"></div>
+ <div class="secondRowSecondColumn" data-expected-width="4" data-expected-height="50"></div>
+ <div class="secondRowThirdColumn" data-expected-width="30" data-expected-height="50"></div>
+ <div class="thirdRowFirstColumn" data-expected-width="50" data-expected-height="15"></div>
+ <div class="thirdRowSecondColumn" data-expected-width="4" data-expected-height="15"></div>
+ <div class="thirdRowThirdColumn" data-expected-width="30" data-expected-height="15"></div>
+ </div>
+</div>
+
+</body>
+</html>
+
+
« no previous file with comments | « no previous file | LayoutTests/fast/css-grid-layout/flex-factor-sum-less-than-1-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698