@@ -1653,8 +1653,8 @@ <h3 id="slot-sizes">
16531653
16541654 < pre > div {
16551655 height: 16em;
1656- grid: "a.b"/ *
1657- "ac."/ * }</ pre >
1656+ grid: "a.b" / *
1657+ "ac." / * }</ pre >
16581658 </ div >
16591659
16601660 < li >
@@ -1712,10 +1712,11 @@ <h3 id="slot-sizes">
17121712 largest < var > PREFH</ var > of all slots in the row.
17131713
17141714 < div class =example >
1715- < p > For example, the second row in this grid
1715+ < p > For example, the third row in this grid
17161716
17171717 < pre > grid: "a.c.." / 5em
1718- "....b" / fit-content</ pre >
1718+ "a...."
1719+ "....b"</ pre >
17191720
17201721 < p > must not be taller than the height (< span > block
17211722 dimension</ span > ) of slot b. The first row contains a slot that
@@ -1774,7 +1775,7 @@ <h3 id="slot-sizes">
17741775 < div class =example >
17751776 < p > For example, there would be multiple solutions for this grid:
17761777
1777- < pre > <DIV STYLE="float: left; grid: " a.b">
1778+ < pre > <DIV STYLE="float: left; grid: ' a.b' ">
17781779 <P STYLE="flow: a"> Two words
17791780 <P STYLE="flow: b"> Only three words
17801781</DIV> </ pre >
@@ -1905,9 +1906,9 @@ <h2 id=positioning>
19051906
19061907 < p > The second way is to absolutely position elements using four
19071908 < em > grid lines</ em > to specify the positions of the four margin
1908- edges of the element. Like other positioned elements (''absolute''
1909- or ''relative'', see [[!CSS21]]), these elements can overlap each
1910- other and the 'z-index' property applies to them.
1909+ edges of the element. As positioned elements [[!CSS21]], these
1910+ elements can overlap each other and the 'z-index' property applies
1911+ to them.
19111912
19121913
19131914
@@ -2097,9 +2098,9 @@ <h3>
20972098P {grid-row: a; grid-column: d}
20982099 </ pre >
20992100
2100- < p > are valid and mean that any P spans the same rows as slot a and
2101- spans the same columns as slot c. (In this case, that means it
2102- coincides with slot b.)
2101+ < p > mean that any P spans the same rows as slot a and spans the same
2102+ columns as slot c. (In this case, that means it coincides with slot
2103+ b.)
21032104 </ div >
21042105
21052106 < p > If the value is given as ''< var > <grid-track></ var > '' and
@@ -2131,6 +2132,70 @@ <h3>
21312132 'max-content'.
21322133
21332134
2135+ < h3 >
2136+ Absolute positioning using a grid: 'top', 'right', 'bottom', 'right'</ h3 >
2137+
2138+ < p class =issue > Instead of introducing properties 'grid-column' and
2139+ 'grid-row' that override 'top', 'right', 'bottom' and 'right', it
2140+ might be better to extend those properties.
2141+
2142+ < table class =propdef-extra >
2143+ < tr >
2144+ < th > Name:
2145+ < td > < dfn > top</ dfn > , < dfn > right</ dfn > , < dfn > bottom</ dfn > , < dfn > left</ dfn >
2146+ < tr >
2147+ < th > < a href ="#values "> Value</ a > :
2148+ < td > < var > <identifier></ var > | '*' | < var > <integer></ var >
2149+ </ table >
2150+
2151+ < p > The new values for these properties refer to < em > grid lines</ em >
2152+ of the element's < span > grid ancestor</ span > as follows:
2153+
2154+ < p > An identifier or '*' refers to an edge of the slot of that name:
2155+ the top edge if used on 'top', the right edge if used on 'right',
2156+ the bottom edge if used on 'bottom', and the left edge if used on
2157+ 'left'. ('*' refers to the < span > default slot.</ span > )
2158+
2159+ < div class =example >
2160+ < p > For example, these rules
2161+
2162+ < pre >
2163+ DIV {grid: "ab"
2164+ "cd"}
2165+ P {position: absolute; top: a; left: d}</ pre >
2166+
2167+ < p > mean that any P is positioned with its top at the top of the
2168+ first row and its left at the left of the second column, i.e., at
2169+ the top left corner of slot b. In other words, the declarations
2170+ 'top: b; left: b' would have meant the same thing.
2171+ </ div >
2172+
2173+ < div class =example >
2174+ < p > This example positions all four sides of an element at grid
2175+ lines, so that the element will exactly overlap a given slot. (This
2176+ assumes 'width' and 'height' have their default value of ''auto'.)
2177+
2178+ < pre >
2179+ DIV {grid: "aaa"
2180+ "bbb"}
2181+ DIV H2 {position: absolute; top: a; right: a;
2182+ bottom: a; left: a}</ pre >
2183+ </ div >
2184+
2185+ < p > A number value refers to row grid lines (on 'top' and 'bottom')
2186+ or to column grid lines (on 'left' and 'right').
2187+
2188+ < p class =issue > Use negative number to count from the right/bottom?
2189+ Then 'left: 1; right: -1' would make the element as wide as the
2190+ grid, no matter how many columns it had.
2191+
2192+ < p > A number '0' is an error.
2193+
2194+ < p > If the value refers to a slot or grid line that does not exist in
2195+ the < span > grid ancestor,</ span > or if there is no grid ancestor, the
2196+ value is treated as ''auto''.
2197+
2198+
21342199
21352200< h3 id =grid-position >
21362201The 'grid-position' shorthand property</ h3 >
@@ -2400,7 +2465,7 @@ <h2 id=slot-layout>
24002465
24012466 < div class =example >
24022467 < p > The next three figures illustrate the placement and orientation of
2403- the < i > grid element</ i > 's rows, columns, and < i > grid items</ i > using
2468+ the < i title =" grid element " > grid element's </ i > rows, columns, and < i > grid items</ i > using
24042469 different writing modes on the < i > grid element</ i > . In each of the
24052470 figures, the markup shown in the following example is used to place
24062471 < i > grid item</ i > A in column 1, row 1, and < i > grid item</ i > B in
@@ -2409,7 +2474,7 @@ <h2 id=slot-layout>
24092474 its row and column.
24102475 < i > Grid item</ i > B is aligned in each figure to the ending edges of
24112476 its row and column.
2412- < pre class =" example " > <style type="text/css">
2477+ < pre > <style type="text/css">
24132478 #grid { display: grid; grid-columns: 1fr 1fr; grid-rows: 1fr 1fr }
24142479 #A { grid-column: 1; grid-row: 1; grid-column-align: start; grid-row-align: start }
24152480 #B { grid-column: 2; grid-row: 2; grid-column-align: end; grid-row-align: end }
@@ -2583,7 +2648,7 @@ <h3 id=vertical-alignment>
25832648
25842649 < dl >
25852650
2586- < dt > '' bottom''
2651+ < dt > bottom
25872652
25882653 < dd > The content of the slot is aligned to the bottom of the slot:
25892654 the bottom margin edge of the anonymous block coincides with the
0 commit comments