Chromium Code Reviews
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. #
Messages
Total messages: 15 (8 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||