View unanswered posts | View active topics It is currently Sun Nov 17, 2019 7:25 pm

Reply to topic  [ 2 posts ] 
 linear gradient supports percent color-stops? 
Author Message

Joined: Sun Sep 12, 2010 4:18 am
Posts: 10
Post 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

Joined: Wed Jul 14, 2010 11:46 am
Posts: 1452
Post 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
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest

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

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.