Re: 1.1 2nd edition last call comment : fill-rule on text elements

Leonard Rosenthol:
> But couldn't you achieve the same thing by putting the fill-rule on a
> <g> instead of the <text>?

Sure.  I don’t think that is an argument for disallowing the ‘fill-rule’
presentation attribute on <text> elements, though.  Why not then
disallow ‘fill’ because you can place it on a <g>?

All stylable elements allow all presentation attributes on them (in
terms of document validity, and effect on the element’s computed style),
regardless of whether they apply.  (And in this case, it does apply
anyway, due to the inheritance-into-SVG-font case that I mentioned.) If
you did just disallow the ‘fill-rule’ presentation attribute, you could
get around it by

  * using a CSS style sheet to apply to the <text>
  * specifying style="fill-rule: evenodd" on the <text>
  * inheriting it from a parent element, as you mentioned

It would seem strange for the effect to still apply but to disallow it
being specified using a presentation attribute.

It would also be inconsistent to prevent fill-rule from having any
effect on <text> elements, without revisting the decision to inherit all
properties from <text> into complex SVG Font glyphs.

-- 
Cameron McCormack ≝ http://mcc.id.au/

Received on Thursday, 12 August 2010 00:38:30 UTC