Bug 118836 - text-overflow ellipsis shadow is different from rest of the text
Summary: text-overflow ellipsis shadow is different from rest of the text
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.8
: P3 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2013-07-18 01:04 PDT by Terry Vogelaar
Modified: 2022-06-02 22:03 PDT (History)
5 users (show)

See Also:


Attachments
Test case (2.29 KB, text/html)
2013-09-13 11:15 PDT, Jon Lee
no flags Details
rendering in Safari, firefox, chrome (201.01 KB, image/png)
2022-06-02 22:03 PDT, Karl Dubost
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Terry Vogelaar 2013-07-18 01:04:04 PDT
It is annoying that in Safari/Chrome the ellipsis is treated differently from the normal text if I have this CSS: 
.txt { 
text-shadow: 10px 10px 1px #000;
text-overflow: ellipsis; overflow: hidden; 
display: block; 
width: 100px; /* too small for the whole text, so the ellipsis shows */ 
color: rgba(255,0,0,0.2); 
}

You'll see that the ellipsis in the drop shadow is almost transparent just like the actual (red) text, while the rest of the text in the drop shadow is 100% opaque.

Firefox is doing fine here.
Comment 1 gur.trio 2013-09-12 23:40:37 PDT
(In reply to comment #0)
> It is annoying that in Safari/Chrome the ellipsis is treated differently from the normal text if I have this CSS: 
> .txt { 
> text-shadow: 10px 10px 1px #000;
> text-overflow: ellipsis; overflow: hidden; 
> display: block; 
> width: 100px; /* too small for the whole text, so the ellipsis shows */ 
> color: rgba(255,0,0,0.2); 
> }
> 
> You'll see that the ellipsis in the drop shadow is almost transparent just like the actual (red) text, while the rest of the text in the drop shadow is 100% opaque.
> 
> Firefox is doing fine here.

Please add an html file which shows the issue clearly.
Comment 2 Radar WebKit Bug Importer 2013-09-13 10:51:30 PDT
<rdar://problem/14986735>
Comment 3 Jon Lee 2013-09-13 11:15:25 PDT
Created attachment 211566 [details]
Test case
Comment 4 gur.trio 2013-11-14 19:25:11 PST
(In reply to comment #3)
> Created an attachment (id=211566) [details]
> Test case

For the attached test case same behaviour is observed on firefox, chrome and safari.
Can you please confirm so that we can close this bug.
Comment 5 Jon Lee 2014-03-18 08:27:48 PDT
This is not the case. In Firefox I see that the ellipsis is rendered solid black. (The test case for me did not use the custom font, so you see the whole sentence. You need to edit the test case to be longer to see the ellipsis.)
Comment 6 Karl Dubost 2022-06-02 22:03:17 PDT
Created attachment 459993 [details]
rendering in Safari, firefox, chrome

only Safari doesn't show the ellipsis in solid black.