Skip to content

Commit 94a5af0

Browse files
nschonnifantasai
authored andcommitted
[css-rhythm-1] figure/figcaption conversion
1 parent e5dd43f commit 94a5af0

1 file changed

Lines changed: 15 additions & 15 deletions

File tree

css-rhythm-1/Overview.bs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ Introduction {#intro}
5050
lines of text in different fonts can create consistent visuals
5151
to help readability.
5252

53-
<div class="figure">
53+
<figure>
5454
<a href="examples/snap-height.html">
5555
<img src="images/snap-height-sample.png"></a>
56-
<p class="caption">Vertical rhythm kept through pictures and different size of text in a multi-column document.
57-
</div>
56+
<figcaption>Vertical rhythm kept through pictures and different size of text in a multi-column document.</figcaption>
57+
</figure>
5858

5959
East Asian Casual Vertical Rhythms {#eastasia}
6060
----------------------------------------------
@@ -134,21 +134,21 @@ Adjusting Block-level Box Heights {#block-height}
134134
This allows content before and after the interruption
135135
to maintain a continuous rhythm.
136136

137-
<div class="figure">
137+
<figure>
138138
<img src="images/block-step-size-before.png"
139-
style="width: 500px">
139+
width="500">
140140
<figcaption>Heads and blockquotes have varying font sizes and line heights,
141141
resulting in uneven text across columns.</figcaption>
142-
</div>
142+
</figure>
143143

144144

145145

146-
<div class="figure">
146+
<figure>
147147
<img src="images/block-step-size-after.png"
148-
style="width: 500px">
148+
width="500">
149149
<figcaption>Space inserted before and after blocks (shown with colored borders)
150150
restores vertical rhythm.</figcaption>
151-
</div>
151+
</figure>
152152

153153
While consistent use of the block step properties
154154
can produce the strictly gridded layout needed
@@ -396,18 +396,18 @@ by making heights of all lines an integer multiple of the <a>step unit</a>.
396396
This inline-level box does not affect alignment points of the 'vertical-align' property,
397397
except values that align relative to the line box.
398398

399-
<div class="figure">
399+
<figure>
400400
<img src="images/adjust-line-height.svg">
401-
<p class="caption">Rounding up the computed line box height.
402-
</div>
401+
<figcaption>Rounding up the computed line box height.</figcaption>
402+
</figure>
403403

404404
<div class="issue">Should this be animatable?
405405
There doesn't seem to be use cases but needed for consistency?</div>
406406

407407
<div class="example">
408-
<div class="figure" style="float:right">
409-
<img src="images/line-grid-center.svg" style="height: 300px">
410-
</div>
408+
<figure style="float:right">
409+
<img src="images/line-grid-center.svg" height="300">
410+
</figure>
411411

412412
In the following example,
413413
the height of line box in each paragraph is rounded up to the <a>step unit</a>.

0 commit comments

Comments
 (0)