Skip to content

Commit 7611bc8

Browse files
authored
Merge pull request #1247 from SimonSapin/cssfontfacerule
[css-fonts] Move CSSFontFaceRule attributes to Level 4
2 parents 8ff5534 + dcb1313 commit 7611bc8

File tree

4 files changed

+977
-832
lines changed

4 files changed

+977
-832
lines changed

css-fonts-4/Overview.bs

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2696,6 +2696,31 @@ at least as dark as its predecessor. Only values greater than 0 and less than 10
26962696
</pre>
26972697
</div>
26982698

2699+
<h2 id="object-model">Object Model</h2>
2700+
2701+
The contents of <code>@font-face</code> rules can be accessed via
2702+
the following extensions to the CSS Object Model.
2703+
2704+
<h3 id="om-fontface">The <code>CSSFontFaceRule</code> interface</h3>
2705+
2706+
The <dfn>CSSFontFaceRule</dfn> interface represents a <<@font-face>> rule.
2707+
2708+
<pre class="idl">
2709+
interface CSSFontFaceRule : CSSRule {
2710+
attribute DOMString family;
2711+
attribute DOMString src;
2712+
attribute DOMString style;
2713+
attribute DOMString weight;
2714+
attribute DOMString stretch;
2715+
attribute DOMString unicodeRange;
2716+
attribute DOMString variant;
2717+
attribute DOMString featureSettings;
2718+
};</pre>
2719+
2720+
The DOM Level 2 Style specification [[DOM-LEVEL-2-STYLE]] defined
2721+
a different variant of this rule.
2722+
This definition supercedes that one.
2723+
26992724
<h2 id="platform-props-to-css" class="no-num">Appendix A: Mapping platform font properties to CSS properties</h2>
27002725

27012726
Issue: Import from level 3

0 commit comments

Comments
 (0)