Skip to content

Commit e1f71f2

Browse files
committed
[css-sizing-3] Move section, add subheading, improve cross-references.
1 parent 054c857 commit e1f71f2

1 file changed

Lines changed: 47 additions & 40 deletions

File tree

css-sizing-3/Overview.bs

Lines changed: 47 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -778,6 +778,51 @@ New Column Sizing Values: the ''column-width/min-content'', ''column-width/max-c
778778
all of its contents are taken under consideration
779779
and the calculated width is shared by all the columns.
780780

781+
<!--
782+
████████ ██ ██ ████████ ████████ ████ ██ ██ ██████ ████ ██████
783+
██ ██ ██ ██ ██ ██ ██ ███ ██ ██ ██ ██ ██ ██
784+
██ ██ ██ ██ ██ ██ ██ ████ ██ ██ ██ ██
785+
██████ ███ ██ ████████ ██ ██ ██ ██ ██████ ██ ██
786+
██ ██ ██ ██ ██ ██ ██ ██ ████ ██ ██ ██
787+
██ ██ ██ ██ ██ ██ ██ ██ ███ ██ ██ ██ ██ ██
788+
████████ ██ ██ ██ ██ ██ ████ ██ ██ ██████ ████ ██████
789+
-->
790+
791+
<h2 id='extrinsic'>
792+
Extrinsic Size Determination</h2>
793+
794+
<p>
795+
<dfn export>Extrinsic sizing</dfn> determines sizes based on the context of an element,
796+
without regard for its contents.
797+
798+
799+
<h3 id="percentage-sizing">
800+
Percentage Sizing</h3>
801+
802+
Percentages specify sizing of a box with respect to the box’s <a>containing block</a>.
803+
804+
<div class="example">
805+
For example, in the following markup:
806+
807+
<xmp class='lang-html'>
808+
<article style="height: 60em">
809+
<figure style="height: 50%;">
810+
<img style="height: 50%;">
811+
</figure>
812+
</article>
813+
</xmp>
814+
815+
* the <code>&lt;figure></code> would be ''30em'' tall
816+
= 50% of the [=definite=] ''60em'' height of the <code>&lt;article></code>
817+
* the <code>&lt;img></code> would be ''15em'' tall
818+
= 50% of the <code>&lt;figure></code>’s height
819+
(which is itself [=definite=] because it's a percentage resolved against a [=definite=] length)
820+
</div>
821+
822+
See [[#cyclic-percentage-contribution]]
823+
for details on how to resolve percentages
824+
when the size of the [=containing block=] depends
825+
on the size of its content.
781826

782827
<!--
783828
████ ██ ██ ████████ ████████ ████ ██ ██ ██████ ████ ██████
@@ -945,46 +990,8 @@ Intrinsic Contributions</h3>
945990
and/or existing implementations
946991
for further details.
947992

948-
<!--
949-
████████ ██ ██ ████████ ████████ ████ ██ ██ ██████ ████ ██████
950-
██ ██ ██ ██ ██ ██ ██ ███ ██ ██ ██ ██ ██ ██
951-
██ ██ ██ ██ ██ ██ ██ ████ ██ ██ ██ ██
952-
██████ ███ ██ ████████ ██ ██ ██ ██ ██████ ██ ██
953-
██ ██ ██ ██ ██ ██ ██ ██ ████ ██ ██ ██
954-
██ ██ ██ ██ ██ ██ ██ ██ ███ ██ ██ ██ ██ ██
955-
████████ ██ ██ ██ ██ ██ ████ ██ ██ ██████ ████ ██████
956-
-->
957-
958-
<h2 id='extrinsic'>
959-
Extrinsic Size Determination</h2>
960-
961-
<p>
962-
<dfn export>Extrinsic sizing</dfn> determines sizes based on the context of an element,
963-
without regard for its contents.
964-
965-
966-
<h3 id="percentage-sizing">
967-
Percentage Sizing</h3>
968-
969-
Percentages specify sizing of a box with respect to the box’s <a>containing block</a>.
970-
971-
<div class="example">
972-
For example, in the following markup:
973-
974-
<xmp class='lang-html'>
975-
<article style="height: 60em">
976-
<figure style="height: 50%;">
977-
<img style="height: 50%;">
978-
</figure>
979-
</article>
980-
</xmp>
981-
982-
* the <code>&lt;figure></code> would be ''30em'' tall
983-
= 50% of the [=definite=] ''60em'' height of the <code>&lt;article></code>
984-
* the <code>&lt;img></code> would be ''15em'' tall
985-
= 50% of the <code>&lt;figure></code>’s height
986-
(which is itself [=definite=] because it's a percentage resolved against a [=definite=] length)
987-
</div>
993+
<h4 id="cyclic-percentage-contribution">
994+
Intrinsic Contributions of Percentage-Sized Boxes</h4>
988995

989996
Sometimes the size of a percentage-sized box’s <a>containing block</a>
990997
depends on the intrinsic size contribution of the box itself,

0 commit comments

Comments
 (0)