Skip to content

Commit ab1cfce

Browse files
author
John Daggett
committed
add appendix to describe DOM interfaces
1 parent f18c115 commit ab1cfce

1 file changed

Lines changed: 101 additions & 2 deletions

File tree

css3-fonts/Fonts.html

Lines changed: 101 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,14 +111,14 @@
111111

112112
<h1>CSS Fonts Module Level 3</h1>
113113

114-
<h2 class="no-num no-toc" id=editors>Editor's Draft 23 September 2011</h2>
114+
<h2 class="no-num no-toc" id=editors>Editor's Draft 26 September 2011</h2>
115115

116116
<dl id=authors>
117117
<dt>This version:
118118

119119
<dd><a
120120
href="http://dev.w3.org/csswg/css3-fonts/">http://dev.w3.org/csswg/css3-fonts/</a>
121-
<!-- <dd><a href="http://www.w3.org/TR/2011/ED-css3-fonts-20110923">http://www.w3.org/TR/2011/ED-css3-fonts-20110923</a> -->
121+
<!-- <dd><a href="http://www.w3.org/TR/2011/ED-css3-fonts-20110926">http://www.w3.org/TR/2011/ED-css3-fonts-20110926</a> -->
122122

123123

124124
<dt>Latest version:
@@ -368,6 +368,9 @@ <h2 class="no-num no-toc" id=contents>Table of contents</h2>
368368
<li class=no-num><a href="#font-licensing">Appendix B: Font licensing
369369
issues</a>
370370

371+
<li class=no-num><a href="#font-feature-values-DOM">Appendix C: DOM
372+
Interfaces</a>
373+
371374
<li class=no-num><a href="#ch-ch-ch-changes">Changes</a>
372375
<ul class=toc>
373376
<li class=no-num><a href="#recent-changes"> Changes from the June 2009
@@ -4091,6 +4094,9 @@ <h3 id=font-feature-values><span class=secno>6.9 </span>Defining font
40914094
font-variant-alternates: character-variant(beta-3, gamma);
40924095
}</pre>
40934096

4097+
<p>See <a href="#font-feature-values-DOM">Appendix C</a> for a description
4098+
of the interfaces used to modify these rules via the CSS Object Model.
4099+
40944100
<div class=figure><img alt="Matching text on Byzantine seals using
40954101
character variants" src=byzantineseal.png>
40964102
<p class=caption>Byzantine seal text displayed with character variants
@@ -4786,6 +4792,99 @@ <h2 class=no-num id=font-licensing>Appendix B: Font licensing issues</h2>
47864792
use Gentium as a downloadable font for their web pages.</p>
47874793
</div>
47884794

4795+
<h2 class=no-num id=font-feature-values-DOM>Appendix C: DOM Interfaces</h2>
4796+
4797+
<p><em>This appendix is normative.</em>
4798+
4799+
<p>Font feature values defined within <code>@font-feature-values</code>
4800+
rules are accessible via the following modifications to the CSS Object
4801+
Model.
4802+
4803+
<dl>
4804+
<dt><b>Interface <i><a id=DOM-CSSRule name=DOM-CSSRule>CSSRule</a></i></b>
4805+
4806+
<dd>
4807+
<p>The following additional rule type is added to the
4808+
<code>CSSRule</code> interface.</p>
4809+
4810+
<dl>
4811+
<dt><b>IDL Definition</b>
4812+
4813+
<dd>
4814+
<div class=idl-code>
4815+
<pre>
4816+
interface CSSRule {
4817+
...
4818+
const unsigned short FONT_FEATURE_VALUES_RULE = 11;
4819+
...
4820+
};</pre>
4821+
</div>
4822+
</dd>
4823+
<!-- IDL -->
4824+
</dl>
4825+
4826+
<dt><b>Interface <i><a id=DOM-CSSFontFeatureValuesRule
4827+
name=DOM-CSSFontFeatureValuesRule>CSSFontFeatureValuesRule</a></i></b>
4828+
4829+
<dd>
4830+
<p> The <code>CSSFontFeatureValuesRule</code> interface represents font
4831+
feature selector values for a given set of font families.</p>
4832+
4833+
<dl>
4834+
<dt> <br>
4835+
<b>IDL Definition</b>
4836+
4837+
<dd>
4838+
<div class=idl-code>
4839+
<pre>
4840+
interface CSSFontFeatureValuesRule : CSSRule {
4841+
attribute DOMString fontFamily;
4842+
// raises(DOMException) on setting
4843+
attribute DOMString valueText;
4844+
// raises(DOMException) on setting
4845+
};
4846+
</pre>
4847+
</div>
4848+
<br>
4849+
4850+
<dt><b>Attributes</b>
4851+
4852+
<dd>
4853+
<dl>
4854+
<dt><code class=attribute-name><a
4855+
id=DOM-CSSFontFeatureValuesRule-fontFamily
4856+
name=DOM-CSSFontFeatureValuesRule-fontFamily>fontFamily</a></code> of
4857+
type <code>DOMString</code>
4858+
4859+
<dd>This attribute represents the list of font families for which a
4860+
particular set of values are defined. The syntax is the same as that
4861+
of the font-family property.
4862+
</dl>
4863+
4864+
<dd>
4865+
<dl>
4866+
<dt><code class=attribute-name><a
4867+
id=DOM-CSSFontFeatureValuesRule-valueText
4868+
name=DOM-CSSFontFeatureValuesRule-valueText>valueText</a></code> of
4869+
type <code>DOMString</code>
4870+
4871+
<dd>Parsable text representing the set of feature values defined for a
4872+
given set of font families.
4873+
</dl>
4874+
4875+
<dt><b>Exceptions on setting</b>
4876+
</dl>
4877+
4878+
<dl>
4879+
<dt><code>DOMException SYNTAX_ERR</code>
4880+
4881+
<dd>Thrown when the specified string value has a syntax error or is
4882+
unparsable.
4883+
</dl>
4884+
4885+
<dt><b>No Methods</b>
4886+
</dl>
4887+
47894888
<h2 class=no-num id=ch-ch-ch-changes>Changes</h2>
47904889

47914890
<h3 class=no-num id=recent-changes> Changes from the <a

0 commit comments

Comments
 (0)