[Webkit-unassigned] [Bug 105570] New: Applying multiple Filter Functions may lead to unexpected results

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Dec 20 12:52:42 PST 2012


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

           Summary: Applying multiple Filter Functions may lead to
                    unexpected results
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: CSS
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: eric.lemoine at gmail.com


A -webkit-filter with multiple Filter Functions may lead to unexpected results.

This is an example that illustrates the issue:

#rect {
    width: 200px;
    height: 200px;
    background-color: #ff0000; /* red */
    -webkit-filter: brightness(1) brightness(-1);
}

I would expect the -webkit-filter to be a noop in this case, which means that div should stay red. But, instead, the filter makes it black. It makes it black becasuse the first Filter Function changes the color to #ffffff (white), and the second Filter Function changes the color #000000 (black). In other words clipping occurs each time a Filter Function is applied, instead of on the final result.

See http://jsfiddle.net/jwCgV/ for reproducing.

-- 
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