mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1237754 part 1 - [css-grid][css-align] Make 'align-content:normal' behave as 'stretch' for Grid containers. r=dholbert
Change due to CSSWG decision: https://lists.w3.org/Archives/Public/www-style/2016Jan/0031.html
This commit is contained in:
parent
fa4c85c0ec
commit
06f72eda69
@ -2936,15 +2936,17 @@ nsGridContainerFrame::Tracks::AlignJustifyContent(
|
||||
|
||||
const bool isAlign = mAxis == eLogicalAxisBlock;
|
||||
auto stylePos = aReflowState.mStylePosition;
|
||||
const auto valueAndFallback = isAlign ?
|
||||
stylePos->ComputedAlignContent() :
|
||||
stylePos->ComputedJustifyContent();
|
||||
auto valueAndFallback = isAlign ? stylePos->ComputedAlignContent() :
|
||||
stylePos->ComputedJustifyContent();
|
||||
WritingMode wm = aReflowState.GetWritingMode();
|
||||
bool overflowSafe;
|
||||
auto alignment = ::GetAlignJustifyValue(valueAndFallback, wm, isAlign,
|
||||
&overflowSafe);
|
||||
if (alignment == NS_STYLE_ALIGN_NORMAL) {
|
||||
alignment = NS_STYLE_ALIGN_START;
|
||||
MOZ_ASSERT(valueAndFallback == NS_STYLE_ALIGN_NORMAL,
|
||||
"*-content:normal cannot be specified with explicit fallback");
|
||||
alignment = isAlign ? NS_STYLE_ALIGN_STRETCH : NS_STYLE_ALIGN_START;
|
||||
valueAndFallback = alignment; // we may need a fallback for 'stretch' below
|
||||
}
|
||||
|
||||
// Compute the free space and count auto-sized tracks.
|
||||
|
Loading…
Reference in New Issue
Block a user