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

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

Created:
4 years, 3 months ago by jfernandez
Modified:
4 years, 3 months ago
Reviewers:
cbiesinger
CC:
chromium-reviews, blink-reviews-style_chromium.org, blink-reviews-css, dglazkov+blink, apavlov+blink_chromium.org, darktears, blink-reviews, rwlbuis
Target Ref:
refs/pending/heads/master
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 Committed: https://crrev.com/eeac3e6a187e362d796fa01489927e773be705ac Cr-Commit-Position: refs/heads/master@{#419737}

Patch Set 1 #

Patch Set 2 : Added layout test based on the test case in the bug report. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -10 lines) Patch
A third_party/WebKit/LayoutTests/css3/flexbox/flexbox-lines-must-be-stretched-by-default.html View 1 1 chunk +66 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/alignment/ensure-flexbox-compatibility-with-initial-values-expected.txt View 1 chunk +4 lines, -4 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: 15 (8 generated)
jfernandez
4 years, 3 months ago (2016-09-19 13:13:25 UTC) #3
cbiesinger
lgtm but I think your description is misleading. The description says "it shouldn't have effect ...
4 years, 3 months ago (2016-09-19 20:17:35 UTC) #5
jfernandez
On 2016/09/19 20:17:35, cbiesinger wrote: > lgtm but I think your description is misleading. The ...
4 years, 3 months ago (2016-09-19 20:52:06 UTC) #6
cbiesinger
On 2016/09/19 20:52:06, jfernandez wrote: > On 2016/09/19 20:17:35, cbiesinger wrote: > > lgtm but ...
4 years, 3 months ago (2016-09-19 22:32:42 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2348273002/20001
4 years, 3 months ago (2016-09-20 12:05:45 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 3 months ago (2016-09-20 13:17:38 UTC) #13
commit-bot: I haz the power
4 years, 3 months ago (2016-09-20 13:19:42 UTC) #15
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/eeac3e6a187e362d796fa01489927e773be705ac
Cr-Commit-Position: refs/heads/master@{#419737}

Powered by Google App Engine
This is Rietveld 408576698