Closed
Bug 989436
Opened 10 years ago
Closed 10 years ago
Add a few new flexbox reftests to catch bugs from early versions of bug 983427's patches
Categories
(Core :: Layout, defect, P4)
Core
Layout
Tracking
()
RESOLVED
FIXED
mozilla31
People
(Reporter: dholbert, Assigned: dholbert)
References
Details
Attachments
(4 files, 1 obsolete file)
13.90 KB,
patch
|
MatsPalmgren_bugz
:
review+
|
Details | Diff | Splinter Review |
4.13 KB,
patch
|
MatsPalmgren_bugz
:
review+
|
Details | Diff | Splinter Review |
4.10 KB,
patch
|
Details | Diff | Splinter Review | |
11.42 KB,
patch
|
MatsPalmgren_bugz
:
review+
|
Details | Diff | Splinter Review |
The first (local) versions of my patches for bug 983427 had a few bugs that I caught which weren't revealed by any of our reftests. Filing this bug to add a few reftests to prevent the introduction of these bugs.
Assignee | ||
Updated•10 years ago
|
Summary: Add a few reftests to catch bugs from early versions of bug 983427's patches → Add a few new flexbox reftests to catch bugs from early versions of bug 983427's patches
Assignee | ||
Comment 1•10 years ago
|
||
This adds an existing variant of the flex-flow megatest. The current test exercises content with 4 flex items like: 1 2 3 4 in all the various orientations (and without wrapping). The new test is the same, but only with 3 flex items, to make sure that we fill the first row before the second row (regardless of orientation). So e.g. row wrap-reverse should produce: 3 1 2 ...instead of e.g.... 2 3 1 (which an early naive version of my patch incorrectly produced, as discussed in bug 983434 comment 1)
Attachment #8398703 -
Flags: review?(matspal)
Assignee | ||
Comment 2•10 years ago
|
||
(by "and without wrapping", I meant "with and without wrapping")
Assignee | ||
Comment 3•10 years ago
|
||
This patch renames an existing test (flexbox-align-self-baseline-horiz-1.xhtml) to have an "a" suffix, so that I can create a "b" clone with flex-wrap:wrap-reverse. This just flips the cross axis, which shouldn't actually have any effect on the rendering in this case (hence, "a" and "b" share a reference case). The point is, the reversed cross-axis exercises the flipping logic added in bug 983427 and makes sure it doesn't mess up baseline-alignment of flex items.
Attachment #8398715 -
Flags: review?(matspal)
Assignee | ||
Updated•10 years ago
|
Attachment #8398715 -
Attachment description: part 2: clone existing flex-item baseline-alignment test to check flex item baseline-alignment when cross axis is bottom-to-top → part 2: rename & clone existing flex-item baseline-alignment test to check flex item baseline-alignment when cross axis is bottom-to-top
Assignee | ||
Comment 4•10 years ago
|
||
(Fixing typo (s/part 1/part 2/) in commit message)
Attachment #8398715 -
Attachment is obsolete: true
Attachment #8398715 -
Flags: review?(matspal)
Attachment #8398717 -
Flags: review?(matspal)
Comment 5•10 years ago
|
||
Comment on attachment 8398703 [details] [diff] [review] part 1: variant of existing flex-flow megatest, with 3 items per container instead of 4 r=mats
Attachment #8398703 -
Flags: review?(matspal) → review+
Updated•10 years ago
|
Attachment #8398717 -
Flags: review?(matspal) → review+
Assignee | ||
Comment 6•10 years ago
|
||
This patch moves some existing multi-line reftests out of the way (increasing the number in their filename), so that I can add a few more single-line reftests adjacent to the existing single-line reftests. (Not bothering with review on this one since it's just a rename plus a resulting manifest/<link rel="match">-tweak)
Assignee | ||
Comment 7•10 years ago
|
||
This patch adds a few tests for positioning of a single baseline-aligned flex item, with margins, in a flex container with a fixed height. The point of this is to test behavior where there's either extra space or not enough space in the flex container -- in that situation, baseline-aligned flex items snap their appropriate margin-edge to the container's *flex-start* edge. (normally the top of the container, but if we have "flex-flow: wrap-reverse", then it'll need to align to the bottom of the container) (Similar behavior happens for explicitly "flex-start"-aligned flex items, but that code is more trivial (and better-tested) than the code for baseline-aligned flex items.) The two tests added here are identical to each other, except for the "flex-wrap: wrap-reverse" flipping of the cross axis.
Attachment #8398814 -
Flags: review?(matspal)
Assignee | ||
Updated•10 years ago
|
Attachment #8398814 -
Attachment description: part 3b: Add reftests for cross-axis margins on baseline-aligned flex items → part 3b: Add reftests for snapping cross-axis margin-edge of baseline-aligned flex item to flex-start edge of container, when container has a fixed size
Assignee | ||
Comment 8•10 years ago
|
||
(The sort of interesting thing about the tests in "part 3b" is that the margins on the "flex-start" side are the only ones that affect the items' positioning, since the flex-start edge is what gets aligned with the container, and any margins sticking off of their other end will just protrude [or not] invisibly. This is why the two reftests in part 3b have different reference cases based -- when we flip the cross axis, we flip the set of margins actually end up impacting our alignment [top vs. bottom]. This isn't the case in the {a,b} tests in part 2 -- in that case, we render the same regardless of cross-axis orientation -- because there, the container has no fixed height and just shrinkwraps its items' margin-boxes. So there's no extra flex-[start/end] snapping that needs to happen after the baseline-alignment.)
Updated•10 years ago
|
Attachment #8398814 -
Flags: review?(matspal) → review+
Assignee | ||
Comment 9•10 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=c4caa77716df
Assignee | ||
Comment 10•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/aed905bca4d4 https://hg.mozilla.org/integration/mozilla-inbound/rev/6892d0777d0e https://hg.mozilla.org/integration/mozilla-inbound/rev/5aaa6d2b4b3a https://hg.mozilla.org/integration/mozilla-inbound/rev/110c1a3fc74c
Flags: in-testsuite+
Comment 11•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/aed905bca4d4 https://hg.mozilla.org/mozilla-central/rev/6892d0777d0e https://hg.mozilla.org/mozilla-central/rev/5aaa6d2b4b3a https://hg.mozilla.org/mozilla-central/rev/110c1a3fc74c
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla31
You need to log in
before you can comment on or make changes to this bug.
Description
•