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

Unified Diff: LayoutTests/css3/flexbox/flex-shorthand-flex-basis-middle.html

Issue 396263003: flex shorthand incorrectly accepting 1 0% 1 (i.e. flex-basis in the middle) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: WIP Patch 2 Created 6 years, 5 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/css3/flexbox/flex-shorthand-flex-basis-middle.html
diff --git a/LayoutTests/css3/flexbox/flex-shorthand-flex-basis-middle.html b/LayoutTests/css3/flexbox/flex-shorthand-flex-basis-middle.html
new file mode 100644
index 0000000000000000000000000000000000000000..f28cfe98dd28c4daada0f75baa4d32ad01689ce5
--- /dev/null
+++ b/LayoutTests/css3/flexbox/flex-shorthand-flex-basis-middle.html
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<html>
+<link href="resources/flexbox.css" rel="stylesheet">
+<style>
+.flexbox {
+ background: green;
tony 2014/07/16 17:12:38 Nit: Style in our test html files isn't that impor
harpreet.sk 2014/07/17 08:03:25 Done.
+ position: relative;
+ padding: 10px;
+ border: 2px solid red;
+}
+
+.flexbox > div {
+ background: yellow;
+ flex: 1 0% 1;
+ border: 1px solid black;
+ width: 50px;
+}
+</style>
+<script src="../../resources/check-layout.js"></script>
+<body onload="checkLayout('.flexbox')">
+<div class="flexbox" style="width: 500px; height:100px">
+ <div data-expected-width="52"></div>
+ <div data-expected-width="52"></div>
+ <div data-expected-width="52"></div>
+</div>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698