115115 src ="http://www.w3.org/Icons/w3c_home " width =72 > </ a > <!--end-logo-->
116116
117117 < h1 > CSS Fonts Module Level 3</ h1 >
118- <!-- <h2 class="no-num no-toc">W3C Last Call Working Draft 11 July 2013</h2> -->
119-
118+
120119 < h2 class ="no-num no-toc " id =w3c-working-draft-11-july-2013 > W3C Working
121120 Draft 11 July 2013</ h2 >
122121
@@ -131,7 +130,7 @@ <h2 class="no-num no-toc" id=w3c-working-draft-11-july-2013>W3C Working
131130 < dt > Latest version:
132131
133132 < dd > < a
134- href ="http://www.w3.org/TR/css3 -fonts/ "> http://www.w3.org/TR/css-fonts-3/</ a >
133+ href ="http://www.w3.org/TR/css -fonts-3 / "> http://www.w3.org/TR/css-fonts-3/</ a >
135134
136135 < dt > Latest editor's draft:
137136
@@ -5782,7 +5781,8 @@ <h3 id=om-fontfeaturevalues><span class=secno>8.2 </span>The <a
57825781
57835782[MapClass(DOMString, sequence<unsigned long>)]
57845783interface CSSFontFeatureValuesMap {
5785- void set(DOMString featureValueName, sequence<unsigned long> values);
5784+ void set(DOMString featureValueName,
5785+ (unsigned long or sequence<unsigned long>) values);
57865786}</ pre >
57875787
57885788 < dl class =idl-attributes >
@@ -5811,21 +5811,25 @@ <h3 id=om-fontfeaturevalues><span class=secno>8.2 </span>The <a
58115811 title ="@ornaments "> @ornaments</ code > < a href ="#featurevalueblock "> < i
58125812 title ="feature_value_block "> feature value block</ i > </ a > and so forth.
58135813
5814- < p > The < code > CSSFontFeatureValuesMap</ code > interface inherits the
5815- < code > clear</ code > , < code > delete</ code > , < code > get</ code > , and
5816- < code > has</ code > methods from < code > MapClass</ code > . The < code > set</ code >
5817- method takes an array of unsigned integers and associates it with a given
5818- < code > featureValueName</ code > . The method behaves the same as the
5819- inherited method in < code > MapClass</ code > but if the associated < a
5814+ < p > The < code > CSSFontFeatureValuesMap</ code > interface uses the < a
5815+ href ="http://dev.w3.org/2006/webapi/WebIDL/#es-map-members "> default map
5816+ class methods</ a > but the < code > set</ code > method has different behavior.
5817+ It takes a sequence of unsigned integers and associates it with a given
5818+ < code > featureValueName</ code > . The method behaves the same as the default
5819+ map class method except that a single unsigned long value is treated as a
5820+ sequence of a single value. The method throws an exception if an invalid
5821+ number of values is passed in. If the associated < a
58205822 href ="#featurevalueblock "> < i title ="feature_value_block "> feature value
58215823 block</ i > </ a > only allows a limited number of values, the < code > set</ code >
58225824 method throws an < code > InvalidAccessError</ code > exception when the input
5823- array to < code > set</ code > contains more than the limited number of values.
5824- See the description of < a
5825+ sequence to < code > set</ code > contains more than the limited number of
5826+ values. See the description of < a
58255827 href ="#multi-valued-feature-value-definitions "> multi-valued feature value
58265828 definitions</ a > for details on the maximum number of values allowed for a
58275829 given type of < a href ="#featurevalueblock "> < i
5828- title ="feature_value_block "> feature value block</ i > </ a > .
5830+ title ="feature_value_block "> feature value block</ i > </ a > . The
5831+ < code > get</ code > method always returns a sequence of values, even if the
5832+ sequence only contains a single value.
58295833
58305834 < h2 class =no-num id =platform-props-to-css > Appendix A: Mapping platform font
58315835 properties to CSS properties</ h2 >
0 commit comments