← Back to release summary

CSS: Use the response URL as the base URL

Category
CSS
Type
New or changed feature
Status
Enabled by default (Chrome 73)
Intent stage
None

Summary

The base URL of stylesheets is now the response URL of the stylesheet rather than the request URL. These are only different if a service worker provided the response. If the service worker does respondWith(fetch(url)), the base URL becomes url. Also, to align with the specification, stylesheets that (a) failed to load due to network error, or (b) loaded via a redirect from cross-origin back to same-origin are considered cross-origin.

Standards & signals

View on chromestatus.com