DEV Community

[Comment from a deleted post]
Collapse
 
afif profile image
Temani Afif

(1) But we forget grid's items are block-level elements that stretch that way by default. --> they aren't block-level, they are grid-level. You can find this in the specification: w3.org/TR/css-grid-1/#grid-item-di...
(2) for the display part, you can find more detail here: w3.org/TR/css-display/#transformat... .. the blockified thing is done in may places (with absolute, fixed, float, flex, css grid, etc) each one is defined in its respective specification (ex: w3.org/TR/CSS21/visuren.html#dis-p...)

Collapse
 
melnik909 profile image
Stas Melnikov

Temani, If display: grid isn't applied what's the context of divs ?

Collapse
 
afif profile image
Temani Afif

in that case we don't talk about grid items