@@ -102,8 +102,9 @@ Font Resources</h2>
102102<h3 id="font-face-rule">
103103The <dfn id="at-font-face-rule">''@font-face''</dfn> rule</h3>
104104
105- Issue(5518):
106-
105+ Note: Descriptors are applied per-font rather than per-element.
106+ Multiple fonts can be used within an individual element
107+ e.g. for characters not supported by the [=first available font=] .
107108
108109<h3 id="font-size-desc">
109110Font property descriptors: the 'font-size!!descriptor'
@@ -113,8 +114,6 @@ Issue(806):
113114
114115Issue(731):
115116
116- Issue(5892):
117-
118117<pre class='descdef'>
119118Name : font-size
120119Value : auto | [<<number>>]{1,2}
@@ -178,53 +177,52 @@ the 'size-adjust' descriptor</h3>
178177Line Height Font Metrics Overrides:
179178the 'ascent-override', 'descent-override', and 'line-gap-override' descriptors</h3>
180179
181- <pre class='descdef'>
182- Name : ascent-override
183- Value : normal | <<percentage [0,Infinity]>>
184- For : @font-face
185- Initial : normal
186- </pre>
187-
188- <pre class='descdef'>
189- Name : descent-override
190- Value : normal | <<percentage [0,Infinity]>>
191- For : @font-face
192- Initial : normal
193- </pre>
194-
195- <pre class='descdef'>
196- Name : line-gap-override
197- Value : normal | <<percentage [0,Infinity]>>
198- For : @font-face
199- Initial : normal
200- </pre>
201-
202- The 'ascent-override' , 'descent-override' , and 'line-gap-override' descriptors define the
203- <a spec="CSS-INLINE-3">ascent metric</a> , <a spec="CSS-INLINE-3">descent metric</a> and
204- <a spec="CSS-INLINE-3">line gap metric</a> of the font, respectively.
205-
206- When the descriptor value is 'normal' , the corresponding metric value is obtained as-if the
207- descriptor was absent from the <code> @font-face</code> block.
208-
209- Note: User agents may gather data from different places from the font file as the metric values,
210- which results in different text layouts.
211-
212- For the 'ascent-override' , 'descent-override' and 'line-gap-override' descriptors, when the
213- descriptor value is a percentage, the corresponding metric value is resolved as the
214- given percentage multiplied by the used font size.
180+ <pre class='descdef'>
181+ Name : ascent-override
182+ Value : normal | <<percentage [0,Infinity]>>
183+ For : @font-face
184+ Initial : normal
185+ </pre>
215186
216- None of these descriptors affect the calculation of
217- <a href="https://drafts.csswg.org/css-values-4/#font-relative-lengths">Font-relative Lengths</a> .
218- None of these descriptors affect the behavior of any of the values of 'line-height' other than
219- 'normal' . The behavior of <code> line-height: normal</code> may be affected by all of these
220- descriptors.
187+ <pre class='descdef'>
188+ Name : descent-override
189+ Value : normal | <<percentage [0,Infinity]>>
190+ For : @font-face
191+ Initial : normal
192+ </pre>
221193
222- Note: Using the 'ascent-override' , 'descent-override' , and 'line-gap-override' descriptors can
223- achieve a similar effect as specifying a percentage for 'line-height' property.
194+ <pre class='descdef'>
195+ Name : line-gap-override
196+ Value : normal | <<percentage [0,Infinity]>>
197+ For : @font-face
198+ Initial : normal
199+ </pre>
224200
225- Note: 'ascent-override' , 'descent-override' , and 'line-gap-override'
226- are applied per-font rather than per-element. Multiple fonts may be used
227- within an individual element e.g. for characters not supported by the primary font.
201+ The 'ascent-override' , 'descent-override' , and 'line-gap-override' descriptors specify the
202+ <a spec="CSS-INLINE-3">ascent metric</a> ,
203+ <a spec="CSS-INLINE-3">descent metric</a> , and
204+ <a spec="CSS-INLINE-3">line gap metric</a>
205+ of the font, respectively.
206+
207+ <dl dfn-for="ascent-override!!descriptor,descent-override!!descriptor,line-gap-override!!descriptor" dfn-type=value>
208+ <dt> <dfn>normal</dfn>
209+ <dd>
210+ The corresponding metric value is obtained from the font as usual,
211+ as if this descriptor were absent from the <code> @font-face</code> block.
212+
213+ Note: Since there are multiple sources of such metrics in some font formats,
214+ this can result in text layout that varies across UAs/platforms.
215+
216+ <dt> <dfn><<percentage>></dfn>
217+ <dd>
218+ The corresponding metric is replaced by
219+ the given percentage multiplied by the used font size.
220+ </dl>
221+
222+ Note: None of these descriptors affect the [=computed value|computation=] of
223+ 'font-size' , 'line-height' , or [=font-relative lengths=] .
224+ They can, however, affect the behavior of ''line-height: normal''
225+ and more generally the baseline alignment of [=inline-level=] content.
228226
229227<div class="example">
230228 The percentage is resolved against different font sizes for different elements.
0 commit comments