Wrap attribute broken for emulated -moz-box
Categories
(Core :: Layout, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr91 | --- | unaffected |
firefox-esr102 | --- | unaffected |
firefox104 | --- | unaffected |
firefox105 | --- | verified |
firefox106 | --- | verified |
People
(Reporter: aminomancer, Assigned: emilio)
References
(Regression)
Details
(Keywords: regression)
Attachments
(3 files)
44.53 KB,
image/png
|
Details | |
34.57 KB,
image/png
|
Details | |
48 bytes,
text/x-phabricator-request
|
RyanVM
:
approval-mozilla-beta+
|
Details | Review |
Since the changes in bug 1784265, the send-to-device client buttons in the "Send tab to device" subview (sign in to FxA, sync a device and give it a long name, open app menu, click profile button, click Send tab to device) are not wrapping as expected. The labels overflow without an ellipsis either. They used to wrap onto multiple lines. You can also test this by just adding wrap="true"
to any toolbarbutton in a panel and making its label long enough to overflow. I also attached a picture of an example. (Bisection yielded this pushlog btw)
Reporter | ||
Comment 1•2 years ago
|
||
(Also here's an image of how it looked before)
Comment 2•2 years ago
|
||
Set release status flags based on info from the regressing bug 1784265
Assignee | ||
Comment 3•2 years ago
|
||
Some context on why this used to work:
When wrap=true, we add inline text to the <label>
. It has a
-moz-box
display, so we wrap their kids in a
::-moz-xul-anonymous-block:
Before my patch, flex attributes did affect this anonymous block, but
-moz-box-flex set from CSS didn't, which was inconsistent, so I chose
the CSS behavior. The old flex attribute behavior we could get by
inheriting -moz-box-flex here:
But given modern flex / grid items don't have that, it seems bad to
further diverge. Instead, since we're relying on block behavior
implicitly anyways, do that explicitly instead, which works for both.
Updated•2 years ago
|
Assignee | ||
Updated•2 years ago
|
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/cdf7161e6f07 Use block rather than -moz-box display for subview button text. r=aminomancer
Comment 5•2 years ago
|
||
bugherder |
Comment 6•2 years ago
|
||
The patch landed in nightly and beta is affected.
:emilio, is this bug important enough to require an uplift?
- If yes, please nominate the patch for beta approval.
- If no, please set
status-firefox105
towontfix
.
For more information, please visit auto_nag documentation.
Assignee | ||
Comment 7•2 years ago
|
||
Comment on attachment 9293003 [details]
Bug 1789114 - Use block rather than -moz-box display for subview button text. r=aminomancer
Beta/Release Uplift Approval Request
- User impact if declined: in some locales text that's supposed to wrap might get clipped instead.
- Is this code covered by automated tests?: No
- Has the fix been verified in Nightly?: Yes
- Needs manual test from QE?: Yes
- If yes, steps to reproduce: comment 0 for example
- List of other uplifts needed: none
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): Simple css change.
- String changes made/needed: none
- Is Android affected?: No
Assignee | ||
Updated•2 years ago
|
Updated•2 years ago
|
Comment 8•2 years ago
|
||
Verified as fixed in our latest Nightly build 106.0a1 (2022-09-05).
Comment 9•2 years ago
|
||
Comment on attachment 9293003 [details]
Bug 1789114 - Use block rather than -moz-box display for subview button text. r=aminomancer
Approved for 105.0b8.
Comment 10•2 years ago
|
||
bugherder uplift |
Comment 11•2 years ago
|
||
Verified as fixed in Beta 105.0b8.
Description
•