-webkit-line-clamp is failing to ellipsize at https://www.toasttab.com/ (and in general, if there's a specified height on the `-webkit-box`)
Categories
(Core :: Layout, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr102 | --- | unaffected |
firefox105 | --- | unaffected |
firefox106 | --- | fixed |
People
(Reporter: dholbert, Assigned: emilio)
References
(Regression, )
Details
(Keywords: regression)
Attachments
(4 files)
STR:
- Visit https://www.toasttab.com/redwood-grill/v3/
- Click through the "order for pickup" modal (e.g. just leave defaults & choose "Start Order")
- Scroll down to look at the menu items, e.g. in the "Fried Chicken" section at the top.
ACTUAL RESULTS:
Missing ellipsis at the end of the too-long-to-fit item descriptions.
EXPECTED RESULTS:
There should be an ellipsis.
I'll try to get a reduced testcase. On the actual site, the element in question has this rule which is supposed to do the line-clamp ellipsizing:
.MenuItems-module__description___2VQmU {
word-wrap: break-word;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
display: -webkit-box;
height: 37px;
margin: 2px 0;
overflow: hidden;
text-overflow: ellipsis;
word-break: break-word;
I confirmed this is a regression from bug 1786147, using mozregression.
Chrome (and Firefox from before bug 1786147) give EXPECTED RESULTS.
See attached screenshot showing "expected results" from before the regression (including an ellipsis). I'll attach a separate screenshot showing the current regressed behavior (no ellipsis).
(Notice that in both cases, the tops of the characters on the next line are visible; that's potentially a separate bug, though it is an unfortunate reality that line-clamp doesn't really prevent that.)
Comment 1•3 years ago
|
||
:emilio, since you are the author of the regressor, bug 1786147, could you take a look? Also, could you set the severity field?
For more information, please visit auto_nag documentation.
Reporter | ||
Comment 2•3 years ago
|
||
Reporter | ||
Comment 3•3 years ago
|
||
[Tracking Requested - why for this release]: recently-introduced user-visible regression which could pose a webcompat issue if other sites are similarly affected.
(Tentatively setting Severity S2 for the same reason.)
Reporter | ||
Comment 4•3 years ago
|
||
Looks like the key thing here is the presence of a specified height.
This testcase (which has a specified height) reproduces the issue (no ellipsis) in current Firefox Nightly, vs. it shows an ellipsis in Nightly from before the regression and in Chrome.
Reporter | ||
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 5•3 years ago
|
||
The previous implementation of line-clamp was relying on the flex
measuring reflow.
Assignee | ||
Updated•3 years ago
|
Comment 9•3 years ago
|
||
bugherder |
Updated•3 years ago
|
Updated•3 years ago
|
Description
•