Skip to content

Commit e18ba05

Browse files
committed
[css-fonts] Move CSSFontFaceRule attributes to Level 4
Per #825 (comment)
1 parent ffbf7d2 commit e18ba05

File tree

3 files changed

+42
-21
lines changed

3 files changed

+42
-21
lines changed

css-fonts-4/Overview.bs

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

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

26912716
Issue: Import from level 3

css-fonts/Fonts.html

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6005,20 +6005,18 @@ <h3 id=om-fontface><span class=secno>8.1. </span>The <a
60056005

60066006
<pre class=idl>
60076007
interface CSSFontFaceRule : CSSRule {
6008-
attribute DOMString family;
6009-
attribute DOMString src;
6010-
attribute DOMString style;
6011-
attribute DOMString weight;
6012-
attribute DOMString stretch;
6013-
attribute DOMString unicodeRange;
6014-
attribute DOMString variant;
6015-
attribute DOMString featureSettings;
6008+
// Intentionally left blank in this specification.
60166009
}</pre>
60176010

6018-
<p>The DOM Level 2 Style specification <a href="#ref-DOM-LEVEL-2-STYLE"
6019-
rel=biblioentry>[DOM-LEVEL-2-STYLE]<!--{{DOM-LEVEL-2-STYLE}}--></a>
6020-
defined a different variant of this rule. This definition supercedes that
6021-
one.
6011+
<p class=note>The CSS Working Group would like <a
6012+
href="#cssfontfacerule"><code>CSSFontFaceRule</code></a> to have one
6013+
attribute for each <a
6014+
href="#at-font-face-rule"><code>@font-face</code></a> descriptor, <a
6015+
href="../css-fonts-4/#om-fontface">as specified in CSS Fonts Level 4</a>.
6016+
As of this writing however, no implementation implements these attributes
6017+
and instead implement the <code>style</code> attribute defined in the DOM
6018+
Level 2 Style specification <a href="#ref-DOM-LEVEL-2-STYLE"
6019+
rel=biblioentry>[DOM-LEVEL-2-STYLE]<!--{{DOM-LEVEL-2-STYLE}}--></a>.
60226020

60236021
<h3 id=om-fontfeaturevalues><span class=secno>8.2. </span>The <a
60246022
href="#cssfontfeaturevaluesrule"><code>CSSFontFeatureValuesRule</code></a>

css-fonts/Fonts.src.html

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4469,17 +4469,15 @@ <h3 id="om-fontface">The <code>CSSFontFaceRule</code> interface</h3>
44694469

44704470
<pre class="idl">
44714471
interface CSSFontFaceRule : CSSRule {
4472-
attribute DOMString family;
4473-
attribute DOMString src;
4474-
attribute DOMString style;
4475-
attribute DOMString weight;
4476-
attribute DOMString stretch;
4477-
attribute DOMString unicodeRange;
4478-
attribute DOMString variant;
4479-
attribute DOMString featureSettings;
4472+
// Intentionally left blank in this specification.
44804473
}</pre>
44814474

4482-
<p>The DOM Level 2 Style specification [[DOM-LEVEL-2-STYLE]] defined a different variant of this rule. This definition supercedes that one.</p>
4475+
<p class="note">The CSS Working Group would like <code>CSSFontFaceRule</code> to have
4476+
one attribute for each <code>@font-face</code> descriptor,
4477+
<a href="../css-fonts-4/#om-fontface">as specified in CSS Fonts Level 4</a>.
4478+
As of this writing however, no implementation implements these attributes
4479+
and instead implement the <code>style</code> attribute defined in
4480+
the DOM Level 2 Style specification [[DOM-LEVEL-2-STYLE]].
44834481

44844482
<h3 id="om-fontfeaturevalues">The <code>CSSFontFeatureValuesRule</code> interface</h3>
44854483

0 commit comments

Comments
 (0)