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)
Core
Layout
Tracking
()
RESOLVED
FIXED
People
(Reporter: dholbert, Assigned: bzbarsky)
References
()
Details
(Keywords: regression, testcase)
Attachments
(7 files)
173.70 KB,
image/png
|
Details | |
177.81 KB,
image/png
|
Details | |
338 bytes,
text/html
|
Details | |
370 bytes,
text/html
|
Details | |
250 bytes,
text/html
|
Details | |
765 bytes,
patch
|
dholbert
:
review+
dbaron
:
superreview+
beltzner
:
approval1.9+
|
Details | Diff | Splinter Review |
2.18 KB,
patch
|
Details | Diff | Splinter Review |
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.
Reporter | ||
Comment 1•17 years ago
|
||
Reporter | ||
Updated•17 years ago
|
Flags: blocking1.9?
Reporter | ||
Comment 2•17 years ago
|
||
Regressed between 2008-03-14 and 2008-03-15 nightlies.
Bonsai link (for layout subdirectory): http://tinyurl.com/5nodvw
Reporter | ||
Comment 3•17 years ago
|
||
Bonsai link for whole tree: http://tinyurl.com/68oxz8
Reporter | ||
Comment 4•17 years ago
|
||
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
Reporter | ||
Comment 5•17 years ago
|
||
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.
Reporter | ||
Comment 6•17 years ago
|
||
Reporter | ||
Comment 7•17 years ago
|
||
![]() |
Assignee | |
Comment 8•17 years ago
|
||
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)
![]() |
Assignee | |
Comment 9•17 years ago
|
||
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
Reporter | ||
Comment 10•17 years ago
|
||
Glad the testcases helped. :) Here's the reftest as a patch.
(/me tries bz's fix out, brb)
Reporter | ||
Comment 11•17 years ago
|
||
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+
Reporter | ||
Comment 12•17 years ago
|
||
IMHO, we should definitely get this bugfix into RC1 -- users testing out the release candidate will want their paypal to look right.
Whiteboard: [needs review]
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+
![]() |
Assignee | |
Comment 14•17 years ago
|
||
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.
![]() |
Assignee | |
Comment 15•17 years ago
|
||
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 16•17 years ago
|
||
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+
![]() |
Assignee | |
Comment 17•17 years ago
|
||
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.
Description
•