Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Unprefixed syntax is incorrect #6

Closed
spizder opened this Issue · 1 comment

2 participants

@spizder

In new, standardized unprefixed syntax, you should be using "to" plus the side you want the gradient to end at.

For example,
background-image: linear-gradient(to bottom, #000000, #FFFFFF);
instead of
background-image: linear-gradient(top, #000000, #FFFFFF); /* this is wrong and will not work! */

http://dev.w3.org/csswg/css3-images/#linear-gradients

@bluesmoon
Owner

cool, got time to send in a patch? might take a while before I can make the change myself.

@bluesmoon bluesmoon referenced this issue from a commit
@bluesmoon Update to latest CSS3 gradient spec
The latest CSS3 spec at http://dev.w3.org/csswg/css3-images/#linear-gradients
specifies that linear gradients should be specified with `to <end-point>` rather
than `<start-point>`.

This patch makes that change as well as updates the example.css

Fixes issue #6
5f5fe12
@bluesmoon bluesmoon closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.