Skip to content

Commit dc179c8

Browse files
committed
[css-values-5] Defined <fraction> more clearly
1 parent 9698c05 commit dc179c8

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

css-values-5/Overview.bs

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -127,19 +127,18 @@ Other Quantities</h2>
127127
-->
128128

129129
<h3 id="fractions">
130-
Flexible lengths: the <<fraction>> type</h3>
131-
132-
Fraction values are denoted by <dfn id="flex-value">&lt;fraction></dfn>,
133-
and indicate a value that is some fraction of another reference value.
134-
A fraction is a <<dimension>>.
135-
Its unit identifier is <dfn value for="<flex>" lt="fr|fr unit">fr</dfn>.
136-
137-
These values specify
138-
<dfn export lt="flexible length">flexible lengths</dfn>.
139-
Each length defines a portion of a given space
140-
which is specified by the context the type is used in.
141-
142-
The allowed range of <<fraction>>> values
130+
Proportional Fractions: the <<fraction>> type</h3>
131+
132+
<dfn id=flex-fraction>Proportional fractions</dfn> are denoted by <dfn id="fr-value"><<fraction>></dfn>,
133+
which is a <<dimension>> with the <dfn value for="<fraction>" lt="fr|fr unit">fr</dfn> unit.
134+
They represent a fraction of a reference value
135+
(typically a length)
136+
as a proportion in relation to other [=flex fractions=] referencing that same value,
137+
i.e. a value of ''<var>N</var>fr'' represents <var>N</var> / max(<var>sum of all ''fr'' values</var>, 1).
138+
For example, leftover space in [=grid layout=]
139+
is distributed to a ''1fr'' track and a ''2fr'' track in a 1:2 ratio.
140+
141+
The allowed range of <<fraction>> values
143142
<em>always</em> excludes negative values,
144143
in addition to any explicit ranges that might be specified.
145144

0 commit comments

Comments
 (0)