Skip to content

Commit 37243ad

Browse files
committed
[css-snap-size] Refined minor definitions
1 parent 2aa466c commit 37243ad

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

css-snap-size/Overview.bs

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

2929
<pre class='propdef'>
3030
Name: snap-height
31-
Value: none | <<length>> <<integer>>?
32-
Initial: none
31+
Value: <<length>> <<integer>>?
32+
Initial: 0px
3333
Applies to: block, flex and grid containers
3434
Inherited: yes
3535
Animatable: no
@@ -41,21 +41,18 @@ Snapping Heights: the 'snap-height' property {#snap-height}
4141
Values have the following meanings:
4242

4343
<dl dfn-for="snap-height">
44-
<dt><dfn>none</dfn>
45-
<dd>
46-
This value indicates that there is no snapping behavior.
4744
<dt><<length>>
4845
<dd>
4946
This value defines the <dfn>grid unit</dfn>.
50-
Positive values are valid.
47+
Non-negative lengths are valid.
5148
<dt><<integer>>
5249
<dd>
5350
This value defines the <dfn>grid baseline position</dfn>
5451
within the <a>grid unit</a>.
5552
Values between 1 and 100 (inclusive) are valid.
5653
</dl>
5754

58-
When the <a>grid unit</a> is set,
55+
When the <a>grid unit</a> is set to a positive length,
5956
the line box heights are rounded <i>up</i> to
6057
the closest multiple of the unit.
6158

@@ -121,7 +118,7 @@ Snapping Baselines {#snap-baseline}
121118
>
122119
</div>
123120

124-
When the <a>grid baseline position</a> is a positive number equals to or less than 1,
121+
When the <a>grid baseline position</a> is a positive value less than or equals to 100,
125122
the additional spaces are distributed using the following formula:
126123

127124
* space-over = BP - T % GU, add GU if negative

0 commit comments

Comments
 (0)