Bug 243882 - [css-flexbox] align-content behavior does not match the spec for absolutely positioned children
Summary: [css-flexbox] align-content behavior does not match the spec for absolutely p...
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Ryan Reno
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-08-12 09:18 PDT by Ryan Reno
Modified: 2022-10-25 09:10 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Reno 2022-08-12 09:18:25 PDT
The static position of absolutely positioned children of multi-line flex containers will use the container's align-content to position the child when webkit.org/b/221472 is resolved. However, we will maintain our current behavior for the case of align-content: stretch. This is contrary to the spec which calls for a fallback to align-content: flex-start when the available space in the container is negative. (e.g. when the child is larger than the container).

This fallback behavior is ignored by all major engines and has been shipping with agreement for quite a while. Additionally, stretch is the normal, or default, behavior of align-content. A change in behavior here may have webcompat consequences. I raised an issue with the CSSWG to change the spec to match current browser behavior. Until that is resolved, this bug tracks the unspecified behavior we implement in WebKit for this one case.

CSSWG issue: https://github.com/w3c/csswg-drafts/issues/7596
Comment 1 Radar WebKit Bug Importer 2022-08-12 09:39:42 PDT
<rdar://problem/98573100>
Comment 2 Ryan Reno 2022-08-24 10:30:33 PDT
The CSSWG resolved this issue in today's call. https://github.com/w3c/csswg-drafts/issues/7596#issuecomment-1225952646

tl;dr the spec will tell engines to ignore align-content for abspos children.
Comment 3 Ryan Reno 2022-10-25 09:10:35 PDT
Spec has changed.