Skip to content

Commit e3e1b2e

Browse files
author
John Daggett
committed
[css3-fonts] fabulous fickle font fetching
1 parent 370daa5 commit e3e1b2e

1 file changed

Lines changed: 34 additions & 3 deletions

File tree

css-fonts/Fonts.html

Lines changed: 34 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,15 +115,15 @@
115115

116116
<h1>CSS Fonts Module Level 3</h1>
117117

118-
<h2 class="no-num no-toc" id=editors-draft-16-august-2013>Editor's Draft
119-
16 August 2013</h2>
118+
<h2 class="no-num no-toc" id=editors-draft-19-august-2013>Editor's Draft
119+
19 August 2013</h2>
120120

121121
<dl id=authors>
122122
<dt>This version:
123123

124124
<dd><a
125125
href="http://dev.w3.org/csswg/css-fonts/">http://dev.w3.org/csswg/css-fonts/</a>
126-
<!-- <dd><a href="http://www.w3.org/TR/2013/ED-css-fonts-3-20130816/">http://www.w3.org/TR/2013/ED-css-fonts-3-20130816/</a> -->
126+
<!-- <dd><a href="http://www.w3.org/TR/2013/ED-css-fonts-3-20130819/">http://www.w3.org/TR/2013/ED-css-fonts-3-20130819/</a> -->
127127

128128

129129
<dt>Latest version:
@@ -3041,6 +3041,35 @@ <h3 id=font-fetching-requirements><span class=secno>4.9 </span>Font
30413041
href="http://www.w3.org/TR/html5/infrastructure.html#cors-enabled-fetch">potentially
30423042
CORS-enabled fetch</a> method, is defined or required.
30433043

3044+
<div class=example> For the examples given below, assume that a document is
3045+
located at <code>http://example.com/page.html</code> and all URL's link to
3046+
valid font resources supported by the user agent. Fonts defined with the
3047+
<a href="#descdef-src"><code class=property>src</code></a>
3048+
descriptor values below will be loaded:
3049+
<pre>/* same origin (i.e. domain, scheme, port match document) */
3050+
src: url(fonts/simple.woff);
3051+
src: url(//fonts/simple.woff);
3052+
3053+
/* data url's with no redirects are treated as same origin */
3054+
src: url("data:application/font-woff;base64,...");
3055+
3056+
/* cross origin, different domain */
3057+
/* Access-Control-Allow-Origin response header set to '*' */
3058+
src: url(http://another.example.com/fonts/simple.woff);
3059+
</pre>
3060+
Fonts defined with the ‘<a href="#descdef-src"><code
3061+
class=property>src</code></a>’ descriptor values below will fail to
3062+
load:
3063+
<pre>/* cross origin, different scheme */
3064+
/* no Access-Control-xxx headers in response */
3065+
src: url(https://example.com/fonts/simple.woff);
3066+
3067+
/* cross origin, different domain */
3068+
/* no Access-Control-xxx headers in response */
3069+
src: url(http://another.example.com/fonts/simple.woff);
3070+
</pre>
3071+
</div>
3072+
30443073
<h2 id=font-matching-algorithm><span class=secno>5 </span>Font Matching
30453074
Algorithm</h2>
30463075

@@ -5876,6 +5905,8 @@ <h3 class=no-num id=recent-changes> Changes from the <a
58765905

58775906
<li>switched examples to use .woff files
58785907

5908+
<li>revised wording of font fetching algorithm
5909+
58795910
<li>minor editorial cleanups
58805911
</ul>
58815912

0 commit comments

Comments
 (0)