-
Notifications
You must be signed in to change notification settings - Fork 65
Open
Description
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
Labels
No labels