From daddf7ab8efedbdedba4d8c14613108816de80fa Mon Sep 17 00:00:00 2001 From: Kostia Sokolovskyi Date: Tue, 2 Dec 2025 19:23:19 +0100 Subject: [PATCH] [web] Fix onTextScaleFactorChanged not getting called. (#178862) Fixes https://github.com/flutter/flutter/issues/178856 Fixes https://github.com/flutter/flutter/issues/178271 Fixes https://github.com/flutter/flutter/issues/178238 ### Description - Fixes an issue in `lineHeightScaleFactorOverride` calculation, causing it to have abnormal values. - Integrates text scale factor update into recently added `_addTypographySettingsObserver`. The `ResizeObserver` on the typography probe element is getting notified each time the font size changes, because it leads to the element's size change. - Removes `DomMutationObserver` previously used for font size observations. - Adds/Updates tests to verify the fixes. | BEFORE | AFTER | | - | - | |