Skip to content

Font-size/zoom issues on iPadOS (desktop-class) + Firefox #172

@JayPanoz

Description

@JayPanoz

So this was supposed to be resolved through #155 but it looks like things have broken in nasty ways ever since.

We have two major issues with the new implementation of font-size (relying on zoom):

  • -webkit-text-size-adjust: none seems to not disable iPadOS desktop-class interventions reliably any longer;
  • Firefox implementation seems to really struggle inheriting zoom when there is a wrapping div/section, and has some nasty bugs on top of it.

From testing and debugging from the problematic files on Readium Playground.

Moby Dick:

  • Firefox → zoom: inherit on body > section is needed to make it work, as well as disabling the font-family in… a Media Query (WTH)
  • Firefox → when removing font-family on body and from the Media Query for p that works as expected without inheriting
  • Safari iPadOS in desktop mode requires disabling the font-family in the Media Query as well

Les diaboliques:

  • Firefox: zoom: inherit on body > div seems to be fixing at least most of the issues
  • Firefox → when removing font-family on body that works as expected without inheriting
  • Safari iPadOS → i, span, etc. must have zoom: value set directly. Disabling the publisher font-family doesn’t seem to have any positive effect.

It makes things quite possibly impossible to handle from ReadiumCSS, since adding zoom:inherit is basically like applying it twice in the cascade for other browsers. Same when setting it on elements.

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