Bug 53043

Summary: -webkit-linear-gradient doesn't support position and angle simultaneously
Product: WebKit Reporter: Sean Patrick O'Brien <sean.patrick.obrien>
Component: CSSAssignee: Simon Fraser (smfr) <simon.fraser>
Status: RESOLVED WONTFIX    
Severity: Normal CC: simon.fraser
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Example file demonstrating the problem
none
WebKit screenshot
none
Firefox Screenshot none

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.