@@ -24,6 +24,8 @@ spec:css-color-4; type:property; text:color
24
24
spec:css-values; type:value; text:ex
25
25
spec:css22; type:value; for:/; text:block
26
26
spec:html; type:element; text:font
27
+ spec:fetch; type:dfn; for:/; text:request
28
+ spec:fetch; type:dfn; for:/; text:fetch
27
29
</pre>
28
30
29
31
@@ -2698,21 +2700,18 @@ downloadable fonts to avoid large page reflows where possible.
2698
2700
<h4 id="font-fetching-requirements" oldids="same-origin-restriction,allowing-cross-origin-font-loading">
2699
2701
Font fetching requirements</h4>
2700
2702
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
2704
- within @font-face rules. When fetching, user agents must use
2705
- "Anonymous" mode, set the referrer source to the stylesheet's URL and
2706
- set the origin to the URL of the containing document.
2703
+ For font loads from @font-face rules, user agents must create a <a>request</a>
2704
+ whose <var> url</var> is the URL given by the @font-face rule, whose <var> referrer</var>
2705
+ is the stylesheet's URL, and whose <var> origin</var> is the URL of the containing document.
2707
2706
2708
2707
Note: The implications of this for authors are that fonts
2709
2708
will typically not be loaded cross-origin unless authors specifically
2710
2709
takes steps to permit cross-origin loads. Sites can explicitly allow
2711
2710
cross-site loading of font data using the <code> Access-Control-Allow-Origin</code>
2712
2711
HTTP header. For other schemes, no explicit mechanism to allow
2713
2712
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.
2713
+ <a> fetch</a>
2714
+ algorithm , is defined or required.
2716
2715
2717
2716
<div class="example">
2718
2717
For the examples given below, assume that a document is located at
0 commit comments