Forums
|
|
|
|
Page 1 of 1
|
[ 2 posts ] |
|
linear gradient supports percent color-stops?
| Author |
Message |
|
mueller
Joined: Sun Sep 12, 2010 4:18 am Posts: 10
|
 linear gradient supports percent color-stops?
Does PIE support color-stops with percentages, so for example, you can have the top 10% of the gradient going from red to green and the bottom 90% going from green to blue?
Here's how it's done in webkit: background: -webkit-gradient(linear, left top, left bottom, from(#ff0000), color-stop(10%,#00ff00), to(#0000ff));
You can, of course, easily simulate this when the gradient is strictly vertical or horizontal, but not when it's angled...
|
| Tue Nov 02, 2010 2:04 am |
|
 |
|
jason
Joined: Wed Jul 14, 2010 11:46 am Posts: 1396
|
 Re: linear gradient supports percent color-stops?
PIE supports the CSS3 spec syntax, so yes multiple stops with percentage offsets are supported. You can also use length units other than percentages in the stop offsets, which isn't supported by Webkit's syntax.
|
| Tue Nov 02, 2010 3:38 pm |
|
|
|
Page 1 of 1
|
[ 2 posts ] |
|
Who is online |
Users browsing this forum: Exabot [Bot] and 2 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|