@@ -86,6 +86,8 @@ The <code>FontFace</code> Interface</h2>
86
86
CSSOMString unicodeRange = "U+0-10FFFF";
87
87
CSSOMString variant = "normal";
88
88
CSSOMString featureSettings = "normal";
89
+ CSSOMString variationSettings = "normal";
90
+ CSSOMString fontDisplay = "auto";
89
91
};
90
92
91
93
enum FontFaceLoadStatus { "unloaded", "loading", "loaded", "error" };
@@ -101,6 +103,8 @@ The <code>FontFace</code> Interface</h2>
101
103
attribute CSSOMString unicodeRange;
102
104
attribute CSSOMString variant;
103
105
attribute CSSOMString featureSettings;
106
+ attribute CSSOMString variationSettings;
107
+ attribute CSSOMString fontDisplay;
104
108
105
109
readonly attribute FontFaceLoadStatus status;
106
110
@@ -137,13 +141,15 @@ The <code>FontFace</code> Interface</h2>
137
141
138
142
On getting, return the string associated with this attribute.
139
143
140
- On setting, parse the string according to the grammar for the CSS ''@font-face'' rule .
144
+ On setting, [=CSS/ parse=] the string according to the grammar for the corresponding ''@font-face'' descriptor .
141
145
If it does not match the grammar,
142
- throw a SyntaxError;
146
+ throw a {{ SyntaxError}} ;
143
147
otherwise, set the attribute to the serialization of the parsed value.
144
148
145
149
: <dfn>variant</dfn>
146
150
: <dfn>featureSettings</dfn>
151
+ : <dfn>variationSettings</dfn>
152
+ : <dfn>fontDisplay</dfn>
147
153
::
148
154
These attributes have the same meaning,
149
155
and are parsed the same as,
@@ -155,9 +161,9 @@ The <code>FontFace</code> Interface</h2>
155
161
156
162
On getting, return the string associated with this attribute.
157
163
158
- On setting, parse the string according to the grammar for the CSS ''@font-face'' rule .
164
+ On setting, [=CSS/ parse=] the string according to the grammar for the corresponding ''@font-face'' descriptor .
159
165
If it does not match the grammar,
160
- throw a SyntaxError;
166
+ throw a {{ SyntaxError}} ;
161
167
otherwise, set the attribute to the serialization of the parsed value.
162
168
163
169
: <dfn>status</dfn>
@@ -217,7 +223,7 @@ The Constructor</h3>
217
223
Set <var> font face's</var> {{FontFace/status}} attribute to <code> "unloaded"</code> ,
218
224
Set its internal {{[[FontStatusPromise]]}} slot to a fresh pending {{Promise}} object.
219
225
220
- Parse the {{family!!argument}} argument,
226
+ [=CSS/ Parse=] the {{family!!argument}} argument,
221
227
and the members of the {{descriptors!!argument}} argument,
222
228
according to the grammars of the corresponding descriptors of the CSS ''@font-face'' rule.
223
229
If the {{source!!argument}} argument is a {{CSSOMString}} ,
0 commit comments