Bug 197525
Summary: | -webkit-line-clamp truncating line-height | ||
---|---|---|---|
Product: | WebKit | Reporter: | Timothy Armstrong <timarmstrong> |
Component: | Layout and Rendering | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Normal | CC: | bfulgham, gsnedders, mmaxfield, mockee, simon.fraser, webkit-bug-importer, zalan |
Priority: | P2 | Keywords: | InRadar |
Version: | Safari 12 | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Timothy Armstrong
* What steps will reproduce the problem?
(1) Visit https://jsfiddle.net/4bzh2rv9/
(2) Click the toggle button so that the box can no longer contain two lines of text (and shows an ellipsis).
(3) Note that as soon as the above condition is met, the height of the box decreases, instead of allowing for the appropriate amount of line-height.
* What is the expected result?
The div height should not change once the ellipsis is present.
* What happens instead?
The div height shrinks once the ellipsis is present.
(See also: crbug.com/937931)
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/50448006>
Sam Sneddon [:gsnedders]
*** This bug has been marked as a duplicate of bug 187938 ***