Re: [csswg-drafts] [css-fonts-5] Text Fitting: Default scaling limit (#12886)

I have an idea to address this accessibility issue:

* Browsers can distinguish between the page zoom factor at the initial load and changes to the page zoom factor while viewing the page.

* When the layout is performed with the initial page zoom factor, we record the physical width of the container where this feature is enabled.

* When the page zoom factor changes and triggers a re-layout, if the new physical width of the container remains the same as the recorded value, we apply text scaling by treating the container's physical width as if it were scaled by `<current page zoom factor> / <initial page zoom factor>`.

* A downside is that reloading the page after changing the page zoom factor will result in a different rendering outcome. This is because the current zoom factor becomes the new "initial" zoom factor, and the previously recorded container width is lost.

I plan to experiment with this approach to see if it is feasible.

-- 
GitHub Notification of comment by tkent-google
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12886#issuecomment-3556253205 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 20 November 2025 07:05:40 UTC