Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 473b6eb379d9bd055373cc2fa7a5f5255817b935
      
https://github.com/WebKit/WebKit/commit/473b6eb379d9bd055373cc2fa7a5f5255817b935
  Author: Vitor Roriz <[email protected]>
  Date:   2025-12-05 (Fri, 05 Dec 2025)

  Changed paths:
    A LayoutTests/fast/text/line-height-em-text-zoom-expected.html
    A LayoutTests/fast/text/line-height-em-text-zoom.html
    M Source/WebCore/style/values/inline/StyleLineHeight.cpp

  Log Message:
  -----------
  [CSS Zoom] line-height should scale font-relative units with text-zoom
https://bugs.webkit.org/show_bug.cgi?id=303584
rdar://165073337

Reviewed by Sammy Gill.

As in https://commits.webkit.org/301757@main for the percentage case,
text zoom should scale the line-height when the property is set with
a font-relative unit when evaluationTimeZoomEnabled.

This is because, when evaluationTimeZoomEnabled is true,
computedSizeForRangeZoomOption returns the unzoomed font size.

Test: fast/text/line-height-em-text-zoom.html

* LayoutTests/fast/text/line-height-em-text-zoom-expected.html: Added.
* LayoutTests/fast/text/line-height-em-text-zoom.html: Added.
* Source/WebCore/style/values/inline/StyleLineHeight.cpp:
(WebCore::Style::CSSValueConversion<LineHeight>::operator):

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



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

Reply via email to