Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[css-font-loading-3] Convert FontFaceSource to a mixin #3642

Merged
merged 1 commit into from
Mar 27, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions css-font-loading-3/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -990,20 +990,18 @@ Interaction with CSS Font Loading and Matching</h3>
-->

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

<pre class='idl'>
[Exposed=(Window,Worker),
NoInterfaceObject]
interface FontFaceSource {
interface mixin FontFaceSource {
readonly attribute FontFaceSet fonts;
};

Document implements FontFaceSource;
WorkerGlobalScope implements FontFaceSource;
Document includes FontFaceSource;
WorkerGlobalScope includes FontFaceSource;
</pre>

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