Skip to content

Commit a1b5e13

Browse files
committed
[css-font-loading] bikeshed updates
--HG-- extra : rebase_source : 2435b03532e7a460659af5eae44647649fce1157
1 parent 7f5723b commit a1b5e13

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

css-font-loading/Overview.html

+14-12
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
</p>
5555
<h1 class="p-name no-ref" id=title>CSS Font Loading Module Level 3</h1>
5656
<h2 class="no-num no-toc no-ref heading settled" id=subtitle><span class=content>Editor’s Draft,
57-
<span class=dt-updated><span class=value-title title=20141105>5 November 2014</span></span></span></h2>
57+
<span class=dt-updated><span class=value-title title=20141106>6 November 2014</span></span></span></h2>
5858
<div data-fill-with=spec-metadata><dl><dt>This version:<dd><a class=u-url href=http://dev.w3.org/csswg/css-font-loading/>http://dev.w3.org/csswg/css-font-loading/</a><dt>Latest version:<dd><a href=http://w3.org/TR/css-font-loading/>http://w3.org/TR/css-font-loading/</a><dt>Previous Versions:<dd><a href=http://www.w3.org/TR/2014/WD-css-font-loading-3-20140522/ rel=previous>http://www.w3.org/TR/2014/WD-css-font-loading-3-20140522/</a><dt>Feedback:<dd><span><a href="mailto:www-style@w3.org?subject=%5Bcss-font-loading%5D%20feedback">www-style@w3.org</a> with subject line “<kbd>[css-font-loading] <var>… message topic …</var></kbd>” (<a href=http://lists.w3.org/Archives/Public/www-style/ rel=discussion>archives</a>)</span><dt class=editor>Editor:<dd class=editor><div class="p-author h-card vcard"><a class="p-name fn u-url url" href=http://xanthir.com/contact/>Tab Atkins Jr.</a> (<span class="p-org org">Google</span>)</div><dt>Former Editor:<dd><div class="p-author h-card vcard"><a class="p-name fn u-email email" href=mailto:jdaggett@mozilla.com>John Daggett</a> (<span class="p-org org">Mozilla</span>)</div></dl></div>
5959
<div data-fill-with=warning></div>
6060
<p class=copyright data-fill-with=copyright><a href=http://www.w3.org/Consortium/Legal/ipr-notice#Copyright>Copyright</a> © 2014 <a href=http://www.w3.org/><abbr title="World Wide Web Consortium">W3C</abbr></a><sup>®</sup> (<a href=http://www.csail.mit.edu/><abbr title="Massachusetts Institute of Technology">MIT</abbr></a>, <a href=http://www.ercim.eu/><abbr title="European Research Consortium for Informatics and Mathematics">ERCIM</abbr></a>, <a href=http://www.keio.ac.jp/>Keio</a>, <a href=http://ev.buaa.edu.cn/>Beihang</a>), All Rights Reserved. W3C <a href=http://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer>liability</a>, <a href=http://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks>trademark</a> and <a href=http://www.w3.org/Consortium/Legal/copyright-documents>document use</a> rules apply.
@@ -105,7 +105,7 @@ <h2 class="no-num no-toc no-ref heading settled" id=status><span class=content>S
105105
<div data-fill-with=at-risk></div>
106106

107107
<h2 class="no-num no-toc no-ref heading settled" id=contents><span class=content>Table of Contents</span></h2>
108-
<div data-fill-with=table-of-contents><ul class=toc><li><a href=#introduction><span class=secno>1</span> <span class=content>
108+
<div data-fill-with=table-of-contents role=navigation><ul class=toc role=directory><li><a href=#introduction><span class=secno>1</span> <span class=content>
109109
Introduction</span></a><ul class=toc><li><a href=#values><span class=secno>1.1</span> <span class=content>
110110
Values</span></a><li><a href=#task-source><span class=secno>1.2</span> <span class=content>
111111
Task Sources</span></a></ul><li><a href=#fontface-interface><span class=secno>2</span> <span class=content>
@@ -130,6 +130,7 @@ <h2 class="no-num no-toc no-ref heading settled" id=contents><span class=content
130130
Partial implementations</span></a><li><a href=#experimental><span class=secno></span> <span class=content>
131131
Experimental implementations</span></a><li><a href=#testing><span class=secno></span> <span class=content>
132132
Non-experimental implementations</span></a></ul><li><a href=#references><span class=secno></span> <span class=content>References</span></a><ul class=toc><li><a href=#normative><span class=secno></span> <span class=content>Normative References</span></a></ul><li><a href=#index><span class=secno></span> <span class=content>Index</span></a><li><a href=#idl-index><span class=secno></span> <span class=content>IDL Index</span></a><li><a href=#issues-index><span class=secno></span> <span class=content>Issues Index</span></a></ul></div>
133+
<main>
133134

