Bug 33318
Summary: | Using rgba in -webkit-gradient causes remaining CSS to stop rendering | ||
---|---|---|---|
Product: | WebKit | Reporter: | Johan Ronsse <johan.ronsse> |
Component: | CSS | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED WORKSFORME | ||
Severity: | Minor | CC: | simon.fraser |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Mac (Intel) | ||
OS: | OS X 10.6 | ||
URL: | http://www.wolfslittlestore.be/static/webkit_gradient_bug.html |
Johan Ronsse
The following code does not behave as expected.
It triggers an error in the CSS parser of Firefox 3.5, Safari 4, the Webkit nightly build stopping it to render the rest of the CSS.
background: -webkit-gradient(linear, left top, left bottom, from(rgba(0,0,0,0.1)), to(rgba(0,0,0.9));
There are two parts to this bug:
1. The parsing of the remaining CSS rules (should skip rule if rgba not supported in -webkit-gradient)
2. Feature support: rgba colors in -webkit-gradient
How to reproduce:
See source of http://www.wolfslittlestore.be/static/webkit_gradient_bug.html
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Johan Ronsse
The stopping of the rendering was because of the syntax error.
The feature support bug remains.
Simon Fraser (smfr)
rgba() colors are supported in -webkit-gradient.