Bug 53043 - -webkit-linear-gradient doesn't support position and angle simultaneously
Summary: -webkit-linear-gradient doesn't support position and angle simultaneously
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Simon Fraser (smfr)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-24 13:40 PST by Sean Patrick O'Brien
Modified: 2011-01-29 11:50 PST (History)
1 user (show)

See Also:


Attachments
Example file demonstrating the problem (329 bytes, text/html)
2011-01-24 13:40 PST, Sean Patrick O'Brien
no flags Details
WebKit screenshot (2.36 KB, image/png)
2011-01-24 13:40 PST, Sean Patrick O'Brien
no flags Details
Firefox Screenshot (19.11 KB, image/png)
2011-01-24 13:41 PST, Sean Patrick O'Brien
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sean Patrick O'Brien 2011-01-24 13:40:14 PST
Created attachment 79968 [details]
Example file demonstrating the problem

WebKit's implementation of linear-gradient doesn't support combinations of start position and angle parameters as specified by the draft: http://dev.w3.org/csswg/css3-images/#linear-gradients
Example attached, along with screenshots from Firefox 4.0b9 and WebKit Nightly r76498.
Comment 1 Sean Patrick O'Brien 2011-01-24 13:40:54 PST
Created attachment 79970 [details]
WebKit screenshot
Comment 2 Sean Patrick O'Brien 2011-01-24 13:41:13 PST
Created attachment 79971 [details]
Firefox Screenshot
Comment 3 Simon Fraser (smfr) 2011-01-29 11:50:31 PST
We are compliant with the current spec. The syntax for linear-gradient is:
<linear-gradient> = linear-gradient(
[ 
	[ [top | bottom] || [left | right] ] 
	| 
	<angle>
,]? 
<color-stop>[, <color-stop>]+
);

so you provide either a start point, or an angle, but not both.