Skip to content

[css-env] getting access to the document title #3685

@frivoal

Description

@frivoal

It can be useful to reuse the title of the document (the string found in the <title> element of an HTML document) in ::before or ::after. An easily recognizable example is running headers and footers, but that's limited to actually paged media, and it would be nice to achieve a similar effect in general.

A possible solution for this would be exposing it via env(doc-title).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions