Bug 219100

Summary: Erroneous elision of line clamped text
Product: WebKit Reporter: efisher
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Normal CC: ahmad.saleem792, karlcow, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 233770    
Attachments:
Description Flags
Example of improper eliding of the first line of clamped text
none
test case
none
rendering in Safari, firefox, chrome none

efisher
Reported 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/
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
test case (572 bytes, text/html)
2022-08-15 19:57 PDT, Karl Dubost
no flags
rendering in Safari, firefox, chrome (74.59 KB, image/png)
2022-08-15 19:59 PDT, Karl Dubost
no flags
efisher
Comment 1 2020-11-18 11:21:51 PST
also happens with text-align:right
Radar WebKit Bug Importer
Comment 2 2020-11-26 03:20:20 PST
Karl Dubost
Comment 3 2022-08-15 19:57:51 PDT
Created attachment 461658 [details] test case a more reduced test case
Karl Dubost
Comment 4 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
Ahmad Saleem
Comment 5 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!
zalan
Comment 6 2023-02-15 14:04:54 PST
This is IFC progression too.
Note You need to log in before you can comment on or make changes to this bug.