Bug 266566

Summary: -webkit-background-clip does not working with text-overflow: ellipsis
Product: WebKit Reporter: Anastasia <anastasiarebr>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: ahmad.saleem792, andresg_22, bfulgham, fantasai.bugs, karlcow, simon.fraser, vitor.roriz, webkit-bug-importer, zalan
Priority: P2 Keywords: BrowserCompat, InRadar
Version: Safari 15   
Hardware: All   
OS: Unspecified   
URL: https://codesandbox.io/p/sandbox/gracious-engelbart-s7y9zx?file=%2Findex.html%3A9%2C10
See Also: https://bugs.webkit.org/show_bug.cgi?id=179334
Attachments:
Description Flags
Chrome Canary 122 & STP184 - Reference Screenshot none

Anastasia
Reported 2023-12-18 00:57:20 PST
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <title>HTML + CSS</title> </head> <style> .text { dispay: block; width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background-image: linear-gradient(45deg, #f3ec78, #af4261); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } </style> <body> <div class="text"> Lorem ipsum dolor sit amet consectetur adipisicing elit. Maiores ratione ea quibusdam quam quia placeat. Quasi, odio voluptatum illo accusamus cupiditate deserunt corrupti in laborum dolorem sint reprehenderit similique exercitationem. </span> </body> </html> Ellipsis is not displayed after text with a gradient in Safari and Firefox. But it works in chrome and opera
Attachments
Chrome Canary 122 & STP184 - Reference Screenshot (370.37 KB, image/png)
2023-12-18 09:12 PST, Ahmad Saleem
no flags
Radar WebKit Bug Importer
Comment 1 2023-12-18 00:57:28 PST
Ahmad Saleem
Comment 2 2023-12-18 09:11:43 PST
It is reproducible in Safari Technology Preview 184 as well.
Ahmad Saleem
Comment 3 2023-12-18 09:12:47 PST
Created attachment 469111 [details] Chrome Canary 122 & STP184 - Reference Screenshot
Karl Dubost
Comment 4 2023-12-18 19:37:14 PST
Anastasia, Thanks for the report Probably a duplicate of Bug 167406 Also probably Bug 179334
Simon Fraser (smfr)
Comment 5 2024-08-09 17:08:41 PDT
*** This bug has been marked as a duplicate of bug 167406 ***
Note You need to log in before you can comment on or make changes to this bug.