|CSS3 PIE Forums
|linear gradient supports percent color-stops?
|Page 1 of 1|
|Author:||mueller [ Tue Nov 02, 2010 2:04 am ]|
|Post subject:||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...
|Author:||jason [ Tue Nov 02, 2010 3:38 pm ]|
|Post subject:||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.
|Page 1 of 1||All times are UTC - 7 hours [ DST ]|
|Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group