Commit be42732b authored by Emilio Cobos Alvarez's avatar Emilio Cobos Alvarez
Browse files

Bug 1681022 - Ignore flex-basis: content on a table wrapper. r=dholbert, a=RyanVM

parent 0df458d5
......@@ -6167,7 +6167,7 @@ LogicalSize nsIFrame::ComputeSize(gfxContext* aRenderingContext,
mainAxisCoord = &maxContStyleCoord;
// (Note: if our main axis is the block axis, then this 'max-content'
// value will be treated like 'auto', via the IsAutoBSize() call below.)
} else if (!flexBasis->IsAuto()) {
} else if (flexBasis->IsSize() && !flexBasis->IsAuto()) {
// For all other non-'auto' flex-basis values, we just swap in the
// flex-basis itself for the main-size property.
mainAxisCoord = &flexBasis->AsSize();
......@@ -6423,7 +6423,7 @@ LogicalSize nsContainerFrame::ComputeSizeWithIntrinsicDimensions(
// effectively trying to produce the 'auto' sizing behavior).
static const StyleSize autoSize(StyleSize::Auto());
mainAxisCoord = &autoSize;
} else if (!flexBasis->IsAuto()) {
} else if (flexBasis->IsSize() && !flexBasis->IsAuto()) {
// For all other non-'auto' flex-basis values, we just swap in the
// flex-basis itself for the main-size property.
mainAxisCoord = &flexBasis->AsSize();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment