Skip to content

--RS__baseLineHeight doesn’t play nicely with zoom on Safari and Firefox #166

@JayPanoz

Description

@JayPanoz

Unfortunately, the following is creating an issue in Safari + Firefox:

--RS__baseLineHeight: calc((1em + (2ex - 1ch) - ((1rem - 16px) * .1667)) * var(--RS__lineHeightCompensation));

This is fine in Chrome, the result is what you would expect.

As soon as the custom property is disabled or its value is modified to a simpler one e.g. 1.2, Safari and Firefox behave normally.

zoom 1 for reference:

Reference line-height

Zoom 0.7, the line-height is larger than it should be:

the line-height is way larger than it should be, with ample space between lines.

Zoom 1.7, the issue is becoming obvious as the line-height is smaller than it should be:

the line-height is way smaller than it should be, with lines almost overlapping one another

Investigating.

Metadata

Metadata

Assignees

Labels

2024 UpdateNew discussions, issues and requests triggered by the 2024 updateBugIndicates the issue is a bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions