W3C home > Mailing lists > Public > www-style@w3.org > December 2013

Re: [css-masking] clip-rule

From: Dirk Schulze <dschulze@adobe.com>
Date: Mon, 16 Dec 2013 23:53:52 +0000
To: fantasai <fantasai.lists@inkedblade.net>
CC: www-style <www-style@w3.org>
Message-ID: <4960BF4F-AA2F-4544-A60D-4DD24FB49A78@adobe.com>

On Dec 17, 2013, at 12:30 AM, fantasai <fantasai.lists@inkedblade.net> wrote:

> On 12/13/2013 11:27 AM, Dirk Schulze wrote:
>> 
>> On Dec 13, 2013, at 8:09 PM, Tab Atkins Jr. <jackalmage@gmail.com> wrote:
>> 
>>> On Wed, Dec 11, 2013 at 7:54 AM, Dirk Schulze <dschulze@adobe.com> wrote:
>>>> Hi,
>>>> 
>>>> On Dec 11, 2013, at 11:46 AM, fantasai <fantasai.lists@inkedblade.net> wrote:
>>>> 
>>>>>  7. clip-rule is not defined. At all. There's some syntax, an explanation
>>>>>     of how the two values differ, and an example, but no definition
>>>>>     of what the property actually *does*.
>>>> 
>>>> I put the explanation into the example [1]. Examples are normative.
>>> 
>>> Examples are informative.
>> 
>> Thanks for the clarification.
>> 
>> The definition of clip-rule is still complete. fill-rule is normatively
>> referenced. It is said that UAs must follow what fill-rule does and there
>> is a normative paragraph that clip-rule just applies to descendants of
>> the <clipPath> element.
> 
> I can infer that 'evenodd' and 'nonzero' on 'clip-rule' are interpreted
> analogously to 'fill-rule', but nothing says how it is interpreted for
> clipping. Nothing says that it applies to the clipping path, for example,
> as opposed to some other polygon.

Well, because it doesn’t (depending what you see as clipping path). The spec says:

“"
The clip-rule property only applies to graphics elements that are contained within a <clipPath> element.
“"

As an example (from the spec):

  <clipPath id="MyClip">
    <path d="..." clip-rule="evenodd" />
  </clipPath>

Here the clip-rule property applies to the <path> element. The meaning of clip-rule even odd is the same as for fill-rule (also in the spec).

Greetings,
Dirk

> 
> You need a real definition here.
> 
> ~fantasai
> 
Received on Monday, 16 December 2013 23:54:54 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:17 UTC