Skip to content
Merged
Show file tree
Hide file tree
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
25 changes: 25 additions & 0 deletions css-fonts-4/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2696,6 +2696,31 @@ at least as dark as its predecessor. Only values greater than 0 and less than 10
</pre>
</div>

<h2 id="object-model">Object Model</h2>

The contents of <code>@font-face</code> rules can be accessed via
the following extensions to the CSS Object Model.

<h3 id="om-fontface">The <code>CSSFontFaceRule</code> interface</h3>

The <dfn>CSSFontFaceRule</dfn> interface represents a <<@font-face>> rule.

<pre class="idl">
interface CSSFontFaceRule : CSSRule {
attribute DOMString family;
attribute DOMString src;
attribute DOMString style;
attribute DOMString weight;
attribute DOMString stretch;
attribute DOMString unicodeRange;
attribute DOMString variant;
attribute DOMString featureSettings;
};</pre>

The DOM Level 2 Style specification [[DOM-LEVEL-2-STYLE]] defined
a different variant of this rule.
This definition supercedes that one.

<h2 id="platform-props-to-css" class="no-num">Appendix A: Mapping platform font properties to CSS properties</h2>

Issue: Import from level 3
Expand Down
Loading