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

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

Issue 408683002: flex shorthand incorrectly accepting 1 auto 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <link href="resources/flexbox.css" rel="stylesheet"> 3 <link href="resources/flexbox.css" rel="stylesheet">
4 <style> 4 <style>
5 .flexbox { 5 .flexbox {
6 width: 500px; 6 width: 500px;
7 height:100px; 7 height:100px;
8 background: green; 8 background: green;
9 } 9 }
10 10
11 .flexbox > div { 11 .flexbox > div {
12 flex: 1 0% 1;
13 width: 50px; 12 width: 50px;
14 background: yellow; 13 background: yellow;
15 } 14 }
16 </style> 15 </style>
17 <script src="../../resources/check-layout.js"></script> 16 <script src="../../resources/check-layout.js"></script>
18 <body onload="checkLayout('.flexbox')"> 17 <body onload="checkLayout('.flexbox')">
19 <div class="flexbox"> 18 <div class="flexbox">
20 <div data-expected-width="50"></div> 19 <div data-expected-width="50" style="flex: 1 0% 1"></div>
21 <div data-expected-width="50"></div> 20 <div data-expected-width="50" style="flex: 1 0% 1"></div>
22 <div data-expected-width="50"></div> 21 <div data-expected-width="50" style="flex: 1 0% 1"></div>
22 </div>
23
24 <div class="flexbox">
25 <div data-expected-width="50" style="flex: 1 auto 1"></div>
26 <div data-expected-width="50" style="flex: 1 auto 1"></div>
27 <div data-expected-width="50" style="flex: 1 auto 1"></div>
23 </div> 28 </div>
24 </body> 29 </body>
25 </html> 30 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698