On Tue, 26 Jun 2012 16:06:36 +0200, Arjen <arjenmeije...@telfort.nl> wrote:

>
>
>
> --- In svg-developers@yahoogroups.com, "Erik Dahlstrom" <ed@...> wrote:
>> > 1. Is a negative dx allowed? Firefox 13 / Opera 12 ignore it, Chrome  
>> 19 and IE 9 apply it.
>
> the problem is dx="-.3em" in the line
> <text stroke="none" fill="black" text-anchor="end" dy=".35em" dx="-.3em"  
> y="37.5" x="16.400000000000006">-37</text>
>
>> > 2. Is a color name allowed in a gradient? Firefox 13 displays it
>> > correct. Opera, Chrome and IE display a black bar.
>
>> Here is the buggy part in your markup:
>>
>>    fill="url(#gradientPositive"
>
> Sorry. The document passed http://validator.w3.org/check successfully,  
> which is so to see no guaranty the code is correct.

I don't know of any validators for svg that check the attribute values.  
Your content is markupwise valid (ignoring all the attribute values), but  
the correct rendering for an invalid fill attribute is black (same as not  
specifying fill at all).

Browsers will often be helpful and put some warnings in the error console  
for you if the content is invalid in some way. For example if you run the  
svg that you posted in Opera, this is an example of what you would see in  
the console:

     Failed attribute on rect element: fill="url(#gradientPositive".


Cheers
-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed


------------------------------------

-----
To unsubscribe send a message to: svg-developers-unsubscr...@yahoogroups.com
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
----Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    svg-developers-dig...@yahoogroups.com 
    svg-developers-fullfeatu...@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
    svg-developers-unsubscr...@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Reply via email to