-
Notifications
You must be signed in to change notification settings - Fork 268
CSS URL Request Modifiers #3930
Copy link
Copy link
Open
Labels
feature definitionCreating or defining new features or groups of features.Creating or defining new features or groups of features.feature entry requestA request for a new web platform feature entryA request for a new web platform feature entry
Metadata
Metadata
Assignees
Labels
feature definitionCreating or defining new features or groups of features.Creating or defining new features or groups of features.feature entry requestA request for a new web platform feature entryA request for a new web platform feature entry
Specification
https://drafts.csswg.org/css-values-5/#request-url-modifiers
Description
CSS URL request modifiers allow authors to control fetch behavior for resources loaded via the
url()function by specifyingcross-origin(),integrity(), andreferrer-policy()modifiers after the URL string. For example:background-image: url("image.png" cross-origin(anonymous) referrer-policy(no-referrer)).Documentation
https://drafts.csswg.org/css-values-5/#request-url-modifiers
Browser support
Safari/WebKit: Shipped (cross-origin and referrer-policy; integrity gated behind separate flag)
Chromium: Implementation in progress (by me) - https://chromestatus.com/feature/5111997147512832
Firefox: Not implemented