Skip to content

Commit

Permalink
Add colorprofile destination
Browse files Browse the repository at this point in the history
For CSS color-profiles
(https://drafts.csswg.org/css-color-4/#at-profile)

Uses `style-src` for CSP.

Closes whatwg#1324
  • Loading branch information
noamr committed Oct 12, 2021
1 parent 6f37b51 commit c2107c0
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions fetch.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1402,6 +1402,7 @@ JavaScript. [[!CSP]] [[!MIX]]
the empty string,
"<code>audio</code>",
"<code>audioworklet</code>",
"<code>colorprofile</code>",
"<code>document</code>",
"<code>embed</code>",
"<code>font</code>",
Expand Down Expand Up @@ -1520,6 +1521,10 @@ not always relevant and might require different behavior.
<td>"<code>style</code>"
<td><code>style-src</code>
<td>HTML's <code>&lt;link rel=stylesheet></code>, CSS' <code>@import</code>
<tr>
<td>"<code>colorprofile</code>"
<td><code>style-src</code>
<td>CSS <code>@color-profile</code>
<tr>
<td>"<code>track</code>"
<td><code>media-src</code>
Expand Down Expand Up @@ -1840,9 +1845,9 @@ otherwise, it is unset.

<p>A <dfn export>subresource request</dfn> is a <a for=/>request</a>
whose <a for=request>destination</a> is "<code>audio</code>", "<code>audioworklet</code>",
"<code>font</code>", "<code>image</code>", "<code>manifest</code>", "<code>paintworklet</code>",
"<code>script</code>", "<code>style</code>", "<code>track</code>", "<code>video</code>",
"<code>xslt</code>", or the empty string.
"<code>colorprofile</code>" "<code>font</code>", "<code>image</code>", "<code>manifest</code>",
"<code>paintworklet</code>", "<code>script</code>", "<code>style</code>", "<code>track</code>",
"<code>video</code>", "<code>xslt</code>", or the empty string.

<p>A <dfn export>non-subresource request</dfn> is a <a for=/>request</a>
whose <a for=request>destination</a> is "<code>document</code>", "<code>embed</code>",
Expand Down Expand Up @@ -6547,7 +6552,7 @@ dictionary RequestInit {
any window; // can only be set to null
};

enum RequestDestination { "", "audio", "audioworklet", "document", "embed", "font", "frame", "iframe", "image", "manifest", "object", "paintworklet", "report", "script", "sharedworker", "style", "track", "video", "worker", "xslt" };
enum RequestDestination { "", "audio", "audioworklet", "colorprofile", "document", "embed", "font", "frame", "iframe", "image", "manifest", "object", "paintworklet", "report", "script", "sharedworker", "style", "track", "video", "worker", "xslt" };
enum RequestMode { "navigate", "same-origin", "no-cors", "cors" };
enum RequestCredentials { "omit", "same-origin", "include" };
enum RequestCache { "default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached" };
Expand Down

0 comments on commit c2107c0

Please sign in to comment.