Skip to content

[css-contain-3] Add container-font relative units  #8855

@mirisuzanne

Description

@mirisuzanne

In #7858, there was mention of cqem as a useful alternative to rem units - based on the container font size, rather than the root font size. This seems like it could be useful for line height as well:

  • rem => cqem
  • rlh => cqlh

Less essential, but also worth considering (I don't think these have root versions?):

  • ex => cqex
  • ch => cqch

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions