|
111 | 111 |
|
112 | 112 | <h1>CSS Fonts Module Level 3</h1> |
113 | 113 |
|
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> |
115 | 115 |
|
116 | 116 | <dl id=authors> |
117 | 117 | <dt>This version: |
118 | 118 |
|
119 | 119 | <dd><a |
120 | 120 | 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> --> |
122 | 122 |
|
123 | 123 |
|
124 | 124 | <dt>Latest version: |
@@ -368,6 +368,9 @@ <h2 class="no-num no-toc" id=contents>Table of contents</h2> |
368 | 368 | <li class=no-num><a href="#font-licensing">Appendix B: Font licensing |
369 | 369 | issues</a> |
370 | 370 |
|
| 371 | + <li class=no-num><a href="#font-feature-values-DOM">Appendix C: DOM |
| 372 | + Interfaces</a> |
| 373 | + |
371 | 374 | <li class=no-num><a href="#ch-ch-ch-changes">Changes</a> |
372 | 375 | <ul class=toc> |
373 | 376 | <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 |
4091 | 4094 | font-variant-alternates: character-variant(beta-3, gamma); |
4092 | 4095 | }</pre> |
4093 | 4096 |
|
| 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 | + |
4094 | 4100 | <div class=figure><img alt="Matching text on Byzantine seals using |
4095 | 4101 | character variants" src=byzantineseal.png> |
4096 | 4102 | <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> |
4786 | 4792 | use Gentium as a downloadable font for their web pages.</p> |
4787 | 4793 | </div> |
4788 | 4794 |
|
| 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 | + |
4789 | 4888 | <h2 class=no-num id=ch-ch-ch-changes>Changes</h2> |
4790 | 4889 |
|
4791 | 4890 | <h3 class=no-num id=recent-changes> Changes from the <a |
|
0 commit comments