Bug 219100 - Erroneous elision of line clamped text
Summary: Erroneous elision of line clamped text
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks: 233770
  Show dependency treegraph
 
Reported: 2020-11-18 11:10 PST by efisher
Modified: 2023-02-15 14:05 PST (History)
5 users (show)

See Also:


Attachments
Example of improper eliding of the first line of clamped text (200.67 KB, image/png)
2020-11-18 11:10 PST, efisher
no flags Details
test case (572 bytes, text/html)
2022-08-15 19:57 PDT, Karl Dubost
no flags Details
rendering in Safari, firefox, chrome (74.59 KB, image/png)
2022-08-15 19:59 PDT, Karl Dubost
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description efisher 2020-11-18 11:10:57 PST
Created attachment 414461 [details]
Example of improper eliding of the first line of clamped text

When using -webkit-line-clamp in conjunction w/ white-space:pre-wrap and text-align:center, a line of text prior to the last line may be elided.

JsFiddle here to demonstrate the issue:
https://jsfiddle.net/w901xn6y/1/
Comment 1 efisher 2020-11-18 11:21:51 PST
also happens with text-align:right
Comment 2 Radar WebKit Bug Importer 2020-11-26 03:20:20 PST
<rdar://problem/71747728>
Comment 3 Karl Dubost 2022-08-15 19:57:51 PDT
Created attachment 461658 [details]
test case

a more reduced test case
Comment 4 Karl Dubost 2022-08-15 19:59:33 PDT
Created attachment 461659 [details]
rendering in Safari, firefox, chrome

Ellipsis is visible for Safari only.
Not visible in Chrome and Firefox

Tested in:
Firefox Nightly 105.0a1
Google Chrome Canary 106.0.5242.0
Safari 16.0
Comment 5 Ahmad Saleem 2023-02-15 13:14:16 PST
@Karl - this seems to be fixed in Safari Technology Preview 163 as well and matches other browsers in reference screenshots of your uploaded in Comment 04. Safari 16.3 is broken. Can we mark this as "RESOLVED CONFIGURATION CHANGED"? Thanks!
Comment 6 zalan 2023-02-15 14:04:54 PST
This is IFC progression too.