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

Side by Side Diff: LayoutTests/css3/flexbox/flex-one-sets-flex-basis-to-zero-px.html

Issue 478233004: Flexbox flex: 1 incorrectly sets flex-basis to 0px (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <link href="resources/flexbox.css" rel="stylesheet">
4 <style>
5 .flexbox > div {
6 font-family: Ahem;
7 font-size: 14px;
8 }
9
10 .flex-one-one-zero-percent {
11 flex: 1 1 0%;
12 }
13
14 .flex-one-one-zero-px {
15 flex: 1 1 0px;
16 }
17
18 .vertical {
19 -webkit-writing-mode: vertical-rl;
20 }
21 </style>
22 <script src="../../resources/check-layout.js"></script>
23 <body onload="checkLayout('.flexbox');">
24 <div class="flexbox column">
25 <div class="flex-one" data-expected-height="14">Flex item with flex: 1</div>
26 </div>
27
28 <div class="flexbox column">
29 <div class="flex-one-one-zero-percent" data-expected-height="14">Flex item wit h flex: 1 1 0%</div>
30 </div>
31
32 <div class="flexbox column">
33 <div class="flex-one-one-zero-px" data-expected-height="0">Flex item with flex : 1 1 0px</div>
34 </div>
35
36 <div class="flexbox column vertical">
37 <div class="flex-one" data-expected-width="14">Flex item with flex: 1</div>
38 </div>
39
40 <div class="flexbox column vertical">
41 <div class="flex-one-one-zero-percent" data-expected-width="14">Flex item with flex: 1 1 0%</div>
42 </div>
43
44 <div class="flexbox column vertical">
45 <div class="flex-one-one-zero-px" data-expected-width="0">Flex item with flex: 1 1 0px</div>
46 </div>
47 </body>
48 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698