Skip to content

Commit 4bcfff1

Browse files
committed
[css-rhythm-1] Improve intro to block-step properties. #1154
1 parent c3b63f7 commit 4bcfff1

1 file changed

Lines changed: 24 additions & 7 deletions

File tree

css-rhythm-1/Overview.bs

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,15 @@ or that the 'line-height-step' property is used together with them.
110110
Adjusting Block-level Box Heights {#block-height}
111111
=================================
112112

113-
Much web content includes blocks with varying font sizes, line heights,
114-
margins, etcetera. Adjusting line box heights may not be enough to
115-
achieve a vertical rhythm in these circumstances,
116-
and can negatively affect the readability of Latin scripts by altering line heights.
117-
Constraining block height, rather than line height, to a multiple of a step size
118-
can achieve a vertical rhythm in these circumstances.
119-
113+
The most common typographic rhythm problems are block-level intrusions:
114+
when continuous paragraph-level text is interrupted
115+
by differently-sized content such as illustrations and headings,
116+
then the line-to-line rhythm can be thrown off.
117+
The block step properties allow such elements
118+
to be fitted to the rhythmic interval
119+
by constraining their height to a multiple of a specified step size.
120+
This allows content before and after the interruption
121+
to maintain a continuous rhythm.
120122

121123
<div class="figure">
122124
<img src="images/block-step-size-before.png"
@@ -134,6 +136,21 @@ Adjusting Block-level Box Heights {#block-height}
134136
restores vertical rhythm.</figcaption>
135137
</div>
136138

139+
While consistent use of the block step properties
140+
can produce the strictly gridded layout needed
141+
for parallel content flows,
142+
per-element specification of the step size
143+
also allows some interruptions to take their natural size in the flow,
144+
restarting the vertical rhythm afterwards.
145+
This can be useful in single-column layouts
146+
where the vertical rhythm is important to maintain visual continuity,
147+
but there is nothing alongside to align to.
148+
In these casese,
149+
large interruptions which visually disconnect the flow before and after
150+
can prioritize optimal spacing around the item
151+
over strict adherence to a continouous grid
152+
(by specifying ''block-step: none'', the initial value).
153+
137154
ISSUE: This proposal can be simplified down to just the 'block-step-size' property, represented solely through its shortened form as 'block-step'.
138155
This level will likely at most contain 'block-step-size' and 'block-step-insert', leaving 'block-step-align' and 'block-step-round' to be added if the future demands.
139156
The full design is described herein for current discussion and future reference.

0 commit comments

Comments
 (0)