Editor's Draft · css-gcpm
CSS Generated Content for Paged Media
3 properties, 5 selectors, 1 function defined by this
specification, 0 of them known to at least one browser
(the others are badged Not in any browser yet).
Read the Editor's Draft ↗
Each feature in detail
No prose in the spec's definition and no MDN page yet: the spec link below is the only description.
Syntax
none | [ [ <custom-ident> <content-level>] [, <custom-ident> <content-level>]* ]?
Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Definition
- Initial
- none
- Applies to
- all elements and pseudo-elements, but not ::first-line or ::first-letter.
- Inherited
- no
- Percentages
- n/a
- Computed value
- as specified
- Canonical order
- per grammar
- Animation type
- discrete
Specification ↗
Spec Same as :nth-of-page(n), but where n = 1 (it is the first matched element on the page).
Syntax
:first-of-page
Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Specification ↗
Spec The element is the last matched element on the page.
Syntax
:last-of-page
Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Specification ↗
No prose in the spec's definition and no MDN page yet: the spec link below is the only description.
Syntax
:nth-of-page(n)
Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Specification ↗
No prose in the spec's definition and no MDN page yet: the spec link below is the only description.
Syntax
:nth( <a-n-plus-b> [of <custom-ident>]? )
Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Specification ↗
Spec The element is the first matched element on the page, and neither it nor its ancestors have any previous siblings that appear on the page.
Syntax
:start-of-page
Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Specification ↗
No prose in the spec's definition and no MDN page yet: the spec link below is the only description.
Syntax
running( <custom-ident> )
Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Specification ↗