Re: [csswg-drafts] [css-values] Define crossorigin, preload and async URL modifiers (#1603)

I think this is important. I'd be to make an initial PR.
I believe we should be careful with `preload` - not sure if we want to make it so that CSS actively loads anything but imported stylesheets, when the DOM might not even have that image. The problem of unused preload is pretty common on the web, and this might make it worse.

Perhaps we can start with standard loading modifiers (`crossorigin` and `integrity`) and expand it to `async` and perhaps `preload` later?

Based on `url-modifier`, suggesting it would look like:
`background-image`: url('...' [crossorigin](https://html.spec.whatwg.org/#attr-link-crossorigin)(`anonymous`) [integrity](https://html.spec.whatwg.org/#attr-link-integrity)(sha1-blabla01234) [referrerpolicy](https://html.spec.whatwg.org/#attr-link-integrity)(`same-origin`))`



-- 
GitHub Notification of comment by noamr
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1603#issuecomment-1349314544 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 13 December 2022 18:00:06 UTC