Skip to content

Commit bfc1c81

Browse files
committed
[css-font-loading] Specify Worker behavior. Remove corresponding issue.
1 parent a7a6967 commit bfc1c81

File tree

2 files changed

+24
-17
lines changed

2 files changed

+24
-17
lines changed

css-font-loading/Overview.bs

+10-5
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Editor: Tab Atkins Jr., Google, http://xanthir.com/contact/
1111
Former Editor: John Daggett, Mozilla, jdaggett@mozilla.com
1212
Abstract: This CSS module describes events and interfaces used for dynamically loading font resources.
1313
Link Defaults: css-fonts-3 (descriptor) src
14-
Ignored Terms: domstring, eventinit, cssfontfacerule, eventtarget, workerglobalscope, document
14+
Ignored Terms: domstring, eventinit, cssfontfacerule, eventtarget, workerglobalscope, document, canvasproxy
1515
</pre>
1616

1717
<h2 id="introduction">
@@ -352,10 +352,6 @@ The <code>FontFaceSet</code> Interface</h2>
352352
and <dfn attribute for=FontFaceSet>[PendingReadyPromises]</dfn> attributes,
353353
all of which are initialized to the empty list.
354354

355-
<p class="issue">
356-
Document the FontFaceSet behavior for Workers.
357-
(They start out empty, but can construct fonts or be sent them via postMessage.)
358-
359355
<h3 id='set-modifications'>
360356
Modifications of normal Set methods</h3>
361357

@@ -739,6 +735,15 @@ The <code>FontFaceSource</code> interface</h2>
739735
For any font-related operation that takes place within one of these contexts,
740736
the <a interface>FontFace</a> objects within the <a>font source</a> are its <dfn>available font faces</dfn>.
741737

738+
<h3 id="fontfacesource-workers">
739+
Worker FontFaceSources</h3>
740+
741+
Within a Worker document, the <a>font source</a> is initially empty.
742+
743+
Note: <a interface>FontFace</a> objects can be constructed and added to it as normal,
744+
which affects CSS font-matching within the worker
745+
(such as, for example, drawing text into a <a interface>CanvasProxy</a>).
746+
742747
<h3 id="document-font-face-set">
743748
Interaction with CSS’s ''@font-face'' Rule</h3>
744749

css-font-loading/Overview.html

+14-12
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
</p>
1414
<h1 class="p-name no-ref" id=title>CSS Font Loading Module Level 3</h1>
1515
<h2 class="no-num no-toc no-ref heading settled heading" id=subtitle><span class=content>W3C First Public Working Draft,
16-
<span class=dt-updated><span class=value-title title=20140310>10 March 2014</span></span></span></h2>
17-
<div data-fill-with=spec-metadata><dl><dt>This version:<dd><a class=u-url href=http://www.w3.org/TR/2014/WD-css-font-loading-3-20140310/>http://www.w3.org/TR/2014/WD-css-font-loading-3-20140310/</a><dt>Latest version:<dd><a href=http://w3.org/TR/css-font-loading/>http://w3.org/TR/css-font-loading/</a><dt>Editor’s Draft:<dd><a href=http://dev.w3.org/csswg/css-font-loading/>http://dev.w3.org/csswg/css-font-loading/</a>
16+
<span class=dt-updated><span class=value-title title=20140325>25 March 2014</span></span></span></h2>
17+
<div data-fill-with=spec-metadata><dl><dt>This version:<dd><a class=u-url href=http://www.w3.org/TR/2014/WD-css-font-loading-3-20140325/>http://www.w3.org/TR/2014/WD-css-font-loading-3-20140325/</a><dt>Latest version:<dd><a href=http://w3.org/TR/css-font-loading/>http://w3.org/TR/css-font-loading/</a><dt>Editor’s Draft:<dd><a href=http://dev.w3.org/csswg/css-font-loading/>http://dev.w3.org/csswg/css-font-loading/</a>
1818
<dt>Feedback:</dt>
1919
<dd><a href="mailto:www-style@w3.org?subject=%5Bcss-font-loading%5D%20feedback">www-style@w3.org</a>
2020
with subject line
@@ -87,7 +87,8 @@ <h2 class="no-num no-toc no-ref heading settled heading" id=contents><span class
8787
<li><a href=#font-face-set-css><span class=secno>3.6</span> Interaction with CSS Font Loading and Matching</a></ul>
8888
<li><a href=#font-face-source><span class=secno>4</span> The <code>FontFaceSource</code> interface</a>
8989
<ul class=toc>
90-
<li><a href=#document-font-face-set><span class=secno>4.1</span> Interaction with CSS’s <span class=css data-link-type=maybe title=@font-face>@font-face</span> Rule</a></ul>
90+
<li><a href=#fontfacesource-workers><span class=secno>4.1</span> Worker FontFaceSources</a>
91+
<li><a href=#document-font-face-set><span class=secno>4.2</span> Interaction with CSS’s <span class=css data-link-type=maybe title=@font-face>@font-face</span> Rule</a></ul>
9192
<li><a href=#font-load-event-examples><span class=secno>5</span> API Examples</a>
9293
<li><a href=#changes><span class=secno></span>Changes</a>
9394
<ul class=toc>
@@ -445,10 +446,6 @@ <h2 class="heading settled heading" data-level=3 id=FontFaceSet-interface><span
445446
and <dfn class=idl-code data-dfn-for=FontFaceSet data-dfn-type=attribute data-export="" id=dom-fontfaceset-pendingreadypromises>[PendingReadyPromises]<a class=self-link href=#dom-fontfaceset-pendingreadypromises></a></dfn> attributes,
446447
all of which are initialized to the empty list.
447448

