@@ -670,27 +670,55 @@ Grid Items</h2>
670670 is not rendered, as if it were ''display:none'' .
671671
672672 <div class="example">
673- Examples of grid items:
674- <pre>
675- <div style="display:grid">
673+ <p> Examples of grid items:
674+ <pre class="lang-markup">
675+ <div style="display:grid">
676+
677+ <!-- grid item: block child -->
678+ <div id="item1">block</div>
676679
677- <!-- grid item: block child -->
678- <div id="item1">block </div>
680+ <!-- grid item: floated element; floating is ignored -->
681+ <div id="item2" style="float: left;">float </div>
679682
680- <!-- grid item: floated element; floating is ignored -->
681- <div id="item2" style="float: left;">float</div>
683+ <!-- grid item: anonymous block box around inline content -->
684+ anonymous item 3
685+
686+ <!-- grid item: inline child -->
687+ <span>
688+ item 4
689+ <!-- grid items do not <a href="http://www.w3.org/TR/CSS2/visuren.html#anonymous-block-level">split</a> around blocks -->
690+ <q style="display: block" id=not-an-item>item 4</q>
691+ item 4
692+ </span>
693+ </div>
694+ </pre>
695+
696+ <figure>
697+ <figcaption> grid items determined from above code block</figcaption>
698+ <a href="examples/grid-item-determination.html">
699+ <object type="image/png" data="images/grid-item-determination.png">
700+ <ol>
701+ <li>grid item containing <samp>block</samp>.
702+ <li>grid item containing <samp>float</samp>.
703+ <li>(Anonymous, unstyleable) grid item containing <samp>anonymous item 3</samp>.
704+ <li>grid item containing three blocks in succession:
705+ <ul>
706+ <li>Anonymous block containing <samp>item 4</samp>.
707+ <li><code><q></code> element block containing <samp>item 4</samp>.
708+ <li>Anonymous block containing <samp>item 4</samp>.
709+ </ul>
710+ </ol>
711+ </object>
712+ </a>
713+ </figure>
682714
683- <!-- grid item: anonymous block box around inline content -->
684- anonymous item 3
715+ Note that the inter-element white space disappears:
716+ it does not become its own grid item,
717+ even though the inter-element text <em> does</em> get wrapped in an anonymous grid item.
685718
686- <!-- grid item: inline child -->
687- <span>
688- item 4
689- <!-- grid items do not split around blocks -->
690- <div id=not-an-item>item 4</div>
691- item 4
692- </span>
693- </div></pre>
719+ Note also that the anonymous item's box is unstyleable,
720+ since there is no element to assign style rules to.
721+ Its contents will however inherit styles (such as font settings) from the grid container.
694722 </div>
695723
696724 A <a>grid item</a> establishes a new formatting context for its contents.
0 commit comments