The .005 bug is just my new parser being overly-restrictive.  I will check in a 
fix.

But I have another question:

If I specify an rbg value in gradient-fill in the components demos, it does not 
work at all.  Have you improved the gradient-fill parser in a way that I do not 
know about?

On 2010-11-16, at 01:01, captain yu wrote:

> Hi all,
> 
> This is Fred Feng.
> I check out the latest OL and try to verify it:
> It can recognize '0' now:
>            gradient-fill: 'top,rgba(0,0,0,0) 0%,rgba(0,0,0,0) 100%';
> But if i use the workaround way previous, will get the following error:
> ERROR: Invalid CSS Color: 'rgba(0,0,0,.005)'
> Is this error expected? or, can't we be compatible with both of them?
> 
> thanks,
> -Fred
> 
> 2010/11/16 P T Withington <[email protected]>
> 
>> On 2010-11-15, at 18:33, André Bargull wrote:
>> 
>>>>   style: Bug discovered by new code -- the color type auto-quotes
>>>>   its value property.  If you want the value to be an expression,
>>>>   you must use ${}.
>>> 
>>> The "menuitembgcolor" uses the old `when="once|always|immediately"`
>> syntax to declare a constraint, basically `<attribute name="menuitembgcolor"
>> value="textfieldcolor" when="once" type="color"/>` should act the same as
>> `<attribute name="menuitembgcolor" value="$once{textfieldcolor}"
>> type="color"/>`.
>> 
>> Hm.  So it does...  need to investigate why that was not working then.
>> 
> 
> 
> 
> -- 
> captain


Reply via email to