- From: Amelia Bellamy-Royds <amelia.bellamy.royds@gmail.com>
- Date: Tue, 2 Aug 2016 12:20:26 -0600
- To: Paul LeBeau <paul.lebeau@gmail.com>
- Cc: www-svg <www-svg@w3.org>
Received on Tuesday, 2 August 2016 18:21:01 UTC
It was *probably* an XML DTD validation issue, that an element is only able to constrain its immediate children and not all descendents. If you allow a `<g>`, then you allow anything that is a valid child of a `<g>`, which would include things like `<image>` that don't make sense in a clipPath. But the spec is much less tied to DTD validation these days, so that's not a good justification anymore. Furthermore, the clipPath can contain a `<use>`, and the `<use>` can create a copy of an image, so the argument fails on that point. I'd personally prefer to handle the question on the rendering side, anyway, allowing arbitrary containers and just skipping over any embedded content that can't be converted to a vector outline. Have you tested it? What do browsers currently do? Do they ignore the entire group or use the shapes inside it? When you get some data, the correct place to file an issue is the FXTF repo, https://github.com/w3c/fxtf-drafts/issues/ Be sure to start the issue subject with [css-masking]. ~ABR On 2 August 2016 at 10:26, Paul LeBeau <paul.lebeau@gmail.com> wrote: > Hi all > > Just wondering if anyone can remember why groups are not allowed in > clipPaths? > > Paul > >
Received on Tuesday, 2 August 2016 18:21:01 UTC