WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WORKSFORME
93144
[SVG] Clip paths referencing clip-paths do not work
https://bugs.webkit.org/show_bug.cgi?id=93144
Summary
[SVG] Clip paths referencing clip-paths do not work
Stephen Chenney
Reported
2012-08-03 11:00:40 PDT
Created
attachment 156420
[details]
Test case The SVG spec says: The ‘clipPath’ element or any of its children can specify property ‘clip-path’. If a valid ‘clip-path’ reference is placed on a ‘clipPath’ element, the resulting clipping path is the intersection of the contents of the ‘clipPath’ element with the referenced clipping path. If a valid ‘clip-path’ reference is placed on one of the children of a ‘clipPath’ element, then the given child element is clipped by the referenced clipping path before OR'ing the silhouette of the child element with the silhouettes of the other child elements. This is a mild contradiction, in that the clip-path property is not defined to apply to clipPath elements. However, Firefox does the expected thing.
Attachments
Test case
(364 bytes, image/svg+xml)
2012-08-03 11:00 PDT
,
Stephen Chenney
no flags
Details
Reference for correct result
(111 bytes, image/svg+xml)
2012-08-03 11:01 PDT
,
Stephen Chenney
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Stephen Chenney
Comment 1
2012-08-03 11:01:07 PDT
Created
attachment 156421
[details]
Reference for correct result
Dirk Schulze
Comment 2
2012-08-03 15:11:15 PDT
The attached example works for me. And I am pretty sure that it worked since I spend a lot of my time to implement it :P I am aslo not sure what you meant with "that the clip-path property is not defined to apply to clipPath elements"? It is defined.
Philip Rogers
Comment 3
2012-08-03 15:19:10 PDT
This is working for me on Linux/chromium at tip of trunk and 21.0.1180.57 beta.
Stephen Chenney
Comment 4
2012-08-03 15:43:58 PDT
(In reply to
comment #2
)
> The attached example works for me. And I am pretty sure that it worked since I spend a lot of my time to implement it :P > > I am aslo not sure what you meant with "that the clip-path property is not defined to apply to clipPath elements"? It is defined.
If you look at the property index, the thing that lists all the properties and what elements they apply to, it says that "clip-path" can be applied to container and graphics elements. However, the doc for "clip-path" itself says that it can apply to "container elements, graphics elements and clipPath". So the spec is inconsistent with the error certainly in the property index.
Stephen Chenney
Comment 5
2012-08-06 07:24:40 PDT
I cannot reproduce this. Very very odd. I've closed the bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug