text-align-last doesn't work properly with line-clamp /overflow: hidden
Categories
(Core :: Layout: Block and Inline, enhancement, P5)
Tracking
()
People
(Reporter: sigurdur, Unassigned)
References
Details
Attachments
(1 file)
(deleted),
image/png
|
Details |
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36
Steps to reproduce:
- Write content that spans 3+ lines
- Set text-align to justify
- Set text-align-last to center
- Set line-clamp to 2 lines (ellipsis optional)
- Set overflow to hidden
- Last visible line is now justified, not centered.
Codepen showing the results: https://codepen.io/sigurdur/pen/KjJMRL
Actual results:
The last line, which is hidden, is centered but not the visible line.
The last visible line is not centered.
Expected results:
Last visible line should be centered.
Comment 1•5 years ago
|
||
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0
Hi,
I have managed to reproduce this issue on latest FF release 68.0 and latest Nightly build 70.0a1 (2019-07-15) using Ubuntu 18.04 and Windows 10.
The issue is also reproducible on Chrome and IE so I'm not sure this is a specific Firefox issue.
I will move this over to a component so developers can take a look over it and give us their opinion. If is not the correct component please feel free to change it to an appropriate one.
Thanks for the report.
Comment 2•5 years ago
|
||
This is the same as it works in Chrome and WebKit right?
Comment 3•5 years ago
|
||
Given -webkit-line-clamp
was implemented for compat and that we're interoperable, it's not clear what should we do here.
Updated•2 years ago
|
Description
•