Closed
Bug 798020
Opened 14 years ago
Closed 13 years ago
Assertion failure: "Computed width should always be constrained, so horizontal flex containers should always have a constrained main-size"
Categories
(Core :: Layout, defect)
Tracking
()
RESOLVED
FIXED
mozilla19
People
(Reporter: jruderman, Assigned: dholbert)
References
Details
(Keywords: assertion, testcase)
Attachments
(3 files)
With
user_pref("layout.css.flexbox.enabled", true);
the testcase triggers:
Assertion failure: !IsAxisHorizontal(aAxisTracker.GetMainAxis()) (Computed width should always be constrained, so horizontal flex containers should always have a constrained main-size), at layout/generic/nsFlexContainerFrame.cpp:1794
| Reporter | ||
Comment 1•14 years ago
|
||
| Assignee | ||
Comment 2•13 years ago
|
||
Comment on attachment 668142 [details]
testcase (asserts fatally when loaded)
><body style="letter-spacing: 693626589697em;">
Oh, Jesse. :)
So this looks like a case where our actual computed width is large enough to overflow NS_UNCONSTRAINEDSIZE, so it looks like we've got an unconstrained computed-width, and we're not expecting that.
We should probably just change this to a NS_WARNING instead of a MOZ_ASSERT, since web content can trigger this (with ridiculously huge values) and it's not a problem, it'll just give incorrect layout. (we'll shrinkwrap instead of honoring the gigantic height)
| Reporter | ||
Comment 3•13 years ago
|
||
Sounds reasonable. If we ever do bug 765861, we can turn it into a conditional assert.
| Assignee | ||
Comment 4•13 years ago
|
||
Comment on attachment 668826 [details] [diff] [review]
fix
r=dbaron
Attachment #668826 -
Flags: review?(dbaron) → review+
| Assignee | ||
Comment 6•13 years ago
|
||
Flags: in-testsuite+
| Assignee | ||
Comment 7•13 years ago
|
||
(unprefixed testcase code before pushing, per bug 801098)
Comment 8•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla19
You need to log in
before you can comment on or make changes to this bug.
Description
•