diff --git a/css-fonts-4/Overview.bs b/css-fonts-4/Overview.bs index 3d8dfe4bf9c..d01a2f579c4 100644 --- a/css-fonts-4/Overview.bs +++ b/css-fonts-4/Overview.bs @@ -3208,7 +3208,7 @@ downloadable fonts to avoid large page reflows where possible. Font fetching requirements
- To fetch a font given a selected [=/url=] |url| for ''@font-face'' |rule|, + To fetch a font given a selected <> |url| for ''@font-face'' |rule|, [=fetch a style resource|fetch=] |url|, with stylesheet being |rule|'s parent CSS style sheet, destination "font", diff --git a/css-images-4/Overview.bs b/css-images-4/Overview.bs index 945ec631d0e..026625b3cd5 100644 --- a/css-images-4/Overview.bs +++ b/css-images-4/Overview.bs @@ -144,7 +144,7 @@ Fetching External Images {#fetching-images} ------------------------------------------- To fetch an external image for a stylesheet, - given a [=/url=] |url| and {{CSSStyleSheet}} sheet, + given a <> |url| and {{CSSStyleSheet}} sheet, [=fetch a style resource=] given |url|, with stylesheet {{CSSStyleSheet}}, destination "image", diff --git a/css-values-4/Overview.bs b/css-values-4/Overview.bs index 6eb3acb2a2f..dd5b235d518 100644 --- a/css-values-4/Overview.bs +++ b/css-values-4/Overview.bs @@ -1050,8 +1050,8 @@ URL Modifiers URL Processing Model
- To fetch a style resource from [=/url=] |url|, - given a {{CSSStyleSheet}} |sheet|, + To fetch a style resource from [=/url=] or + <> |urlValue|, given a {{CSSStyleSheet}} |sheet|, a string |destination| matching a {{RequestDestination}}, a "no-cors" or "cors" |corsMode|, and an algorithm |processResponse| accepting a [=/response=] and a null, failure or byte @@ -1059,37 +1059,70 @@ URL Processing Model 1. Let |environmentSettings| be |sheet|'s [=relevant settings object=]. - 3. Let |documentBase| be |environmentSettings|'s [=API base URL=]. + 2. Let |base| be |sheet|'s stylesheet base URL if it is not null, otherwise + |environmentSettings|'s [=API base URL=]. [[CSSOM]] - 4. Let |base| be |sheet|'s stylesheet base URL. [[CSSOM]] - - 5. Let |referrer| be |documentBase|. - - 6. If |base| is null, set |base| to |documentBase|. - - 7. Let |parsedUrl| be the result of the [=URL parser=] steps with |url| and |base|. + 3. Let |parsedUrl| be the result of the [=URL parser=] steps with |urlValue|'s [=/url=] and |base|. If the algorithm returns an error, return. - 8. If |corsMode| is "cors", set |referrer| to |sheet|'s - location. [[CSSOM]] - - 9. Let |req| be a new [=/request=] whose [=request/url=] is |parsedUrl|, whose + 4. Let |req| be a new [=/request=] whose [=request/url=] is |parsedUrl|, whose [=request/destination=] is |destination|, [=request/mode=] is |corsMode|, [=request/origin=] is |environmentSettings|'s [=environment settings object/origin=], [=request/credentials mode=] is "same-origin", [=request/use-url-credentials flag=] is set, [=request/client=] is |environmentSettings|, and whose [=request/referrer=] is - |referrer|. + |environmentSettings|'s [=API base URL=]. + + 5. [=Apply request modifiers from URL value=] given |req| and |urlValue|. - 10. If |sheet|'s origin-clean flag is set, set |req|'s - [=request/initiator type=] to "css". [[CSSOM]] + 6. If |req|'s [=request/mode=] is "cors", + set |req|'s [=request/referrer=] to |sheet|'s location. [[CSSOM]] - 11. [=/Fetch|fetching=] |req|, with [=fetch/processresponseconsumebody=] set to - |processResponse|. + 7. If |sheet|'s origin-clean flag is set, + set |req|'s [=request/initiator type=] to "css". [[CSSOM]] + + 8. [=/Fetch=] |req|, + with [=fetch/processresponseconsumebody=] set to |processResponse|.
- Note: Resources loaded through CSS style sheets - are cached and cleared the same as any other resources - linked from the document. +

+Request URL Modifiers

+ + The <>s represent <>s + that affect the resource's [=/request=]. + Each <> has a request modifier steps + which accepts a [=/request=]. + +
+		<> = <> | <> | <>
+		<> = crossorigin(anonymous | use-credentials)
+		<> = integrity(<>)
+		<> = referrerpolicy(no-referrer | no-referrer-when-downgrade | same-origin | origin | strict-origin | origin-when-cross-origin | strict-origin-when-cross-origin | unsafe-url)
+	
+ +
+
<> = crossorigin(anonymous | use-credentials) +
The [=request modifier steps=] for this modifier given [=/request=] |req| are: + 1. Set [=/request=]'s [=request/mode=] to "cors". + + 2. If the given value is ''use-credentials'', set [=/request=]'s + [=request/credentials mode=] to "include". + +
<> = integrity(<>) +
The [=request modifier steps=] for this modifier given [=/request=] |req| are to set + [=/request=]'s [=request/integrity metadata=] to the given <>. + +
<> = referrerpolicy(no-referrer | no-referrer-when-downgrade | same-origin | origin | strict-origin | origin-when-cross-origin | strict-origin-when-cross-origin | unsafe-url) +
The [=request modifier steps=] for this modifier given [=/request=] |req| are to set + [=/request=]'s [=request/referrer policy=] to the {{ReferrerPolicy}} that matches the given value. +
+ +
+ To apply request modifiers from URL value + given a [=/request=] |req| + and a <> |url|, + call the [=request modifier steps=] for |url|'s <>s in sequence + given |req|. +

Numeric Data Types