Skip to content

Commit 5ec0e51

Browse files
author
John Daggett
committed
[css3-fonts] allow single value to be passed into set method of CSSFontFeatureValuesMap
1 parent 92c7e04 commit 5ec0e51

1 file changed

Lines changed: 14 additions & 9 deletions

File tree

css-fonts/Fonts.html

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -123,13 +123,13 @@ <h2 class="no-num no-toc" id=editors-draft-5-july-2013>Editor's Draft 5
123123

124124
<dd><a
125125
href="http://dev.w3.org/csswg/css-fonts/">http://dev.w3.org/csswg/css-fonts/</a>
126-
<!-- <dd><a href="http://www.w3.org/TR/2013/ED-css3-fonts-20130705/">http://www.w3.org/TR/2013/ED-css3-fonts-20130705/</a> -->
126+
<!-- <dd><a href="http://www.w3.org/TR/2013/ED-css-fonts-3-20130705/">http://www.w3.org/TR/2013/ED-css-fonts-3-20130705/</a> -->
127127

128128

129129
<dt>Latest version:
130130

131131
<dd><a
132-
href="http://www.w3.org/TR/css3-fonts/">http://www.w3.org/TR/css3-fonts/</a>
132+
href="http://www.w3.org/TR/css3-fonts/">http://www.w3.org/TR/css-fonts-3/</a>
133133

134134
<dt>Latest editor's draft:
135135

@@ -195,8 +195,8 @@ <h2 class="no-num no-toc" id=abstract>Abstract</h2>
195195
href="http://www.w3.org/TR/2002/WD-css3-fonts-20020802/">CSS3 Fonts</a>
196196
and <a href="http://www.w3.org/TR/2002/WD-css3-webfonts-20020802/">CSS3
197197
Web Fonts</a> modules. The description of font load events was moved into
198-
the <a href="http://dev.w3.org/csswg/css3-font-load-events/">CSS3 Font
199-
Load Events</a> module.
198+
the <a href="http://dev.w3.org/csswg/css-font-load-events/">CSS3 Font Load
199+
Events</a> module.
200200

201201
<h2 class="no-num no-toc" id=status>Status of this document</h2>
202202
<!--begin-status-->
@@ -251,7 +251,7 @@ <h3 class="no-num no-toc" id=atrisk>Features at risk</h3>
251251
comments to the <a
252252
href="http://lists.w3.org/Archives/Public/www-style/">www-style mailing
253253
list</a> as described above. The <strong>deadline for comments</strong> is
254-
six weeks after the date of publication in the header.
254+
six weeks after the date of publication in the header, 22 August 2013.
255255

256256
<h2 class="no-num no-toc" id=contents>Table of contents</h2>
257257
<!--begin-toc-->
@@ -5776,7 +5776,8 @@ <h3 id=om-fontfeaturevalues><span class=secno>8.2 </span>The <a
57765776

57775777
[MapClass(DOMString, sequence&lt;unsigned long&gt;)]
57785778
interface CSSFontFeatureValuesMap {
5779-
void set(DOMString featureValueName, sequence&lt;unsigned long&gt; values);
5779+
void set(DOMString featureValueName,
5780+
(unsigned long or sequence&lt;unsigned long&gt;) values);
57805781
}</pre>
57815782

57825783
<dl class=idl-attributes>
@@ -5810,16 +5811,20 @@ <h3 id=om-fontfeaturevalues><span class=secno>8.2 </span>The <a
58105811
<code>has</code> methods from <code>MapClass</code>. The <code>set</code>
58115812
method takes an array of unsigned integers and associates it with a given
58125813
<code>featureValueName</code>. The method behaves the same as the
5813-
inherited method in <code>MapClass</code> but if the associated <a
5814-
href="#featurevalueblock"><i title="feature_value_block">feature value
5814+
inherited method in <code>MapClass</code> except that either a single
5815+
value or a sequence of values is permitted and the method throws and
5816+
exception if an invalid number of values is passed in. If the associated
5817+
<a href="#featurevalueblock"><i title="feature_value_block">feature value
58155818
block</i></a> only allows a limited number of values, the <code>set</code>
58165819
method throws an <code>InvalidAccessError</code> exception when the input
58175820
array to <code>set</code> contains more than the limited number of values.
58185821
See the description of <a
58195822
href="#multi-valued-feature-value-definitions">multi-valued feature value
58205823
definitions</a> for details on the maximum number of values allowed for a
58215824
given type of <a href="#featurevalueblock"><i
5822-
title="feature_value_block">feature value block</i></a>.
5825+
title="feature_value_block">feature value block</i></a>. The
5826+
<code>get</code> method always returns an array of values, even if the
5827+
array only contains a single value.
58235828

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

0 commit comments

Comments
 (0)