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

Unified Diff: LayoutTests/css3/flexbox/flex-grow-less-than-one.html

Issue 1314703006: Flex grow wrongly calculated for value between 0 and 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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/css3/flexbox/flex-grow-less-than-one-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/css3/flexbox/flex-grow-less-than-one.html
diff --git a/LayoutTests/css3/flexbox/flex-grow-less-than-one.html b/LayoutTests/css3/flexbox/flex-grow-less-than-one.html
new file mode 100644
index 0000000000000000000000000000000000000000..d4f6b3f9dd1f2f74d7c19df763c300ad0e70dfaf
--- /dev/null
+++ b/LayoutTests/css3/flexbox/flex-grow-less-than-one.html
@@ -0,0 +1,53 @@
+<!DOCTYPE html>
+<html>
harpreet.sk 2015/09/07 06:10:16 We generally skip html, head and body element.
ashlin.j 2015/09/21 06:33:59 Done.
+<link href="resources/flexbox.css" rel="stylesheet">
+<style>
+.parent {
+ height: 100px;
+ width: 100px;
+ border: 1px solid black;
+}
+
+.child-flex-grow-1 {
+ background-color: green;
+ flex-grow: 0.5;
+}
+
+.child-flex-grow-2 {
+ background-color: red;
+ flex-grow: 0.25;
+}
+.child-flex-grow-3 {
+ background-color: green;
+ flex-grow: 1.5;
+}
+
+.child-flex-grow-4 {
+ background-color: red;
+ flex-grow: 1.5;
+}
+
+
harpreet.sk 2015/09/07 06:10:16 Remove Extra lines and spaces. Make your test conc
ashlin.j 2015/09/21 06:34:00 Done.
+
+</style>
+<script src="../../resources/check-layout.js"></script>
+<body onload="checkLayout('.flexbox');">
+<div>Test Case-1</div>
+<div class="flexbox parent">
+ <div class="child-flex-grow-1 " data-expected-width="50"></div>
+</div>
+
+<div>Test Case-2</div>
+<div class="flexbox parent">
+ <div class="child-flex-grow-1 " data-expected-width="50"></div>
+ <div class="child-flex-grow-2 " data-expected-width="25"></div>
+</div>
+
+<div>Test Case-3</div>
+<div class="flexbox parent">
+ <div class="child-flex-grow-3 " data-expected-width="50"></div>
+ <div class="child-flex-grow-4 " data-expected-width="50"></div>
+</div>
+
+</body>
harpreet.sk 2015/09/07 06:10:16 html not required.
ashlin.j 2015/09/21 06:34:00 Done.
+</html>
« no previous file with comments | « no previous file | LayoutTests/css3/flexbox/flex-grow-less-than-one-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698