Skip to content

Commit 50acb70

Browse files
committed
[css-font-loading] When setting FontFace attributes, use the serialized form, just like the constructor does.
1 parent 4954a96 commit 50acb70

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

css-font-loading/Overview.bs

+2-2
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ The <code>FontFace</code> Interface</h2>
112112
On setting, parse the string according to the grammar for the CSS ''@font-face'' rule.
113113
If it does not match the grammar,
114114
throw a SyntaxError;
115-
otherwise, set the attribute to the provided string.
115+
otherwise, set the attribute to the serialization of the parsed value.
116116

117117
<dt><dfn>variant</dfn>, <span attribute-info for=variant></span>
118118
<dt><dfn>featureSettings</dfn>, <span attribute-info for=featureSettings></span>
@@ -130,7 +130,7 @@ The <code>FontFace</code> Interface</h2>
130130
On setting, parse the string according to the grammar for the CSS ''@font-face'' rule.
131131
If it does not match the grammar,
132132
throw a SyntaxError;
133-
otherwise, set the attribute to the provided string.
133+
otherwise, set the attribute to the serialization of the parsed value.
134134

135135
<dt><dfn>status</dfn>, <span attribute-info for=FontFace/status></span>
136136
<dd>

css-font-loading/Overview.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ <h2 class="heading settled heading" data-level=2 id=fontface-interface><span cla
248248
<p>On setting, parse the string according to the grammar for the CSS <a class=css data-link-type=maybe href=http://dev.w3.org/csswg/css-fonts-3/#at-font-face-rule title=@font-face>@font-face</a> rule.
249249
If it does not match the grammar,
250250
throw a SyntaxError;
251-
otherwise, set the attribute to the provided string.</p>
251+
otherwise, set the attribute to the serialization of the parsed value.</p>
252252

253253
<dt><dfn class=idl-code data-dfn-for=FontFace data-dfn-type=attribute data-export="" id=dom-fontface-variant>variant<a class=self-link href=#dom-fontface-variant></a></dfn>, <span data-attribute-info="" for=variant> of type <a data-link-type=idl-name title=domstring>DOMString</a></span>
254254
<dt><dfn class=idl-code data-dfn-for=FontFace data-dfn-type=attribute data-export="" id=dom-fontface-featuresettings>featureSettings<a class=self-link href=#dom-fontface-featuresettings></a></dfn>, <span data-attribute-info="" for=featureSettings> of type <a data-link-type=idl-name title=domstring>DOMString</a></span>
@@ -266,7 +266,7 @@ <h2 class="heading settled heading" data-level=2 id=fontface-interface><span cla
266266
<p>On setting, parse the string according to the grammar for the CSS <a class=css data-link-type=maybe href=http://dev.w3.org/csswg/css-fonts-3/#at-font-face-rule title=@font-face>@font-face</a> rule.
267267
If it does not match the grammar,
268268
throw a SyntaxError;
269-
otherwise, set the attribute to the provided string.</p>
269+
otherwise, set the attribute to the serialization of the parsed value.</p>
270270

271271
<dt><dfn class=idl-code data-dfn-for=FontFace data-dfn-type=attribute data-export="" id=dom-fontface-status>status<a class=self-link href=#dom-fontface-status></a></dfn>, <span data-attribute-info="" for=FontFace/status> of type <a data-link-type=idl-name href=#enumdef-fontfaceloadstatus title=fontfaceloadstatus>FontFaceLoadStatus</a>, readonly</span>
272272
<dd>

0 commit comments

Comments
 (0)