Bug 143603 - Flexbox layout does not respect dimensions defined in percentage (in flex-direction: column)
Summary: Flexbox layout does not respect dimensions defined in percentage (in flex-dir...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Major
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-10 06:14 PDT by Ben Frain
Modified: 2022-02-09 09:26 PST (History)
1 user (show)

See Also:


Attachments
Example HTML/CSS reproducing the issue (2.24 KB, text/html)
2019-10-15 11:26 PDT, Jay C
no flags Details
Screenshot comparing test.html in Safari and Firefox (1.71 MB, image/png)
2019-10-15 11:26 PDT, Jay C
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ben Frain 2015-04-10 06:14:51 PDT
This is possibly the same issue that https://bugs.webkit.org/show_bug.cgi?id=142906 reports but I'm not entirely sure.

The issue I am reporting is in relation to 'main-axis' dimensions, specified in percentages, not being honoured when flex-direction: column property/value is used.

Here is a reduction http://codepen.io/benfrain/pen/WbqEvL

In evergreen browsers such as Firefox and Chrome, you see a red and orange background. In Safari, you only see the orange and the content of the flexbox is collapsed.
Comment 1 Jay C 2019-10-15 11:26:10 PDT
Created attachment 381003 [details]
Example HTML/CSS reproducing the issue

Attached is a sample file reproducing the problem. Children of a flexbox item which is set to flex-direction: column should be 100% wide. They aren't in Safari 13, they are in every other browser. 

I will also attach a screenshot.
Comment 2 Jay C 2019-10-15 11:26:44 PDT
Created attachment 381004 [details]
Screenshot comparing test.html in Safari and Firefox

Here is the screenshot
Comment 3 Ben Frain 2022-02-09 09:26:47 PST
Not sure when this was fixed but it is fixed in 15.3/15.4