-
Notifications
You must be signed in to change notification settings - Fork 342
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
Missing destination types for some style initiated resources #1324
Comments
For color profiles I would expect a new destination, yes. Probably " Is that all the documentation on SVG shapes? How are they fetched? Would we expect to support other images too? Are they implemented/tested? |
I'm starting to spec that stuff, but I started with the resources that already have a destionation type here. SVG shapes are implemented, not sure about external color profiles. |
I'm asking as from a high-level SVG shapes don't seem to be different from an image fetch. But maybe there's something I'm missing that warrants a different destination for them. |
cc @whatwg/css |
Their internals are used, like a reference to an internal shape in the SVG. Maybe "image" is good enough for this. CSS shape fetching is done with CORS, but I'm not sure if that's defined anywhere or just in implementation. |
It had better be defined somewhere! This otherwise violates the same-origin policy. CSS Shapes Module Level 1 (2014) was pretty specific about using CORS when using images:
Level 2 doesn't mention CORS anywhere, not even for the old stuff. |
I'm fixing that in this pull request. |
If shapes are that old I guess they use "image" as destination today? If so I think that's fine. Giving color profiles their own destination does seem reasonable though, even if CSP will group it with style. |
For CSS color-profiles (https://drafts.csswg.org/css-color-4/#at-profile) Uses `style-src` for CSP. Closes whatwg#1324
Styles can lead to fetching color-profiles and SVG shapes. Which destination types should they use? Maybe they need new ones? (
svg
/color-profile
)?The text was updated successfully, but these errors were encountered: