Bug 79365 - Linear gradients with multiple stops at the same point behave incorrectly
Summary: Linear gradients with multiple stops at the same point behave incorrectly
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-23 07:53 PST by Kenneth Graham
Modified: 2012-02-29 20:38 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kenneth Graham 2012-02-23 07:53:12 PST
Webkit fails to render a 1px vertical red line in the following example:

-webkit-linear-gradient(left, white 0%, white 10px, red 10px, red 11px, white 11px, white 100%);

Instead, it renders solid white.
Comment 1 Kenneth Graham 2012-02-23 07:56:46 PST
However, the following will generate a 4px-wide red line:

-webkit-linear-gradient(left, white 0%, white 10px, red 10px, red 12px, white 12px, white 100%);
Comment 2 Shane Stephens 2012-02-29 20:38:31 PST
Seems to be working in head (Webkit r109280)