|
115 | 115 |
|
116 | 116 | <h1>CSS Fonts Module Level 3</h1> |
117 | 117 |
|
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> |
120 | 120 |
|
121 | 121 | <dl id=authors> |
122 | 122 | <dt>This version: |
123 | 123 |
|
124 | 124 | <dd><a |
125 | 125 | 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> --> |
127 | 127 |
|
128 | 128 |
|
129 | 129 | <dt>Latest version: |
@@ -3041,6 +3041,35 @@ <h3 id=font-fetching-requirements><span class=secno>4.9 </span>Font |
3041 | 3041 | href="http://www.w3.org/TR/html5/infrastructure.html#cors-enabled-fetch">potentially |
3042 | 3042 | CORS-enabled fetch</a> method, is defined or required. |
3043 | 3043 |
|
| 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 | + |
3044 | 3073 | <h2 id=font-matching-algorithm><span class=secno>5 </span>Font Matching |
3045 | 3074 | Algorithm</h2> |
3046 | 3075 |
|
@@ -5876,6 +5905,8 @@ <h3 class=no-num id=recent-changes> Changes from the <a |
5876 | 5905 |
|
5877 | 5906 | <li>switched examples to use .woff files |
5878 | 5907 |
|
| 5908 | + <li>revised wording of font fetching algorithm |
| 5909 | + |
5879 | 5910 | <li>minor editorial cleanups |
5880 | 5911 | </ul> |
5881 | 5912 |
|
|
0 commit comments