[Bug 25406] New: Use regular <group>, <path>, etc for ClipPath or Mask

https://www.w3.org/Bugs/Public/show_bug.cgi?id=25406

            Bug ID: 25406
           Summary: Use regular <group>, <path>, etc for ClipPath or Mask
           Product: SVG
           Version: SVG 2.0
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Clipping
          Assignee: schepers@w3.org
          Reporter: fabmud+w3c@gmail.com
        QA Contact: www-svg@w3.org

Created attachment 1471
  --> https://www.w3.org/Bugs/Public/attachment.cgi?id=1471&action=edit
photoshop's clipping mask

For SVG 2.0 I think it would be beneficial to drop the <mask> and <clipPath>
tags. It seems silly that both of the tags have very similar functions and
attributes yet mask="url(#...)" MUST point to a <mask> and clip-path="url(#...)
MUST point to a <clipPath>. The fact along that these can't be interchangeable
is evidence enough that it could be improved.

Instead, I propose we allow clip-path and mask attributes to point to regular
elements.
- If the clip-path'd element is inside <defs> then it doesn't render to the
page.
- Else it's outside of <defs> and it does render to the page.

The latter case, which would be new functionality is implemented fairly well.


For example, compare this pseudo-code of an eye with the attached image.

<path id="sclera" d="..." style="stroke-width:2; fill:tan; stroke:#c96;"/>
<path id="pupil"  d="..." style="stroke-width:20; fill:#000; stroke:#09c;"
clip-path="url(#sclera)"/>

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Monday, 21 April 2014 18:47:30 UTC