Skip to content

Commit 4cfc9f5

Browse files
committed
[css-snap-size] Minor changes
1 parent 006ab05 commit 4cfc9f5

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

css-snap-size/Overview.bs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Snapping Heights: the 'snap-height' property {#snap-height}
2828

2929
<pre class='propdef'>
3030
Name: snap-height
31-
Value: none | <<length>> <<number>>?
31+
Value: none | <<length>> <<integer>>?
3232
Initial: none
3333
Applies to: block, flex and grid containers
3434
Inherited: yes
@@ -47,24 +47,24 @@ Values have the following meanings:
4747
<dt><<length>>
4848
<dd>
4949
This value defines the <dfn>grid unit</dfn>.
50-
<dt><<number>>
50+
Positive values are valid.
51+
<dt><<integer>>
5152
<dd>
5253
This value defines the <dfn>grid baseline position</dfn>
5354
within the <a>grid unit</a>.
55+
Values between 1 and 100 (inclusive) are valid.
5456
</dl>
5557

56-
When the <a>grid unit</a> is set to a positive length,
58+
When the <a>grid unit</a> is set,
5759
the line box heights are rounded <i>up</i> to
5860
the closest multiple of the unit.
5961

60-
[[!CSS21]] defines how to compute the line box height
62+
[[!CSS21]] 10.8 Line height calculations
63+
defines how to compute the line box height
6164
after the line box was constructed from inline-level boxes.
6265
The rounding is applied to the computed line box height.
6366
The additional spaces created by the rounding
6467
are added <a>over</a> and <a>under</a> the line box.
65-
These spaces do not affect the top and the bottom of the line box,
66-
so that the position of ''vertical-align/top'' or ''vertical-align/bottom''
67-
of the 'vertical-align' property relative to the line box are not affected.
6868

6969
The <a>grid baseline position</a> then determines
7070
how the additional spaces are distributed to <a>over</a> and <a>under</a>.
@@ -129,7 +129,7 @@ the additional spaces are distributed using the following formula:
129129
* space-over = GU - mod(T + GU - BP, GU)
130130
* space-under = GU - mod(space-over + T + B, GU)
131131
* GU: the <a>grid unit</a>.
132-
* BP: the <a>grid baseline position</a> &times; GU.
132+
* BP: the <a>grid baseline position</a> &times; GU / 100.
133133
* T: the distance between the top of the line box and the baseline.
134134
* B: the distance between the bottom of the line box and the baseline.
135135

0 commit comments

Comments
 (0)