@@ -554,6 +554,27 @@ <h3>Summary and examples</h3>
554554on slot c.
555555</ div >
556556
557+ < div class =example >
558+ < p > This example shows two [three] ways to align the contents of a
559+ fixed-height paragraph to the bottom of the box:
560+
561+ < dl >
562+ < dt > Method 1 < dd >
563+ < pre > P {height: 20em; grid: "." "*" fit-content}</ pre >
564+ < dt > Method 2 < dd >
565+ < pre > P {height: 20em; grid: "*"}
566+ P::slot(*) {vertical-align: bottom}</ pre >
567+ < dt > [Method 3] < dd class =issue >
568+ < pre > P {height: 20em; vertical-align: bottom}</ pre >
569+ </ dl >
570+
571+ < p > However, the styles differ in case the content is taller than 20 em
572+ and overflows: the first style has a baseline-aligned content which
573+ will thus overflow < em > below</ em > the element's box; the second
574+ example has bottom-aligned content, which will thus overflow
575+ < em > above</ em > the element's box.
576+ </ div >
577+
557578<!--=================================================================-->
558579
559580< h3 id =dependencies > Dependencies on other modules</ h3 >
@@ -988,54 +1009,25 @@ <h3 id=grid-row-sizes >Specifying the height of rows: 'grid-rows'</h3>
9881009
9891010< table class =propdef >
9901011< tbody >
991- < tr >
992- < th > Name:
993- < td > < dfn > grid-rows</ dfn >
994-
995- < tr >
996- < th > < a href ="#values " > Value</ a > :
997- < td > auto | < var > <row-height></ var > +
998-
999- < tr >
1000- < th > Initial:
1001- < td > auto
1002-
1003- < tr >
1004- < th > Applies to:
1005- < td > < span > block container</ span > elements
1006-
1007- < tr >
1008- < th > Inherited:
1009- < td > no
1010-
1011- < tr >
1012- < th > Animatable:
1013- < td > yes, between grids with the same number of tracks
1014-
1015- < tr >
1016- < th > Percentages:
1017- < td > N/A
1018-
1019- < tr >
1020- < th > Media:
1021- < td > visual
1022-
1023- < tr >
1024- < th > Computed value:
1025- < td > specified value
1026-
1027- < tr >
1028- < th > Canonical order:
1029- < td > < abbr title ="follows order of property value definition "> per
1030- grammar</ abbr >
1012+ < tr > < th > Name: < td > < dfn > grid-rows</ dfn >
1013+ < tr > < th > < a href ="#values " > Value</ a > : < td > auto | < var > <row-height></ var > +
1014+ < tr > < th > Initial: < td > auto
1015+ < tr > < th > Applies to: < td > < span > block container</ span > elements
1016+ < tr > < th > Inherited: < td > no
1017+ < tr > < th > Animatable: < td > yes, between grids with the same number of tracks
1018+ < tr > < th > Percentages: < td > N/A
1019+ < tr > < th > Media: < td > visual
1020+ < tr > < th > Computed value: < td > specified value
1021+ < tr > < th > Canonical order: < td > < abbr title ="follows order of property
1022+ value definition "> per grammar</ abbr >
10311023</ table >
10321024
10331025< p > The 'grid-rows' property specifies the heights of the rows of a
10341026grid.
10351027
10361028< pre class =prod >
10371029< dfn > <row-height></ dfn > = < var > <length></ var > | < var > <percentage></ var > | * | < var > <fraction></ var > |
1038- < var > <minmax></ var > | min-content | max-content | auto
1030+ < var > <minmax></ var > | min-content | max-content | fit-content
10391031< dfn > <minmax></ dfn > = minmax( < var > <row-height></ var > , < var > <row-height></ var > )
10401032</ pre >
10411033
@@ -1090,7 +1082,7 @@ <h3 id=grid-row-sizes >Specifying the height of rows: 'grid-rows'</h3>
10901082is ignored and ''minmax(< var > p</ var > ,< var > q</ var > )'' is treated as
10911083'minmax(< var > p</ var > ,< var > p</ var > )'.
10921084
1093- < dt > auto
1085+ < dt > fit-content
10941086< dd >
10951087Equivalent to 'minmax(min-content, max-content)'.
10961088</ dl >
@@ -2461,9 +2453,40 @@ <h2 id=region-based>Styling the contents of slots: '::flow()'</h2>
24612453that is inside slot a (similar to how '::first-line' selects the part
24622454of an element that is on the first line).
24632455
2464- < p > Inherited properties…
2456+ < div class =example >
2457+ < p > For example, this selector selects (the part of) a P that has been
2458+ flowed into a slot called c:
2459+
2460+ < pre > P::flow(b) { color: yellow }</ pre >
2461+ </ div >
2462+
2463+ < p > Only the following properties apply to the ''flow()''
2464+ pseudo-element:… [not display, position, flow, float]
2465+
2466+ < p > Inherited properties… [inherit from the document tree, not from the
2467+ pseudo-element]
2468+
2469+ < p > Non-inherited properties…
24652470
2466- < p > Non-inherited properties…
2471+ < div class =issue >
2472+ < p > The css3-regions draft proposes a different notation, with an
2473+ at-rule for styling (the parts of) elements that are inside the
2474+ pseudo-element of another element:
2475+
2476+ < pre > @region BODY::slot(c) { P { color: yellow } }
2477+ @region P::first-line { EM { font-weight: normal } }</ pre >
2478+
2479+ < p > Another possibility is to allow selectors to have parts after the
2480+ pseudo-element:
2481+
2482+ < pre > BODY::slot(c) P { color: yellow }
2483+ P::first-line EM { font-weight: normal }</ pre >
2484+
2485+ < p > Yet another possibility is a generic 'region()' pseudo-element:
2486+
2487+ < pre > P::region(BODY::slot(c)) { color: yellow }
2488+ EM::region(P::first-line) { font-weight: normal }</ pre >
2489+ </ div >
24672490</ div >
24682491
24692492<!--=================================================================-->
@@ -4015,9 +4038,7 @@ <h4>''fit-content'' vs ''auto'' vs…</h4>
40154038< p > ''fit-content'' in the Box Module is defined as something else, viz.,
40164039min(max(available width, ''min-content''), ''max-content'')).
40174040
4018- < p > In this specification, ''auto'' (not ''fit-content'') is allowed
4019- for column and row sizes and has the meaning of ''minmax(min-content,
4020- max-content)''.
4041+ < p > An alternative name could be ''auto''.
40214042
40224043<!--=================================================================-->
40234044
0 commit comments