Bug 157070 - Safari 9 flexbox align-content attribute incorrect behavior
Summary: Safari 9 flexbox align-content attribute incorrect behavior
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: Safari 9
Hardware: Mac OS X 10.11
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2016-04-27 07:14 PDT by Alexander Bea
Modified: 2022-02-13 19:34 PST (History)
6 users (show)

See Also:


Attachments
Single file demo of the problem (1.24 KB, text/html)
2020-04-01 14:46 PDT, Alexander Bea
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Bea 2016-04-27 07:14:03 PDT
This came up in a Stack Overflow question where flex container contents were floating center when `align-self: flex-end` was set on the child in Safari 9 (1). Turned out that it was align-content: center causing the problem. According to the align-content spec, there should be no effect on a single-line flex container (2). That seems to be the case in other browsers. So the bug is that align-content is having an effect when it shouldn't there.

Example cleaned up from SO here for review: http://codepen.io/alexbea/pen/KzBXQJ


(1) http://stackoverflow.com/questions/36770602/safari-9-flexbox-align-self-flex-end-doesnt-work
(2) https://www.w3.org/TR/css-flexbox-1/#align-content-property
Comment 1 Jon Lee 2016-12-15 16:26:32 PST
<rdar://problem/29695099>
Comment 2 Dave Hyatt 2017-02-28 10:45:57 PST
The codepen is gone, so not sure how to test.
Comment 3 Jon Lee 2017-02-28 11:22:07 PST
Move to INVALID due to insufficient info.
Comment 4 Alexander Bea 2017-03-02 07:36:26 PST
I was doing some Codepen account cleanup and accidentally deleted it. I've reproduced it:

https://codepen.io/alexbea/pen/RpaNQq
Comment 5 Alexander Bea 2020-04-01 14:46:36 PDT
Created attachment 395204 [details]
Single file demo of the problem

I'm attaching this demo in case the Codepen demo disappears again.
Comment 6 Brent Fulgham 2022-02-13 19:34:39 PST
I'm afraid I can't see any difference between Safari 15.4 (Beta) and Chrome on this test page.

I suspect that this (along with a number of other flex bugs) have been fixed since this was originally filed.

Could you please REOPEN if this is still an issue, and perhaps help me understand what I missed when I looked at the test case?