RE: Switch and Feature Strings

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:

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

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
useful.


| 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?

Regards-
Doug

doug . schepers  @ vectoreal.com
www.vectoreal.com ...for scalable solutions.

Received on Tuesday, 27 September 2005 06:13:04 UTC