8000 [css-font-loading] Bikeshed upgrades. · w3c/csswg-drafts@93eb1f0 · GitHub
Skip to content

Commit 93eb1f0

Browse files
committed
[css-font-loading] Bikeshed upgrades.
1 parent 2746c01 commit 93eb1f0

2 files changed

Lines changed: 95 additions & 103 deletions

File tree

css-font-loading/Overview.bs

Lines changed: 27 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,13 @@ The <code>FontFace</code> Interface</h2>
111111
Can we rename that value?
112112
Media stuff uses "none", other APIs use "empty", "idle", "nothing".
113113

114-
<dl dfn-type=attribute dfn-for=FontFace>
115-
<dt><dfn>family</dfn>, <span attribute-info for=family></span>
116-
<dt><dfn>style</dfn>, <span attribute-info for=style></span>
117-
<dt><dfn>weight</dfn>, <span attribute-info for=weight></span>
118-
<dt><dfn>stretch</dfn>, <span attribute-info for=stretch></span>
119-
<dt><dfn>unicodeRange</dfn>, <span attribute-info for=unicodeRange></span>
120-
<dd>
114+
<div dfn-type=attribute dfn-for=FontFace class="idl">
115+
: <dfn>family</dfn>
116+
: <dfn>style</dfn>
117+
: <dfn>weight</dfn>
118+
: <dfn>stretch</dfn>
119+
: <dfn>unicodeRange</dfn>
120+
::
121121
These attributes all represent the corresponding aspects of a font face,
122122
as defined by the descriptors defined in the CSS ''@font-face'' rule.
123123
They are parsed the same as the corresponding ''@font-face'' descriptors.
@@ -135,9 +135,9 @@ The <code>FontFace</code> Interface</h2>
135135
throw a SyntaxError;
136136
otherwise, set the attribute to the serialization of the parsed value.
137137

138-
<dt><dfn>variant</dfn>, <span attribute-info for=variant></span>
139-
<dt><dfn>featureSettings</dfn>, <span attribute-info for=featureSettings></span>
140-
<dd>
138+
: <dfn>variant</dfn>
139+
: <dfn>featureSettings</dfn>
140+
::
141141
These attributes have the same meaning,
142142
and are parsed the same as,
143143
the corresponding descriptors in the CSS ''@font-face'' rules.
@@ -153,8 +153,8 @@ The <code>FontFace</code> Interface</h2>
153153
throw a SyntaxError;
154154
otherwise, set the attribute to the serialization of the parsed value.
155155

156-
<dt><dfn>status</dfn>, <span attribute-info for=FontFace/status></span>
157-
<dd>
156+
: <dfn>status</dfn>
157+
::
158158
This attribute reflects the current status of the font face.
159159
It must be "unloaded" for a newly-created {{FontFace}}.
160160

@@ -163,10 +163,10 @@ The <code>FontFace</code> Interface</h2>
163163
or implicitly by the user agent,
164164
due to it detecting that the font face is needed to draw some text on the screen.
165165

166-
<dt><dfn>loaded</dfn>, <span attribute-info for=loaded></span>
167-
<dd>
166+
: <dfn>loaded</dfn>
167+
::
168168
This attribute reflects the {{[[FontStatusPromise]]}} of the font face.
169-
</dl>
169+
</div>
170170

171171
All {{FontFace}} objects contain an internal <dfn attribute for=FontFace>\[[FontStatusPromise]]</dfn> slot,
172172
which tracks the status of the font.
@@ -431,40 +431,35 @@ The <code>FontFaceSet</code> Interface</h2>
431431
};
432432
</pre>
433433

434-
<dl dfn-for="FontFaceSet">
435-
<dt><dfn attribute>ready</dfn> <span attribute-info for=FontFaceSet/ready></span>
436-
<dd>
437-
This attribute reflects the {{FontFaceSet}}'s {{[[ReadyPromise]]}} slot.
434+
<div class=idl dfn-for="FontFaceSet">
435+
: <dfn attribute>ready</dfn>
436+
:: This attribute reflects the {{FontFaceSet}}'s {{[[ReadyPromise]]}} slot.
438437

439438
See [[#font-face-set-ready]] for more details on this {{Promise}} and its use.
440439

441-
<dt><dfn attribute for="FontFaceSet">status</dfn> <span attribute-info for="FontFaceSet/status"></span>
442-
<dd>
443-
If there are <a>possibly pending font loads</a>,
440+
: <dfn attribute for="FontFaceSet">status</dfn>
441+
:: If there are <a>possibly pending font loads</a>,
444442
the {{FontFaceSet/status}} attribute must have the value <code>"loading"</code>.
445443
Otherwise, it must have the value <code>"loaded"</code>.
446444

447-
<dt><dfn constructor title="FontFaceSet()">FontFaceSet</dfn>(sequence&lt;{{FontFace}}> <dfn argument for="FontFaceSet/FontFaceSet()">initialFaces</dfn>)
448-
<dd>
449-
The {{FontFaceSet}} constructor, when called,
445+
: <dfn constructor title="FontFaceSet()">FontFaceSet</dfn>(sequence&lt;{{FontFace}}> <dfn argument for="FontFaceSet/FontFaceSet()">initialFaces</dfn>)
446+
:: The {{FontFaceSet}} constructor, when called,
450447
must iterate its {{initialFaces}} argument
451448
and add each value to its <a>set entries</a>.
452449

453-
<dt><dfn>iteration order</dfn>
454-
<dd>
455-
When iterated over,
450+
: <dfn dfn>iteration order</dfn>
451+
:: When iterated over,
456452
all <a>CSS-connected</a> {{FontFace}} objects must come first,
457453
in document order of their connected ''@font-face'' rules,
458454
followed by the non-<a>CSS-connected</a> {{FontFace}} objects,
459455
in insertion order.
460456

461-
<dt><dfn>set entries</dfn>
462-
<dd>
463-
If a {{FontFaceSet}} is a <a>font source</a>,
457+
: <dfn dfn>set entries</dfn>
458+
:: If a {{FontFaceSet}} is a <a>font source</a>,
464459
its <a spec=webidl for>set entries</a> are initialized as specified in [[#document-font-face-set]].
465460

466461
Otherwise, its <a spec=webidl for>set entries</a> are initially empty.
467-
</dl>
462+
</div>
468463

469464
{{FontFaceSet}} objects also have internal
470465
<dfn attribute for=FontFaceSet>\[[LoadingFonts]]</dfn>,

0 commit comments

Comments
 (0)