W3C home > Mailing lists > Public > www-style@w3.org > August 2012

[css3-exclusions] remove <fill-rule> from "polygon()" syntax

From: Dirk Schulze <dschulze@adobe.com>
Date: Tue, 28 Aug 2012 06:45:21 -0700
To: www-style list <www-style@w3.org>
Message-ID: <3C6B0F43-2043-4944-9308-352B642D8DF1@adobe.com>
Hi,

I think the keywords for <fill-rule> should be removed from the syntax of 'polygon()'[1]. I think the shapes on the exclusion spec can be reused in other contexts as well. One example is <shape> as shorthand for 'clip-path' in the CSS Masking[2] spec. But for 'clip-path' we already have the 'clip-rule' property with the values 'nonzero' and 'evenodd' [3].

I would suggest using the 'fill-rule' property from SVG [4] to specify the fill rule on 'polygon()'. This property is already implemented by all browsers anyway.

Greetings,
Dirk

[1] http://dev.w3.org/csswg/css3-exclusions/#shapes-from-svg-syntax
[2] http://dvcs.w3.org/hg/FXTF/raw-file/tip/masking/index.html#the-clip-path
[3] http://dvcs.w3.org/hg/FXTF/raw-file/tip/masking/index.html#the-clip-rule
[4] http://www.w3.org/TR/SVG/painting.html#FillProperties
Received on Tuesday, 28 August 2012 13:45:52 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:59 GMT