Closed Bug 428423 Opened 17 years ago Closed 17 years ago

[FIX]Layout regression with "Change your language" on paypal.com

Categories

(Core :: Layout, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: dholbert, Assigned: bzbarsky)

References

()

Details

(Keywords: regression, testcase)

Attachments

(7 files)

Recently, we started placing the "Change your language" label on http://www.paypal.com too far to the right, so that it gets overlapped by its combobox. See screenshots.
Flags: blocking1.9?
Regressed between 2008-03-14 and 2008-03-15 nightlies. Bonsai link (for layout subdirectory): http://tinyurl.com/5nodvw
Bonsai link for whole tree: http://tinyurl.com/68oxz8
The testcase I'm about to post shows that this is a change in how we handle fieldset & legend. --> Regression from bug 404123.
Blocks: 404123
Attached file testcase 1
testcase 1 expected behavior: - "left" should be on left edge of blue box - "right" should be on right edge of blue box testcase 1 bad behavior: - both "left" and "right" are at right edge of blue box. FF2 and Trunk nightlies up to 20080314 show expected behavior. Trunk nightlies after 20080315 show bad behavior.
Attached file reftest: testcase
Attached file reftest: reference
We used to give the legend its preferred width no matter what. Now we want to give it whatever width will "fit", but we were using the block auto-width algorithm when it had display:block, so it ended up too wide. Using "-moz-fit-content" should give it a narrower width if that's all it needs, but allow it to expand out to the available width as needed.
Assignee: nobody → bzbarsky
Status: NEW → ASSIGNED
Attachment #315176 - Flags: superreview?(dbaron)
Attachment #315176 - Flags: review?(dholbert)
And Daniel, thanks a ton for the testcases! They made fixing this literally a 2-minute thing.
Summary: Layout regression with "Change your language" on paypal.com → [FIX]Layout regression with "Change your language" on paypal.com
Glad the testcases helped. :) Here's the reftest as a patch. (/me tries bz's fix out, brb)
Comment on attachment 315176 [details] [diff] [review] This should fix it Description in comment 8 makes sense to me. Tested patch on my machine, and it makes the reftest pass and also fixes paypal.com r=dholbert
Attachment #315176 - Flags: review?(dholbert) → review+
IMHO, we should definitely get this bugfix into RC1 -- users testing out the release candidate will want their paypal to look right.
Keywords: testcase
Flags: blocking1.9? → blocking1.9+
Whiteboard: [needs review] → [needs review dbaron]
Comment on attachment 315176 [details] [diff] [review] This should fix it I suppose this is OK, but I might prefer doing display:inline!important instead. Given that we're always constructing the same formatting object for it and using it in the same way, it seems like we ought to make that formatting object always have the same display type. That said, maybe this is lower risk. (You've checked that it doesn't cause any change to the display:inline legends, right?)
Attachment #315176 - Flags: superreview?(dbaron) → superreview+
I did check the display:inline case, and we have some reftests for it already. It shrinkwraps as things stand, so the behavior doesn't change.
Comment on attachment 315176 [details] [diff] [review] This should fix it This should be a pretty safe fix to make sure legends don't expand too much when styled as blocks.
Attachment #315176 - Flags: approval1.9?
Comment on attachment 315176 [details] [diff] [review] This should fix it a=beltzner, please land with the reftest
Attachment #315176 - Flags: approval1.9? → approval1.9+
Checked in, with tests.
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Whiteboard: [needs review dbaron]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: