W3C home > Mailing lists > Public > www-svg@w3.org > September 2005

RE: Switch and Feature Strings

From: Doug Schepers <doug@schepers.cc>
Date: Tue, 27 Sep 2005 02:12:31 -0400
To: "'Chris Lilley'" <chris@w3.org>, "'www-svg'" <www-svg@w3.org>
Message-Id: <20050927061236.0680686245@plunder.dreamhost.com>

Hi, Chris-

Thanks for your reply.

| DS> I tried setting up a 'switch' with 'textPath', since FF1.5b1 does 
| DS> have some text support, but not 'textPath' (or 'tspan', among 
| DS> others). But it seems that switch does not support this 
| degree of granularity.
| Could you give a snippet of svg to illustrate?
| You mean like
| <switch>
|   <textPath sometestattr ....>blah on a path</textPath>
|   <text>blah</text>
| <switch>

Well, this sample doesn't work, but I don't know if I'm simply doing
something wrong:

   <g requiredFeatures='http://www.w3.org/TR/SVG11/feature#textPath'>
         <path id='textPath' d='M50,200 C100,50 450,50 550,200' />
      <text text-anchor='middle' font-size='85px'><textPath
xlink:href='#textPath' startOffset='50%'>Sample Text</textPath></text>
      <text x='300' y='90' text-anchor='middle' font-size='85px'>Sample

What I would have expected and liked would be for the ability to use a
requiredFeature string at the 'textPath' element level, not just the 'text'
module level. In partial implementations, I expect that that would be very

| DS>  Am I misreading the
| DS> Spec, or misusing switch? If it isn't addressed in the 
| Spec, perhaps 
| DS> it should be; not all UAs will have every feature from a module, 
| DS> realistically, and I'd like to use 'switch' to provide fallbacks.
| That is the intent, yes - to test and provide fallbacks.

Yes, I just don't know if perhaps I was using it incorrectly. Is there some
way to test for a specific element being implemented?


doug . schepers  @ vectoreal.com
www.vectoreal.com ...for scalable solutions.
Received on Tuesday, 27 September 2005 06:13:04 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:47:04 UTC