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

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: 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..85b1a06737a25c9d0d63905c6b5af622c036dc66
--- /dev/null
+++ b/LayoutTests/css3/flexbox/flex-shorthand-flex-basis-middle.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<html>
+<link href="resources/flexbox.css" rel="stylesheet">
+<style>
+.flexbox {
+ width: 500px;
+ height:100px;
+ background: green;
+}
+
+.flexbox > div {
+ flex: 1 0% 1;
+ width: 50px;
+ background: yellow;
+}
+</style>
+<script src="../../resources/check-layout.js"></script>
+<body onload="checkLayout('.flexbox')">
+<div class="flexbox">
+ <div data-expected-width="50"></div>
+ <div data-expected-width="50"></div>
+ <div data-expected-width="50"></div>
+</div>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698