Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 006da4a5c5bdb70f48561d57b8574763ad72076e
      
https://github.com/WebKit/WebKit/commit/006da4a5c5bdb70f48561d57b8574763ad72076e
  Author: Brent Fulgham <[email protected]>
  Date:   2026-08-03 (Mon, 03 Aug 2026)

  Changed paths:
    A LayoutTests/fast/css/zoom-page-max-width-text-wrap-expected.txt
    A LayoutTests/fast/css/zoom-page-max-width-text-wrap.html
    M 
LayoutTests/platform/glib/fast/backgrounds/background-position-parsing-expected.txt
    M LayoutTests/platform/glib/svg/stroke/nan-stroke-width-crash-expected.txt
    M 
LayoutTests/platform/ios/fast/backgrounds/background-position-parsing-expected.txt
    M LayoutTests/platform/ios/svg/stroke/nan-stroke-width-crash-expected.txt
    M 
LayoutTests/platform/mac/fast/backgrounds/background-position-parsing-expected.txt
    M LayoutTests/platform/mac/svg/stroke/nan-stroke-width-crash-expected.txt
    M Source/WebCore/style/StyleFontSizeFunctions.cpp

  Log Message:
  -----------
  moneycontrol.com: Overlapping content at zoom level 50%
https://bugs.webkit.org/show_bug.cgi?id=319939
<rdar://66569768>

Reviewed by Vitor Roriz.

Under native page zoom-out, the smart minimum (minLogicalFontSize) was applied 
as a
device-space floor, so small text could not shrink below ~9px while a fixed-px 
max-width
cap scaled down normally. The oversized text advance then overflowed the 
shrunken cap and
wrapped.

This patch resolves this by scaling the smart minimum font size by the zoom 
factor when
zooming out so that text shrinks with the page. Behavior when non-zoomed or 
zoomed-in
is unchanged.

Test: fast/css/zoom-page-max-width-text-wrap.html

* LayoutTests/fast/css/zoom-page-max-width-text-wrap-expected.txt: Added.
* LayoutTests/fast/css/zoom-page-max-width-text-wrap.html: Added.
* 
LayoutTests/platform/glib/fast/backgrounds/background-position-parsing-expected.txt:
 Rebaselined.
* LayoutTests/platform/glib/svg/stroke/nan-stroke-width-crash-expected.txt: 
Rebaselined.
* 
LayoutTests/platform/ios/fast/backgrounds/background-position-parsing-expected.txt:
 Rebaselined.
* LayoutTests/platform/ios/svg/stroke/nan-stroke-width-crash-expected.txt: 
Rebaselined.
* 
LayoutTests/platform/mac/fast/backgrounds/background-position-parsing-expected.txt:
 Rebaselined.
* LayoutTests/platform/mac/svg/stroke/nan-stroke-width-crash-expected.txt: 
Rebaselined.
* Source/WebCore/style/StyleFontSizeFunctions.cpp:
(WebCore::Style::computedFontSizeFromSpecifiedSize):

Canonical link: https://commits.webkit.org/318509@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to