Bug 33318 - Using rgba in -webkit-gradient causes remaining CSS to stop rendering
Summary: Using rgba in -webkit-gradient causes remaining CSS to stop rendering
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac (Intel) OS X 10.6
: P2 Minor
Assignee: Nobody
URL: http://www.wolfslittlestore.be/static...
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-07 04:17 PST by Johan Ronsse
Modified: 2010-01-30 21:24 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 Johan Ronsse 2010-01-07 04:17:57 PST
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
Comment 1 Johan Ronsse 2010-01-07 04:32:35 PST
The stopping of the rendering was because of the syntax error.

The feature support bug remains.
Comment 2 Simon Fraser (smfr) 2010-01-30 21:24:01 PST
rgba() colors are supported in -webkit-gradient.