File tree Expand file tree Collapse file tree 4 files changed +28
-10
lines changed Expand file tree Collapse file tree 4 files changed +28
-10
lines changed Original file line number Diff line number Diff line change @@ -3992,6 +3992,17 @@ Specifying a color profile: the ''@color-profile'' at-rule</h3>
39923992 which reference this profile
39933993 are <a>invalid color</a> s.
39943994
3995+ To <dfn>fetch an external color profile</dfn> , given a
3996+ ''@color-profile'' rule |rule|,
3997+ [=fetch a style resource=] given |rule|'s URL,
3998+ with stylesheet being |rule|'s <a spec=cssom for=CSSRule>parent CSS style sheet</a> ,
3999+ destination "color-profile",
4000+ CORS mode "no-cors",
4001+ and processResponse being the following steps given [=/response=] |res| and null, failure or
4002+ a byte stream |byteStream|:
4003+ If |byteStream| is a byte stream,
4004+ apply the color profile as parsed from |byteStream.
4005+
39954006 Note: The Internet Media Type ("MIME type")
39964007 for ICC profiles is
39974008 <a href="https://www.iana.org/assignments/media-types/application/vnd.iccprofile">application/vnd.iccprofile</a> .
Original file line number Diff line number Diff line change 1- <pre class='metadata'>
1+ uel <pre class='metadata'>
22Title : CSS Images Module Level 4
33Status : ED
44Work Status : Exploring
@@ -139,6 +139,18 @@ Image References: the ''url()'' notation {#url-notation}
139139Note: No change from [[css3-images]] .
140140
141141
142+ Fetching External Images
143+ ------------------------------------------------------------------------------------------
144+ To <dfn>fetch an external image for a stylesheet</dfn> ,
145+ given a [=/url=] |url| and {{CSSStyleSheet}} sheet,
146+ [=fetch a style resource=] given |url|,
147+ with stylesheet {{CSSStyleSheet}} ,
148+ destination "image",
149+ CORS mode "no-cors",
150+ and processResponse being the following steps given [=/response=] |res| and null, failure or
151+ a byte stream |byteStream|:
152+ If |byteStream| is a byte stream, load the image from the byte stream.
153+
142154
143155<!--
144156████ ██ ██ ███ ██████ ████████ ██████ ████████ ████████ ███ ███
Original file line number Diff line number Diff line change @@ -427,13 +427,8 @@ Shapes from Image</h3>
427427Fetching external shapes</h2>
428428
429429 To <dfn>fetch an external resource for a shape</dfn> , either an SVG or an image, given a
430- {{CSSStyleRule}} |rule|:
431- 1. Let |parsedUrl| be the result of the [=URL parser=] steps with |rule|'s URL and |rule|' s
432- |parentStylesheet|'s <a spec=cssom>location</a> .
433- If the algorithm returns an error,
434- return. [[CSSOM]]
435-
436- 2. [=Fetch a style resource=] given |parsedUrl|,
430+ {{CSSStyleRule}} |rule|,
431+ [=fetch a style resource=] given |rule|'s URL,
437432 with stylesheet being |rule|'s <a spec=cssom for=CSSRule>parent CSS style sheet</a> ,
438433 destination "image",
439434 CORS mode "cors",
Original file line number Diff line number Diff line change @@ -1021,8 +1021,8 @@ URL processing model</h4>
10211021 <a spec=cssom>location</a> . [[CSSOM]]
10221022
10231023 10. Let |req| be a new [=/request=] whose [=request/url=] is |parsedUrl|, whose
1024- [=request/destination=] is |destination|, [=request/mode=] is |mode|, [=request/origin=]
1025- is |environmentSettings|'s [=environment settings object/origin=] ,
1024+ [=request/destination=] is |destination|, [=request/mode=] is |corsMode|,
1025+ [=request/origin=] is |environmentSettings|'s [=environment settings object/origin=] ,
10261026 [=request/credentials mode=] is "same-origin", [=request/use-url-credentials flag=] is
10271027 set, and whose [=request/header list=] is a [=/header list=] containing a [=header=]
10281028 with its [=header/name=] set to "referrer" and its [=header/value=] set to |referrer|.
You can’t perform that action at this time.
0 commit comments