Skip to content

Safeguards’ viewport units are impacted by zoom factor #214

@JayPanoz

Description

@JayPanoz

Originally handled in #206 but the issue is too complex to resolve it at the time we manage --RS__defaultLineLength.

List of impacted styles:

As noted in the previous issue, we have two challenging problems:

  1. browsers don’t do behave the same, which means using a dirty CSS trick to target Safari/Webkit and not apply the compensation;
  2. In case a percentage value is passed – we need to do that on iOS for instance, as we switch from zoom to text-size-adjust, we cannot divide 95vh by this percentage, the divider has to be unitless… Converting through CSS functions seem difficult, if not impossible for some unknown reason at the moment

In practice, we do not have a solution for problem number 2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions