Skip to content

Allow for deterministic control over "font floors" and Text Autosizing thresholds #1051

@sadym-chromium

Description

@sadym-chromium

Addressing part of #772.

The Problem: Non-Deterministic Rendering due to Hidden Font Constraints

Browser engines implement internal rendering heuristics that can override CSS font-size declarations. These mechanisms are implementation-defined with specification based on minimum readable text size, creating significant cross-browser and cross-platform inconsistency:

  • Implicit "Font Floors": Engines enforce a minimum size below which text will not shrink. These defaults vary by host OS, locale, and language settings, making visual tests non-reproducible across different CI environments.
  • Environment-Specific Scaling: Mechanisms like Blink's TextAutosizer use heuristics that depend on the viewport context. Without a way to synchronize the "minimum readable" threshold, identical code can produce different layouts (line-wrapping, container heights) on different machines.

Proposal: Allow for overriding minimum readable text size

We propose adding a new command browsingContext.setMinimumReadableTextSize.This command will allow clients to override environment-specific defaults of minimum readable text size.

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