Skip to content

'line-height: normal' definition should reflect reality of determining based on fonts #1254

@dbaron

Description

@dbaron

The definition of line-height: normal says:

Tells user agents to set the used value to a "reasonable" value based on the font of the element. The value has the same meaning as <number>. We recommend a used value for 'normal' between 1.0 to 1.2. The computed value is 'normal'.

This needs to explain what happens when font fallback occurs and multiple fonts are used. Implementations use font metrics to get the normal line-height (at least some use external leading or line gap), and these metrics can be different in different fonts. There may also be an interesting interaction with the definition of the content height, which separately considers font fallback.

More research is needed here as to what implementations do and what they should do, in particular:

  • what font metrics are used
  • how the metrics from multiple fonts are combined, and whether this has an interaction with the computation of the content box height or whether it occurs entirely separately

/cc @litherum

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