Skip to content

Commit 3009d53

Browse files
author
Litherum
committed
[css-fonts] @font-palette-values rule has no object model
w3c#1655
1 parent 4639177 commit 3009d53

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

css-fonts-4/Overview.bs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3763,6 +3763,22 @@ of <i title="feature_value_block">feature value block</i>. The <code>get</code>
37633763
method always returns a sequence of values, even if the sequence only contains
37643764
a single value.
37653765

3766+
<h3 id="om-fontpalettevalues">
3767+
The <code id="cssfontpalettevaluesrule2">CSSFontPaletteValuesRule</code> interface</h3>
3768+
<pre class='idl'>partial interface CSSRule {
3769+
3770+
const unsigned short FONT_PALETTE_VALUES_RULE = 15;
3771+
}
3772+
3773+
interface CSSFontPaletteValuesRule : CSSRule {
3774+
maplike&lt;unsigned long, (CSSOMString or CSSOMRGBColor)>;
3775+
attribute CSSOMString fontFamily;
3776+
attribute CSSOMString basePalette;
3777+
}</pre>
3778+
3779+
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>.
3780+
3781+
The <code>fontFamily</code> and <code>basePalette</code> interfaces are parsed according to the appropriate CSS property syntax.
37663782

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

0 commit comments

Comments
 (0)