@@ -310,6 +310,9 @@ <h2 class="no-num no-toc" id=contents> Table of contents</h2>
310310
311311 < li > < a href ="#z-order "> < span class =secno > 7.4. </ span > Z-axis Ordering:
312312 the ‘< code class =property > z-index</ code > ’ property</ a >
313+
314+ < li > < a href ="#grid-baselines "> < span class =secno > 7.5. </ span > Grid
315+ Baselines</ a >
313316 </ ul >
314317
315318 < li > < a href ="#layout-algorithm "> < span class =secno > 8. </ span > Grid Layout
@@ -2480,6 +2483,43 @@ <h3 id=z-order><span class=secno>7.4. </span> Z-axis Ordering: the ‘<code
24802483 <div id="E"> E</div>
24812484</div> </ pre >
24822485
2486+ < h3 id =grid-baselines > < span class =secno > 7.5. </ span > Grid Baselines</ h3 >
2487+
2488+ < p > The baselines of a < a href ="#grid-container "> < i > grid container</ i > </ a >
2489+ are determined as follows:
2490+
2491+ < ol >
2492+ < li > If any of the < a href ="#grid-item "> < i > grid items</ i > </ a > whose areas
2493+ intersect the < a href ="#grid-container "> < i > grid container</ i > </ a > ’s
2494+ first row/column < a href ="#baseline-participation "> participate in
2495+ baseline alignment</ a > , the grid container's baseline is the baseline of
2496+ those < a href ="#grid-item "> < i > grid items</ i > </ a > .
2497+
2498+ < li > Otherwise, if the grid container has at least one < a
2499+ href ="#grid-item "> < i > grid item</ i > </ a > whose area intersects the first
2500+ row/column, and the first such < a href ="#grid-item "> < i > grid item</ i > </ a >
2501+ (in ‘< code class =property > order</ code > ’-modified document order) has
2502+ a baseline parallel to the relevant axis, the grid container's baseline
2503+ is that baseline.
2504+
2505+ < li > Otherwise, the grid container's baseline is < a
2506+ href ="http://www.w3.org/TR/css3-writing-modes/#inline-alignment "> synthesized</ a >
2507+ from the first item's (in ‘< code
2508+ class =property > order</ code > ’-modified document order) content box, or,
2509+ failing that, from the grid container's content box.
2510+ </ ol >
2511+
2512+ < p > When calculating the baseline according to the above rules, if the box
2513+ contributing a baseline has an ‘< code class =property > overflow</ code > ’
2514+ value that allows scrolling, the box must be treated as being in its
2515+ initial scroll position for the purpose of determining its baseline.
2516+
2517+ < p > When < a
2518+ href ="http://www.w3.org/TR/CSS21/tables.html#height-layout "> determining
2519+ the baseline of a table cell</ a > , a grid container provides a baseline
2520+ just as a line box or table-row does. < a href ="#CSS21 "
2521+ rel =biblioentry > [CSS21]<!--{{!CSS21}}--> </ a >
2522+
24832523 < h2 id =layout-algorithm > < span class =secno > 8. </ span > Grid Layout Algorithm</ h2 >
24842524
24852525 < h3 id =algo-terms > < span class =secno > 8.1. </ span > Definition of Terms for
0 commit comments