448-
<p class=issue id=issue-094f6719><a class=self-link href=#issue-094f6719></a>
449-
Document the FontFaceSet behavior for Workers.
450-
(They start out empty, but can construct fonts or be sent them via postMessage.)
451-
452449
<h3 class="heading settled heading" data-level=3.1 id=set-modifications><span class=secno>3.1 </span><span class=content>
453450
Modifications of normal Set methods</span><a class=self-link href=#set-modifications></a></h3>
454451

@@ -822,7 +819,16 @@ <h2 class="heading settled heading" data-level=4 id=font-face-source><span class
822819
<p> For any font-related operation that takes place within one of these contexts,
823820
the <a class=idl-code data-link-type=interface href=#dom-fontface title=fontface>FontFace</a> objects within the <a data-link-type=dfn href=#font-source title="font source">font source</a> are its <dfn data-dfn-type=dfn data-noexport="" id=available-font-faces>available font faces<a class=self-link href=#available-font-faces></a></dfn>.
824821

825-
<h3 class="heading settled heading" data-level=4.1 id=document-font-face-set><span class=secno>4.1 </span><span class=content>
822+
<h3 class="heading settled heading" data-level=4.1 id=fontfacesource-workers><span class=secno>4.1 </span><span class=content>
823+
Worker FontFaceSources</span><a class=self-link href=#fontfacesource-workers></a></h3>
824+
825+
<p> Within a Worker document, the <a data-link-type=dfn href=#font-source title="font source">font source</a> is initially empty.
826+
827+
<p class=note> Note: <a class=idl-code data-link-type=interface href=#dom-fontface title=fontface>FontFace</a> objects can be constructed and added to it as normal,
828+
which affects CSS font-matching within the worker
829+
(such as, for example, drawing text into a <a class=idl-code data-link-type=interface title=canvasproxy>CanvasProxy</a>).
830+
831+
<h3 class="heading settled heading" data-level=4.2 id=document-font-face-set><span class=secno>4.2 </span><span class=content>
826832
Interaction with CSS’s <a class=css data-link-type=maybe href=http://www.w3.org/TR/css-fonts-3/#at-font-face-rule title=@font-face>@font-face</a> Rule</span><a class=self-link href=#document-font-face-set></a></h3>
827833

828834
<p> The set entries for a document’s <a data-link-type=dfn href=#font-source title="font source">font source</a>
@@ -1156,10 +1162,6 @@ <h2 class="no-num no-ref heading settled heading" id=property-index><span class=
11561162

11571163

11581164
<h2 class="no-num heading settled" id=issues-index><span class=content>Issues Index</span><a class=self-link href=#issues-index></a></h2><div style="counter-reset: issue"><div class=issue>
1159-
Document the FontFaceSet behavior for Workers.
1160-
(They start out empty, but can construct fonts or be sent them via postMessage.)
1161-
1162-
<a href=#issue-094f6719></a></div><div class=issue>
11631165
Can/should we include the local system fonts,
11641166
or is that a fingerprinting problem?
11651167
I think the set of local fonts is trivially discoverable anyway.

0 commit comments

Comments
 (0)