Skip to content

Commit 61667e3

Browse files
authored
Merge pull request #2709 from tidoust/css-fonts-4-idl
[css-fonts-4] Fix Web IDL syntax
2 parents cef834c + 713ace7 commit 61667e3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

css-fonts-4/Overview.bs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3817,13 +3817,13 @@ The <code>CSSFontFeatureValuesRule</code> interface</h3>
38173817
readonly attribute CSSFontFeatureValuesMap swash;
38183818
readonly attribute CSSFontFeatureValuesMap characterVariant;
38193819
readonly attribute CSSFontFeatureValuesMap styleset;
3820-
}
3820+
};
38213821

3822-
[MapClass(CSSOMString, sequence&lt;unsigned long&gt;)]
38233822
interface CSSFontFeatureValuesMap {
3823+
maplike&lt;CSSOMString, sequence&lt;unsigned long&gt;&gt;;
38243824
void set(CSSOMString featureValueName,
38253825
(unsigned long or sequence&lt;unsigned long&gt;) values);
3826-
}</pre>
3826+
};</pre>
38273827

38283828
<dl class='idl-attributes'>
38293829
<dt><var>fontFamily</var> of type <code>CSSOMString</code>
@@ -3865,13 +3865,13 @@ The <code id="cssfontpalettevaluesrule2">CSSFontPaletteValuesRule</code> interfa
38653865
<pre class='idl'>partial interface CSSRule {
38663866

38673867
const unsigned short FONT_PALETTE_VALUES_RULE = 15;
3868-
}
3868+
};
38693869

38703870
interface CSSFontPaletteValuesRule : CSSRule {
38713871
maplike&lt;unsigned long, (CSSOMString or CSSOMRGBColor)>;
38723872
attribute CSSOMString fontFamily;
38733873
attribute CSSOMString basePalette;
3874-
}</pre>
3874+
};</pre>
38753875

38763876
If the value of the 'setlike' functions is a CSSOMString, it is parsed as a solid color (e.g. using the <code>rgb()</code> syntax). If it refers to anything other than a solid color, the call is ignored or returns <code>undefined</code>.
38773877

0 commit comments

Comments
 (0)