Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support external SVG resources for the 'clip-path', 'fill', 'stroke' and 'marker-*' properties #411

Open
fsoder opened this issue Oct 7, 2024 · 4 comments
Labels
topic: css Spec relates to CSS (Cascading Style Sheets) topic: fetch Relates to the Fetch API topic: loading topic: svg venue: W3C SVG WG Proposal is being reviews in the W3C's SVG Working Group

Comments

@fsoder
Copy link

fsoder commented Oct 7, 2024

WebKittens

No response

Title of the proposal

Support external SVG resources for the 'clip-path', 'fill', 'stroke' and 'marker-*' properties

URL to the spec

https://svgwg.org/svg2-draft/linking.html#URLReference

URL to the spec's repository

https://github.com/w3c/svgwg/

Issue Tracker URL

No response

Explainer URL

No response

TAG Design Review URL

No response

Mozilla standards-positions issue URL

No response

WebKit Bugzilla URL

No response

Radar URL

No response

Description

Resources in external SVG documents can be referenced from the filter (filter graphs) and mask-image (<mask> elements) properties. This proposes to allow the same for the clip-path, fill, stroke and marker-* properties.

This has shipped in Gecko for over a decade.

@annevk
Copy link
Contributor

annevk commented Oct 7, 2024

Did you see whatwg/fetch#1012? There's been a couple of recent comments. In general the lack of proper Fetch integration is what is most concerning about these features.

@annevk annevk added topic: css Spec relates to CSS (Cascading Style Sheets) topic: svg venue: W3C SVG WG Proposal is being reviews in the W3C's SVG Working Group labels Oct 7, 2024
@annevk
Copy link
Contributor

annevk commented Oct 7, 2024

cc @shallawa @smfr

@fsoder
Copy link
Author

fsoder commented Oct 7, 2024

Did you see whatwg/fetch#1012? There's been a couple of recent comments. In general the lack of proper Fetch integration is what is most concerning about these features.

Hadn't seen that one in a while. The <use> case is probably the most interesting one there though - not the cases mentioned here (which could as well be "image" for legacy reasons).

@shallawa
Copy link

shallawa commented Oct 8, 2024

WebKit added support for external SVG resources for filter and mask. And for clip-path we have this bug
https://bugs.webkit.org/show_bug.cgi?id=104442. This allows referencing SVG resources from HTML elements through CSS. I think supporting external resources for the rest of SVG resources fill, stroke and marker-* makes sense.

@othermaciej othermaciej added topic: loading topic: fetch Relates to the Fetch API labels Nov 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: css Spec relates to CSS (Cascading Style Sheets) topic: fetch Relates to the Fetch API topic: loading topic: svg venue: W3C SVG WG Proposal is being reviews in the W3C's SVG Working Group
Projects
None yet
Development

No branches or pull requests

4 participants