Bug 63058 - text overflow ellipsis and whitespace no wrap can produce background colour artifact
Summary: text overflow ellipsis and whitespace no wrap can produce background colour a...
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows Server 2003
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-21 01:56 PDT by Luke
Modified: 2011-06-22 00:44 PDT (History)
2 users (show)

See Also:


Attachments
reproduces problem (796 bytes, text/html)
2011-06-21 01:56 PDT, Luke
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Luke 2011-06-21 01:56:59 PDT
Created attachment 97950 [details]
reproduces problem

See test case.

If I have span

New Zealand

and I am cutting off from w onwards and inserting an ellipsis, I would not expect background colours from the cut off text to be applied to the parent span. It appears broken in IE and Chrome and I will be raising a question on the mozilla text overflow bug.
Comment 1 Helder Magalhães 2011-06-21 10:58:51 PDT
(In reply to comment #0)
> I will be raising a question on the mozilla text overflow bug.

That would be https://bugzilla.mozilla.org/show_bug.cgi?id=312156#c305 ;-)
Comment 2 Luke 2011-06-22 00:44:43 PDT
As pointed out on the mozilla bug, it seems this is what is specified to happen

"(In reply to comment #305)
"Hide characters and atomic inline-level elements at the end edge of the line as necessary to fit the ellipsis."
http://dev.w3.org/csswg/css3-ui/#text-overflow

In your example, the red background belongs to a non-atomic inline,
which is still displayed even though its text is removed.

I don't see any error in IE9 or Chrome13 for your testcase, this is how
Firefox will render it as well."