Chapter 7 - Pseudo-elements - 7.1.1 First formatted line definition in CSS
Go to the relevant page of the specification.
- grid-first-line-001
-
'::first-line' from grid container does not apply to grid items
This test checks that '::first-line' pseudo-element is ignored in grid items when applied to a grid container. - grid-first-line-002
-
'::first-line' from grid container ancestors does not apply to grid items
This test checks that '::first-line' pseudo-element is ignored in grid items when applied to a grid container ancestors. - grid-first-line-003
-
'::first-line' works on grid items
This test checks that '::first-line' pseudo-element works as expected if it is applied directly to a grid item. - grid-inline-first-line-001
-
'::first-line' from inline grid container does not apply to grid items
This test checks that '::first-line' pseudo-element is ignored in grid items when applied to an inline grid container. - grid-inline-first-line-002
-
'::first-line' from inline grid container ancestors does not apply to grid items
This test checks that '::first-line' pseudo-element is ignored in anonymous grid items when applied to an inline grid container ancestors. - grid-inline-first-line-003
-
'::first-line' works on grid items within an inline grid
This test checks that '::first-line' pseudo-element works as expected if it is applied directly to a grid item within an inline grid.