@@ -45,7 +45,7 @@ <h2 class="no-num no-toc">[LONGSTATUS] [DATE: 3 August 2004]</h2>
4545
4646 < dt > Latest version:
4747
48- < dd > < a href ="[LATEST] "> http://www.w3.org/TR/css3-layout/</ a >
48+ < dd > < a href ="[LATEST] "> http://www.w3.org/TR/css3-layout/</ a >
4949
5050 < dt > Previous version:
5151
@@ -92,8 +92,8 @@ <h2 class="no-num no-toc" id=abstract>Abstract</h2>
9292slots so that the visual order becomes independent of the document
9393order.
9494
95- < p > The '::slot()' pseudo-element allows to style the slots
96- (backgrounds, borders, etc.)
95+ < p > The < span > '::slot()' pseudo-element</ span > allows to style the
96+ slots (backgrounds, borders, etc.)
9797
9898< p > The 'grid-position' property can be used instead of the 'top',
9999'left', 'right' and 'bottom' properties from level 2 to position
@@ -739,7 +739,7 @@ <h2>Declaring templates</h2>
739739<!--=================================================================-->
740740
741741
742- < h3 id =grid-template > Declaring a template: 'grid-template'</ h3 >
742+ < h3 id =grid-template > Declaring a template: 'grid-template'</ h3 >
743743
744744< p > The 'grid-template' property implicitly assigns a grid to an
745745element and defines named slots in the grid. It can also designate a
@@ -869,7 +869,7 @@ <h3 id=grid-template> Declaring a template: 'grid-template'</h3>
869869
870870
871871
872- < h3 id =grid-column-sizes > Specifying the widths of columns:
872+ < h3 id =grid-column-sizes > Specifying the widths of columns:
873873'grid-columns'</ h3 >
874874
875875< table class =propdef >
@@ -984,7 +984,7 @@ <h3 id=grid-column-sizes> Specifying the widths of columns:
984984
985985<!--=================================================================-->
986986
987- < h3 id =grid-row-sizes > Specifying the height of rows: 'grid-rows'</ h3 >
987+ < h3 id =grid-row-sizes > Specifying the height of rows: 'grid-rows'</ h3 >
988988
989989< table class =propdef >
990990< tbody >
@@ -1097,7 +1097,7 @@ <h3 id=grid-row-sizes> Specifying the height of rows: 'grid-rows'</h3>
10971097
10981098<!--=================================================================-->
10991099
1100- < h3 id =grid-shorthand > The 'grid' shorthand property</ h3 >
1100+ < h3 id =grid-shorthand > The 'grid' shorthand property</ h3 >
11011101
11021102< table class =propdef >
11031103< tbody >
@@ -1281,8 +1281,9 @@ <h3 id=slot-sizes>Calculating the size of the grid</h3>
12811281< li > Otherwise, if the slot is < em > vertical,</ em > then < var > MINW</ var >
12821282is the < em > block dimension</ em > of the slot, plus its horizontal
12831283padding, border and margin (i.e., any 'margin-left', 'margin-right',
1284- etc., that is set on it by means of the '::slot()' pseudo-element).
1285- Any ''auto'' margins are counted as 0 in this case.
1284+ etc., that is set on it by means of the < span > '::slot()'
1285+ pseudo-element</ span > ). Any ''auto'' margins are counted as 0 in this
1286+ case.
12861287
12871288< li > Otherwise, if the slot spans at least one column whose width is
12881289specified as ''max-content'' (or 'minmax()' with a first argument of
@@ -2302,7 +2303,7 @@ <h3>Absolute positioning using a grid: 'grid-position-x' and
23022303
23032304<!--=================================================================-->
23042305
2305- < h3 id =grid-position > The 'grid-position' shorthand property</ h3 >
2306+ < h3 id =grid-position > The 'grid-position' shorthand property</ h3 >
23062307
23072308< table class =propdef >
23082309< tbody >
@@ -2476,15 +2477,8 @@ <h2>Rendering of grid elements</h2>
24762477
24772478< h3 id =vertical-alignment > Vertical alignment of the contents of slots</ h3 >
24782479
2479- < p > The 'vertical-align' property of a '::slot()' pseudo-element can be
2480- used to align elements vertically in a slot (or horizontally, if the
2481- slot is < span > vertical</ span > ). The effect is as if the
2482- < em title ="anonymous block of a slot "> hypothetical anonymous block</ em >
2483- that contains the slot's contents is positioned as defined below.
2484-
2485- < p > For the purpose of this section we define the < dfn > tail edge</ dfn >
2486- and < dfn > head edge</ dfn > of a box as a writing-mode-dependent edge as
2487- follows:
2480+ < p class =issue > Add the effect of 'margin-{top,bottom}: auto',
2481+ generalized from flexbox. (By reference to css3-box?)
24882482
24892483< div class =issue >
24902484< p > Especially in paged material, it is very common for a column of
@@ -2510,34 +2504,43 @@ <h3 id=vertical-alignment>Vertical alignment of the contents of slots</h3>
25102504< pre > padding-top: 0.5em + 1fill</ pre >
25112505</ div >
25122506
2507+ < p > For the purpose of this section we define the < dfn > A edge</ dfn >
2508+ and < dfn > C edge</ dfn > of a box as a writing-mode-dependent edge as
2509+ follows:
2510+
25132511< table class =equiv-table >
25142512< thead >
2515- < tr > < th > Value of 'writing-mode' < th > Meaning of “head ” < th > Meaning of “tail ”
2513+ < tr > < th > Value of 'writing-mode' < th > Meaning of “A ” < th > Meaning of “C ”
25162514< tbody >
25172515< tr > < th > ''horizontal-tb'' < td > top < td > bottom
25182516< tr > < th > ''vertical-rl'' < td > right < td > left
25192517< tr > < th > ''vertical-lr'' < td > left < td > right
25202518</ table >
25212519
2522- < p > E.g., if a box is < span > horizontal,</ span > “head edge” means the
2523- top edge.
2520+ < p > E.g., if a box is < span > horizontal,</ span > the “A edge” is the top
2521+ edge.
2522+
2523+ < p > The 'vertical-align' property of a '::slot()' pseudo-element can be
2524+ used to align elements vertically in a slot (or horizontally, if the
2525+ slot is < span > vertical</ span > ). The effect is as if the
2526+ < em title ="anonymous block of a slot "> hypothetical anonymous block</ em >
2527+ that contains the slot's contents is positioned as defined below.
25242528
25252529< dl >
25262530< dt > bottom
25272531< dd >
2528- The content of the slot is aligned to the < span > tail edge</ span > of
2529- the slot: the tail margin edge of the anonymous block coincides with
2530- the tail margin edge of the slot.
2532+ The content of the slot is aligned to the < span > C edge</ span > of the
2533+ slot: the C margin edge of the anonymous block coincides with the C
2534+ margin edge of the slot.
25312535
25322536< dt > middle
25332537< dd >
25342538The content of the slot is centered in the slot: the distance between
2535- the < span title ="head edge "> head</ span > margin edge of the anonymous
2536- block and the < span title ="head edge "> head</ span > margin edge of the
2537- slot is equal to the distance between the < span title ="tail
2538- edge "> tail</ span > margin edge of the anonymous block and
2539- the < span title ="tail edge "> tail</ span > margin edge of the
2540- slot.
2539+ the < span title ="A edge "> A</ span > margin edge of the anonymous block
2540+ and the < span title ="A edge "> A</ span > margin edge of the slot is equal
2541+ to the distance between the < span title ="C edge "> C</ span > margin edge
2542+ of the anonymous block and the < span title ="C edge "> C</ span > margin
2543+ edge of the slot.
25412544
25422545< p class =note > (Note that if the content overflows the slot, it will
25432546overflow at both edges.)
@@ -2549,9 +2552,9 @@ <h3 id=vertical-alignment>Vertical alignment of the contents of slots</h3>
25492552under two constraints:
25502553
25512554< ol >
2552- < li > The < span title ="head edge "> head </ span > margin edge of the
2553- anonymous block may not be beyond the < span title ="head edge "> head </ span >
2554- margin edge of the slot.
2555+ < li > The < span title ="A edge "> A </ span > margin edge of the anonymous
2556+ block may not be beyond the < span title ="A edge "> A </ span > margin edge
2557+ of the slot.
25552558
25562559< li > If the content has a relevant first line (see below), then the
25572560baseline of that line must align with the baselines of the relevant
@@ -2582,6 +2585,10 @@ <h3 id=vertical-alignment>Vertical alignment of the contents of slots</h3>
25822585
25832586< p > For all other values, the content is aligned as for ''baseline''.
25842587
2588+ < p class =note > Note that baseline alignment may cause a slot to
2589+ overflow (if the slot is the last in a 'chain') or to remain empty
2590+ (because the first line box is put in the next chained slot instead).
2591+
25852592<!--=================================================================-->
25862593
25872594< h3 id =paged > Breaking grid elements across pages or columns</ h3 >
@@ -4168,10 +4175,10 @@ <h2 class="no-num" id="acknowledgments">Acknowledgments</h2>
41684175prototype.</ a > Andrew Fedoniouk
41694176built < a
41704177href ="http://lists.w3.org/Archives/Public/www-style/2009Mar/0278.html "
4171- > the second.</ a >
4178+ > the second.</ a >
41724179A < a
41734180href ="http://lists.w3.org/Archives/Public/www-style/2009Apr/0383.html "
4174- > third prototype</ a > was made by Alexis Deveria.
4181+ > third prototype</ a > was made by Alexis Deveria.
41754182
41764183<!--=================================================================-->
41774184
0 commit comments