Skip to content

Commit 5546ead

Browse files
authored
[css-exclusions-1] figure/figcaption and widths (w3c#5980)
1 parent 7ae9123 commit 5546ead

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

css-exclusions-1/Overview.bs

+15-15
Original file line numberDiff line numberDiff line change
@@ -202,22 +202,22 @@ The 'wrap-flow' property</h4>
202202
to its containing block's <a>wrapping context</a>, causing the containing
203203
block's descendants to wrap around its <a>exclusion area</a>.
204204

205-
<div class="figure">
206-
<img alt="LTR text wrapping on left edge, RTL text wrapping on right edge, and vertical text wrapping on top edge." src="images/exclusion-writing-modes.png" width="70%" />
207-
<p class="caption">Exclusion with 'wrap-flow': ''start'' interacting with various
208-
writing modes.</p>
209-
</div>
205+
<figure>
206+
<img alt="LTR text wrapping on left edge, RTL text wrapping on right edge, and vertical text wrapping on top edge." src="images/exclusion-writing-modes.png" style="width: 70%" />
207+
<figcaption>Exclusion with 'wrap-flow': ''start'' interacting with various
208+
writing modes.</figcaption>
209+
</figure>
210210

211211
Determining the relevant edges of the exclusion depends on the
212212
<a href="https://www.w3.org/TR/css3-writing-modes/#text-flow">writing mode</a> [[!CSS3-WRITING-MODES]] of the content wrapping around the 'exclusion area'.
213213

214214
An <a>exclusion element</a> establishes a new <a href="">block formatting
215215
context</a> (see [[!CSS21]]) for its content.
216216

217-
<div class="figure">
218-
<img alt="General illustration showing how exclusions combine" src="images/exclusions-illustration.png" width="70%" />
219-
<p class="caption">Combining exclusions</p>
220-
</div>
217+
<figure>
218+
<img alt="General illustration showing how exclusions combine" src="images/exclusions-illustration.png" style="width: 70%" />
219+
<figcaption>Combining exclusions</figcaption>
220+
</figure>
221221

222222
The above figure illustrates how exclusions are combined. The outermost box
223223
represents an element's content box. The A, B, C and D darker gray boxes
@@ -677,15 +677,15 @@ Processing Model Example</h4>
677677
<li>the layout tree of generated block boxes
678678
</ul>
679679

680-
<div class="figure">
680+
<figure>
681681
<img src="images/processing-model-example-dom.svg" width="200" alt="DOM tree nodes"/>
682-
<p class="caption">DOM tree
683-
</div>
682+
<figcaption>DOM tree</figcaption>
683+
</figure>
684684

685-
<div class="figure">
685+
<figure>
686686
<img src="images/processing-model-example-layout-tree.svg" width="350" alt="Layout tree boxes"/>
687-
<p class="caption">Layout tree of generated block boxes
688-
</div>
687+
<figcaption>Layout tree of generated block boxes</figcaption>
688+
</figure>
689689

690690
<h5 id="example-step-1">
691691
Step 1: resolve exclusion boxes belonging to each <a>wrapping context</a></h5>

0 commit comments

Comments
 (0)