W3C home > Mailing lists > Public > public-svg-wg@w3.org > July to September 2010

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

From: Cameron McCormack <cam@mcc.id.au>
Date: Thu, 12 Aug 2010 10:37:43 +1000
To: Leonard Rosenthol <lrosenth@adobe.com>
Cc: 'Alex Danilo' <alex@abbra.com>, Patrick Dengler <patd@microsoft.com>, SVG Working Group WG <public-svg-wg@w3.org>
Message-ID: <20100812003742.GA20135@wok.mcc.id.au>
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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:29:43 UTC