Skip to content

Commit 1185659

Browse files
committed
[css-inline-3] sub/super font metrics are a MAY; define fallback ratios. #5225
1 parent d2aa2ca commit 1185659

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

css-inline-3/Overview.bs

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -851,12 +851,18 @@ Post-Alignment Shift: the 'baseline-shift' longhand</h4>
851851
<dd>Raise (positive value) or lower (negative value) by the specified percentage of the 'line-height'.
852852

853853
<dt><dfn>sub</dfn>
854-
<dd>Lower by the offset appropriate for subscripts of the parent’s box.
855-
(The UA should use the parent’s font data to find this offset whenever possible.)
854+
<dd>
855+
Lower by the offset appropriate for subscripts of the parent’s box.
856+
The UA may use the parent’s font metrics to find this offset;
857+
otherwise it defaults to dropping by
858+
one fifth of the parent’s used 'font-size'.
856859

857860
<dt><dfn>super</dfn>
858-
<dd>Raise by the offset appropriate for superscripts of the parent’s box.
859-
(The UA should use the parent’s font data to find this offset whenever possible.)
861+
<dd>
862+
Raise by the offset appropriate for superscripts of the parent’s box.
863+
The UA may use the parent’s font metrics to find this offset;
864+
otherwise it defaults to raising by
865+
one third of the parent’s used 'font-size'.
860866

861867
<dt><dfn>top</dfn>
862868
<dd>

0 commit comments

Comments
 (0)