File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -63,8 +63,6 @@ the closest multiple of the unit.
6363defines how to compute the line box height
6464after the line box was constructed from inline-level boxes.
6565The rounding is applied to the computed line box height.
66- The additional spaces created by the rounding
67- are added <a>over</a> and <a>under</a> the line box.
6866
6967The <a>grid baseline position</a> then determines
7068how the additional spaces are distributed to <a>over</a> and <a>under</a> .
@@ -126,8 +124,8 @@ Snapping Baselines {#snap-baseline}
126124When the <a>grid baseline position</a> is a positive number equals to or less than 1,
127125the additional spaces are distributed using the following formula:
128126
129- * space-over = ( BP - T & GU + GU) & GU
130- * space-under = GU - (space-over + T + B) & GU
127+ * space-over = BP - T % GU, add GU if negative
128+ * space-under = GU - (space-over + T + B) % GU
131129* GU: the <a>grid unit</a> .
132130* BP: the <a>grid baseline position</a> × GU / 100.
133131* T: the distance between the top of the line box and the baseline.
You can’t perform that action at this time.
0 commit comments