134135

135136

@@ -328,7 +329,7 @@ <h3 class="heading settled" data-level=2.1 id=font-face-constructor><span class=
328329
and abort these steps;
329330
otherwise, set <var>font face’s</var> internal <code class=idl><a data-link-type=idl href=#dom-fontface-urls title=[[Urls]]>[[Urls]]</a></code> slot to the string.</p>
330331

331-
<p class=note>Note: Note that this means that passing a naked url as the source argument,
332+
<p class=note role=note>Note: Note that this means that passing a naked url as the source argument,
332333
like <code>"http://example.com/myFont.woff"</code>,
333334
won’t work - it needs to be at least wrapped in a <span class=css>url()</span> function,
334335
like <code>"url(http://example.com/myFont.woff)"</code>.
@@ -363,7 +364,7 @@ <h3 class="heading settled" data-level=2.1 id=font-face-constructor><span class=
363364
reject <var>font face’s</var> <code class=idl><a data-link-type=idl href=#dom-fontface-fontstatuspromise title=[[FontStatusPromise]]>[[FontStatusPromise]]</a></code> with a DOMException named "SyntaxError"
364365
and set <var>font face’s</var> <code class=idl><a data-link-for=FontFace data-link-type=idl href=#dom-fontface-status title=status>status</a></code> attribute to "error".</p>
365366
</ol></ol>
366-
<p class=note>Note: Newly constructed FontFace objects are not automatically added
367+
<p class=note role=note>Note: Newly constructed FontFace objects are not automatically added
367368
to the FontFaceSet associated with a document
368369
or a context for a worker thread.
369370
This means that while newly constructed fonts can be preloaded,
@@ -430,7 +431,7 @@ <h3 class="heading settled" data-level=2.2 id=font-face-load><span class=secno>2
430431
When this happens,
431432
they must act as if they had called the corresponding <code class=idl><a data-link-type=idl href=#dom-fontface title=FontFace>FontFace</a></code>’s <code class=idl><a data-link-for=FontFace data-link-type=idl href=#dom-fontface-load title=load()>load()</a></code> method described here.</p>
432433

433-
<p class=note>Note: Some UAs utilize a "font cache"
434+
<p class=note role=note>Note: Some UAs utilize a "font cache"
434435
which avoids having to download the same font multiple times
435436
on a page or on multiple pages within the same origin.
436437
Multiple <code class=idl><a data-link-type=idl href=#dom-fontface title=FontFace>FontFace</a></code> objects can be mapped to the same entry in the font cache,
@@ -853,23 +854,23 @@ <h3 class="heading settled" data-level=3.4 id=font-face-set-ready><span class=se
853854
which provides a way for authors to avoid having to keep track of which fonts have or haven’t been loaded
854855
before examining content which may be affected by loading fonts.</p>
855856

856-
<p class=note>Note: Authors should note that a given <var>ready promise</var> is only fulfilled once,
857+
<p class=note role=note>Note: Authors should note that a given <var>ready promise</var> is only fulfilled once,
857858
but further fonts may be loaded after it fulfills.
858859
This is similar to listening for a <code class=idl><a data-link-type=idl href=#dom-fontfaceset-loadingdone title=loadingdone>loadingdone</a></code> event to fire,
859860
but the callbacks passed to the <code class=idl><a data-link-for=FontFaceSet data-link-type=idl href=#dom-fontfaceset-ready title=ready>ready</a></code> promise will <strong>always</strong> get called,
860861
even when no font loads occur because the fonts in question are already loaded.
861862
It’s a simple, easy way to synchronize code to font loads
862863
without the need to keep track of what fonts are needed and precisely when they load.</p>
863864

864-
<p class=note>Note: Note that the user agent may need to iterate over multiple font loads before the <var>ready promise</var> is fulfilled.
865+
<p class=note role=note>Note: Note that the user agent may need to iterate over multiple font loads before the <var>ready promise</var> is fulfilled.
865866
This can occur with font fallback situations,
866867
where one font in the fontlist is loaded
867868
but doesn’t contain a particular glyph
868869
and other fonts in the fontlist need to be loaded.
869870
The <var>ready promise</var> is only fulfilled after layout operations complete
870871
and no additional font loads are necessary.</p>
871872

