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

Issue 2361733003: [css-align] Initial value of align-content should be 'stretch'. (Closed)

Created:
4 years, 3 months ago by cbiesinger
Modified:
4 years, 3 months ago
Reviewers:
CC:
chromium-reviews
Target Ref:
refs/pending/branch-heads/2840
Project:
chromium
Visibility:
Public.

Description

[css-align] Initial value of align-content should be 'stretch'. We only allow the new CSS Box Alignment syntax when the Grid Layout feature is enabled. Due to flexbox backward compatibility we have implemented a different code path for the style initial/default values assignment. However, we have incorrectly resolved both align-content and justify-content to 'flex-start' when grid layout is disabled. This patch changes the approach, so we set 'normal' (the value specified by the new syntax) for both properties, but using the values defined in the old syntax (Flexbox specification) at computed style resolution. Since 'stretch' is the default value for the align-content property, this issue implies that any flexbox line with an undefined height will be laid out incorrectly, if not explicitly set via CSS, because flex items can't use the available height, even though they use 'stretch' for their 'align-self' properties. BUG=647694 Review-Url: https://codereview.chromium.org/2348273002 Cr-Commit-Position: refs/heads/master@{#419737} (cherry picked from commit eeac3e6a187e362d796fa01489927e773be705ac) Committed: https://chromium.googlesource.com/chromium/src/+/72308707baae9aac0bea97387c1b4426bd378f51

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -6 lines) Patch
A third_party/WebKit/LayoutTests/css3/flexbox/flexbox-lines-must-be-stretched-by-default.html View 1 chunk +66 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp View 3 chunks +9 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/style/ComputedStyle.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 2 (1 generated)
cbiesinger
4 years, 3 months ago (2016-09-22 14:57:31 UTC) #2
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
72308707baae9aac0bea97387c1b4426bd378f51.

Powered by Google App Engine
This is Rietveld 408576698