Re: About current gradients (Re: minutes, SVG WG Seattle F2F 2011 day 3)

Le 19/08/2011 10:48, Dirk Schulze a écrit :
>
> Am 19.08.2011 um 10:46 schrieb Dirk Schulze:
>
>> Am 19.08.2011 um 10:33 schrieb Cyril Concolato:
>>
>>> Cameron,
>>>
>>> Le 04/08/2011 17:43, Cyril Concolato a écrit :
>>>>> I've made two examples showing how the gradients are built. Have a look here:
>>>>> http://concolato.wp.institut-telecom.fr/2011/08/04/svg-radialgradients/
>>>> I forgot to mention for the edge example, notice how Firefox behaves differently (even for points located on the left of the focal point) from other browsers (the black circle is not aligned with the gradient circles).
>>> Any idea about the reasons for this behavior ?
>> I commented on IRC during the telcon yesterday. Firefox does never position the focal point on the edge. It always moves the point into the circle. On WebKit we follow the behavior of Firefox [1].
>> The main reason for us was the test pservers-grad-13-b [2]. We had different results across our if we position the focal point on the edge. This does not happen on moving the focal point into the circle.
>>
>> Dirk
>>
>> [1] http://trac.webkit.org/browser/trunk/Source/WebCore/svg/SVGRadialGradientElement.cpp#L224
>> [2] http://dev.w3.org/SVG/profiles/1.1F2/test/svg/pservers-grad-13-b.svg
>>
>
> *We had different results across our different ports and platforms if we position the focal point on the edge...
>
> Sorry.
Thanks, I missed that part during the telcon. Your code shows that you clamp the focalPoint to 99% of the radius. Is there a particular reason? What happens if the radius is large, is the 1% difference still not visible?

Cyril


-- 
Cyril Concolato
Maître de Conférences/Associate Professor
Groupe Multimedia/Multimedia Group
Telecom ParisTech
46 rue Barrault
75 013 Paris, France
http://concolato.wp.institut-telecom.fr/

Received on Friday, 19 August 2011 08:56:22 UTC