Skip to content

Commit 348ed35

Browse files
committed
[css-fonts-5] Use range notation to restrict negative values.
1 parent d94d5a9 commit 348ed35

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

css-fonts-5/Overview.bs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ the 'size-adjust' descriptor</h3>
145145

146146
<pre class='descdef'>
147147
Name: size-adjust
148-
Value: normal | <<percentage>>
148+
Value: normal | <<percentage [0,Infinity]>>
149149
For: @font-face
150150
Initial: normal
151151
</pre>
@@ -182,21 +182,21 @@ the 'ascent-override', 'descent-override', and 'line-gap-override' descriptors</
182182

183183
<pre class='descdef'>
184184
Name: ascent-override
185-
Value: normal | <<percentage>>
185+
Value: normal | <<percentage [0,Infinity]>>
186186
For: @font-face
187187
Initial: normal
188188
</pre>
189189

190190
<pre class='descdef'>
191191
Name: descent-override
192-
Value: normal | <<percentage>>
192+
Value: normal | <<percentage [0,Infinity]>>
193193
For: @font-face
194194
Initial: normal
195195
</pre>
196196

197197
<pre class='descdef'>
198198
Name: line-gap-override
199-
Value: normal | <<percentage>>
199+
Value: normal | <<percentage [0,Infinity]>>
200200
For: @font-face
201201
Initial: normal
202202
</pre>
@@ -213,7 +213,7 @@ which results in different text layouts.
213213

214214
For the 'ascent-override', 'descent-override' and 'line-gap-override' descriptors, when the
215215
descriptor value is a percentage, the corresponding metric value is resolved as the
216-
given percentage multiplied by the used font size. Negative values are invalid at parse time.
216+
given percentage multiplied by the used font size.
217217

218218
None of these descriptors affect the calculation of
219219
<a href="https://drafts.csswg.org/css-values-4/#font-relative-lengths">Font-relative Lengths</a>.
@@ -302,14 +302,14 @@ Issue(5518):
302302

303303
<pre class='descdef'>
304304
Name: superscript-size-override
305-
Value: normal | <<percentage>>
305+
Value: normal | <<percentage [0,Infinity]>>
306306
For: @font-face
307307
Initial: normal
308308
</pre>
309309

310310
<pre class='descdef'>
311311
Name: subscript-size-override
312-
Value: normal | <<percentage>>
312+
Value: normal | <<percentage [0,Infinity]>>
313313
For: @font-face
314314
Initial: normal
315315
</pre>

0 commit comments

Comments
 (0)