Skip to content

Commit 314466c

Browse files
authored
Convert FontFaceSource to a mixin
Following whatwg/webidl#433.
1 parent 963cfcf commit 314466c

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

css-font-loading-3/Overview.bs

+5-7
Original file line numberDiff line numberDiff line change
@@ -990,20 +990,18 @@ Interaction with CSS Font Loading and Matching</h3>
990990
-->
991991

992992
<h2 id='font-face-source'>
993-
The <code>FontFaceSource</code> interface</h2>
993+
The <code>FontFaceSource</code> mixin</h2>
994994

995995
<pre class='idl'>
996-
[Exposed=(Window,Worker),
997-
NoInterfaceObject]
998-
interface FontFaceSource {
996+
interface mixin FontFaceSource {
999997
readonly attribute FontFaceSet fonts;
1000998
};
1001999

1002-
Document implements FontFaceSource;
1003-
WorkerGlobalScope implements FontFaceSource;
1000+
Document includes FontFaceSource;
1001+
WorkerGlobalScope includes FontFaceSource;
10041002
</pre>
10051003

1006-
Any document, workers, or other context which can use fonts in some manner must implement the {{FontFaceSource}} interface.
1004+
Any document, workers, or other context which can use fonts in some manner must include the {{FontFaceSource}} mixin.
10071005
The value of the context’s {{fonts}} attribute is its <dfn>font source</dfn>,
10081006
which provides all of the fonts used in font-related operations,
10091007
unless defined otherwise.

0 commit comments

Comments
 (0)