[Webkit-unassigned] [Bug 54841] New: Text overflow ellipsis wrong color when using webkit-text-fill-color

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Feb 20 18:50:41 PST 2011


https://bugs.webkit.org/show_bug.cgi?id=54841

           Summary: Text overflow ellipsis wrong color when using
                    webkit-text-fill-color
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh Intel
        OS/Version: Mac OS X 10.6
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Text
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: luke at dobl.com


Created an attachment (id=83114)
 --> (https://bugs.webkit.org/attachment.cgi?id=83114&action=review)
A repro case

The ellipsis shown when using 'text-overflow: ellipsis' appears to be the wrong color when the text color has been specified using webkit-text-fill-color. I imagine it's rendering the ellipsis using the standard 'color' style. A random, likely wrong, guess after a cursory inspection of the codebase, is that it involves the following in EllipsisBox::paint:

    Color textColor = style->visitedDependentColor(CSSPropertyColor);
    if (textColor != context->fillColor())
        context->setFillColor(textColor, style->colorSpace());


A simple test case is attached.

I've reproduced this in Safari 5.0.3 and webkit nightly 533.19.4, r78794.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list