Skip to content

Commit af9a7a6

Browse files
committed
[css-grid] Resolve issue about ignoring/triggering on grid-template-*
1 parent 3a61563 commit af9a7a6

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

css-grid/Overview.bs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -737,14 +737,12 @@ Establishing Grid Containers: the ''display/grid'', ''inline-grid'', and ''subgr
737737
If the element is a <a>grid item</a>
738738
(i.e. it is in-flow and its parent is a <a>grid container</a>),
739739
this value makes the element a <a>subgrid</a>
740-
(which is a special type of <a>grid container</a> box, see [[#subgrids]]).
740+
(which is a special type of <a>grid container</a> box, see [[#subgrids]])
741+
and consequently ignores its 'grid-template-*' and 'grid-*-gap' properties
742+
in favor of adopting the parent grid tracks that it spans.
741743

742744
Otherwise,
743745
it behaves as ''grid''.
744-
745-
Issue: Should we make this contingent on whether grid-template-* have their initial values,
746-
in case we want to expand this behavior in the future?
747-
(Since grid-template-* is ignored by subgrids right now.)
748746
</dl>
749747

750748
A <dfn export>grid container</dfn> establishes a new <dfn export>grid formatting context</dfn> for its contents.

0 commit comments

Comments
 (0)