Skip to content

[css21][css-inline] height of inline box with line-height not normal #1797

@frivoal

Description

@frivoal

This is part of the #1796 series. Read that issue for context

Test source
Ref source
Live test
Live ref

As demonstrated by this test, all browsers (Edge, FF, Safari, Chrome) agree that when you set the line-height property to a value other than normal, you get exactly the height you asked for, even when there are differently sized fallback fonts involved. In other words, nobody does the black behavior in this diagram.

Whether browsers do the red behavior, the blue one, or something else depends on how the baseline is positioned, and that will be dealt with in #1801

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions