[csswg-drafts] [css-cascade-4] [css-values-4]: Undefined parsedURL and (#13297)

shannonbooth has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-cascade-4] [css-values-4]: Undefined parsedURL and ==
Fetch a style resource: https://drafts.csswg.org/css-values-4/#fetch-a-style-resource step 6 says:

> 6. If req’s mode is "cors", and sheet is not null, then set req’s referrer to the style resource base URL given cssRuleOrDeclaration. [CSSOM]

However, sheet is not defined in scope at this point. If I am not mistaken, the sheet should probably be the same as the sheet determined in https://drafts.csswg.org/css-values-4/#style-resource-base-url


Similarly, fetch an import https://drafts.csswg.org/css-cascade-4/#fetch-an-import uses parsedUrl on step 3.4 which is not defined by that point:

> 4. Let importedStylesheet be the result of [parsing](https://drafts.csswg.org/css-syntax-3/#parse-a-stylesheet) byteStream given parsedUrl.

I suppose using response's unsafe response URL is what is needed here.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/13297 using your GitHub account


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

Received on Monday, 5 January 2026 18:27:59 UTC