Skip to content
This repository was archived by the owner on Jun 9, 2022. It is now read-only.
This repository was archived by the owner on Jun 9, 2022. It is now read-only.

Explore line-box-contain as a way of enforcing standard line-height #2

@georgecrawford

Description

@georgecrawford

Problem

Lines containing portions of bold, superscript and subscript text will sometimes be rendered slightly taller than other lines. Presumably the browser does this to stop lines bleeding into each other.

The current solution involves adding p strong, p sup, p sub { font-size: 0.9rem } to user CSS. This works, but a more scalable solution would probably be better.

Support

Seems to be supported in Chrome > 16 and Safari > 5.1.

Documentation

CSS3 LineBox spec
Peter Beverloo's WebKit blog

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions