Skip to content

Commit a7c1803

Browse files
committed
[css-sizing-3] Add another level of indirection to the example, to hopefully make #4177 clearer.
1 parent b2a72a5 commit a7c1803

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

css-sizing-3/Overview.bs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -971,12 +971,17 @@ Extrinsic Size Determination</h2>
971971

972972
<xmp class='lang-html'>
973973
<article style="height: 60em">
974-
<aside style="height: 50%;">
975-
</aside>
974+
<figure style="height: 50%;">
975+
<img style="height: 50%;">
976+
</figure>
976977
</article>
977978
</xmp>
978979

979-
the <code>&lt;aside></code> would be 30em tall.
980+
* the <code>&lt;figure></code> would be ''30em'' tall
981+
= 50% of the [=definite=] ''60em'' height of the <code>&lt;article></code>
982+
* the <code>&lt;img></code> would be ''15em'' tall
983+
= 50% of the <code>&lt;figure></code>’s height
984+
(which is itself [=definite=] because it's a percentage resolved against a [=definite=] length)
980985
</div>
981986

982987
Sometimes the size of a percentage-sized box’s <a>containing block</a>

0 commit comments

Comments
 (0)