Skip to content

Commit f75d37e

Browse files
[css-fonts-4] Use “create a potential-CORS request”
This change makes the CSS Fonts spec reference the “create a potential-CORS request” algorithm from the HTML spec. Otherwise, without this change, the CSS Fonts spec references “potentially CORS-enabled fetch”, which is an obsolete algorithm that no longer exists either in the Fetch spec nor in HTML.
1 parent 1625dd7 commit f75d37e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

css-fonts-4/Overview.bs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2698,9 +2698,9 @@ downloadable fonts to avoid large page reflows where possible.
26982698
<h4 id="font-fetching-requirements" oldids="same-origin-restriction,allowing-cross-origin-font-loading">
26992699
Font fetching requirements</h4>
27002700

2701-
For font loads, user agents must use the
2702-
<a href="https://fetch.spec.whatwg.org/#fetching">potentially CORS-enabled fetch</a>
2703-
method defined by the [[!HTML]] specification for URL's defined
2701+
For font loads, user agents must
2702+
<a href="https://html.spec.whatwg.org/#create-a-potential-cors-request">create a potential-CORS request</a>,
2703+
as defined by the [[!HTML]] specification for URL's defined
27042704
within @font-face rules. When fetching, user agents must use
27052705
"Anonymous" mode, set the referrer source to the stylesheet's URL and
27062706
set the origin to the URL of the containing document.
@@ -2711,8 +2711,8 @@ takes steps to permit cross-origin loads. Sites can explicitly allow
27112711
cross-site loading of font data using the <code>Access-Control-Allow-Origin</code>
27122712
HTTP header. For other schemes, no explicit mechanism to allow
27132713
cross-origin loading, beyond what is permitted by the
2714-
<a href="https://fetch.spec.whatwg.org/#fetching">potentially CORS-enabled fetch</a>
2715-
method, is defined or required.
2714+
<a href="https://html.spec.whatwg.org/#create-a-potential-cors-request">create a potential-CORS request</a>,
2715+
algorithm, is defined or required.
27162716

27172717
<div class="example">
27182718
For the examples given below, assume that a document is located at

0 commit comments

Comments
 (0)