872-
<p class=note>Note: Note that the Promise returned by this <code class=idl><a data-link-for=FontFaceSet data-link-type=idl href=#dom-fontfaceset-ready title=ready>ready</a></code> attribute is only ever fulfilled,
873+
<p class=note role=note>Note: Note that the Promise returned by this <code class=idl><a data-link-for=FontFaceSet data-link-type=idl href=#dom-fontfaceset-ready title=ready>ready</a></code> attribute is only ever fulfilled,
873874
never rejected,
874875
unlike the Promise returned by the <code class=idl><a data-link-type=idl href=#dom-fontface title=FontFace>FontFace</a></code> <code class=idl><a data-link-for=FontFace data-link-type=idl href=#dom-fontface-load title=load()>load()</a></code> method.</p>
875876

@@ -965,7 +966,7 @@ <h3 class="heading settled" data-level=4.1 id=fontfacesource-workers><span class
965966

966967
<p>Within a Worker document, the <a data-link-type=dfn href=#font-source title="font source">font source</a> is initially empty.</p>
967968

968-
<p class=note>Note: <code class=idl><a data-link-type=idl href=#dom-fontface title=FontFace>FontFace</a></code> objects can be constructed and added to it as normal,
969+
<p class=note role=note>Note: <code class=idl><a data-link-type=idl href=#dom-fontface title=FontFace>FontFace</a></code> objects can be constructed and added to it as normal,
969970
which affects CSS font-matching within the worker
970971
(such as, for example, drawing text into a <code class=idl><a data-link-type=idl href=https://html.spec.whatwg.org/#canvasproxy title=CanvasProxy>CanvasProxy</a></code>).</p>
971972

@@ -982,13 +983,13 @@ <h3 class="heading settled" data-level=4.2 id=document-font-face-set><span class
982983
must be added or removed from the document’s <a data-link-type=dfn href=#font-source title="font source">font source</a>,
983984
and maintain this ordering.</p>
984985

985-
<p class=note>Note: Authors can still maintain references to a removed <code class=idl><a data-link-type=idl href=#dom-fontface title=FontFace>FontFace</a></code>,
986+
<p class=note role=note>Note: Authors can still maintain references to a removed <code class=idl><a data-link-type=idl href=#dom-fontface title=FontFace>FontFace</a></code>,
986987
even if it’s been automatically removed from a <a data-link-type=dfn href=#font-source title="font source">font source</a>.
987988
As specified in <a data-section="" href=#font-face-css-connection>§2.3
988989
Interaction with CSS’s @font-face Rule</a>, though,
989990
the <code class=idl><a data-link-type=idl href=#dom-fontface title=FontFace>FontFace</a></code> is no longer <a data-link-type=dfn href=#css-connected title=CSS-connected>CSS-connected</a> at that point.</p>
990991

991-
<p class=note>Note: It is expected that a future version of this specification
992+
<p class=note role=note>Note: It is expected that a future version of this specification
992993
will define ways of interacting with and querying local fonts as well.</p>
993994

994995

@@ -1094,6 +1095,7 @@ <h2 class="no-num heading settled" id=acknowledgments><span class=content>
10941095
<p>Several members of the Google Fonts team provided helpful feedback on font load events,
10951096
as did Boris Zbarsky, Jonas Sicking and ms2ger.</p>
10961097

1098+
</main>
10971099
<h2 class="no-ref no-num heading settled" id=conformance><span class=content>
10981100
Conformance</span><a class=self-link href=#conformance></a></h2>
10991101

@@ -1122,7 +1124,7 @@ <h3 class="no-ref heading settled" id=conventions><span class=content>
11221124
<p>Informative notes begin with the word "Note" and are set apart from the
11231125
normative text with <code>class="note"</code>, like this:
11241126

1125-
<p class=note>Note, this is an informative note.</p>
1127+
<p class=note role=note>Note, this is an informative note.</p>
11261128

11271129
<p>Advisements are normative sections styled to evoke special attention and are
11281130
set apart from other normative text with <code>&lt;strong class="advisement"&gt;</code>, like

0 commit comments

Comments
 (0)