-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
layout: align-content with default value normal should behave as strech in flex container #35178
Conversation
🔨 Triggering try run (#12988342965) for Linux (WPT) |
Test results for linux-wpt-layout-2020 from try job (#12988342965): Flaky unexpected result (15)
Stable unexpected results that are known to be intermittent (9)
|
✨ Try run (#12988342965) succeeded. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, but maybe you could make it so that resolved_align_content
becomes AlignFlags::STRETCH
for normal
? With a name starting with "resolved" I would expect it to resolve normal
.
Something like
let resolved_align_content: AlignFlags = {
// Computed value from the style system
let align_content_style = flex_context.config.align_content.0.primary();
let mut is_safe = align_content_style.flags() == AlignFlags::SAFE;
// From https://drafts.csswg.org/css-align/#distribution-flex
// > `normal` behaves as `stretch`.
let mut resolved_align_content = match align_content_style.value() {
AlignFlags::NORMAL => AlignFlags::STRETCH,
align_content => align_content,
};
ff9e839
to
c94c924
Compare
…ch in flex container Signed-off-by: rayguo17 <[email protected]>
0dd0041
to
c320a5f
Compare
According to the spec,
align-content default value normal should have the same behaviour as value stretch in flex container. cc @xiaochengh
./mach build -d
does not report any errors./mach test-tidy
does not report any errors