Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 7b752c5f565ce09eaa02f981ba7fd762192b3f3e
      
https://github.com/WebKit/WebKit/commit/7b752c5f565ce09eaa02f981ba7fd762192b3f3e
  Author: Alan Baradlay <[email protected]>
  Date:   2026-05-22 (Fri, 22 May 2026)

  Changed paths:
    A LayoutTests/fast/flexbox/preferred-width-empty-inline-block-expected.txt
    A LayoutTests/fast/flexbox/preferred-width-empty-inline-block.html
    A LayoutTests/fast/inline/custom-select-shrink-expected.html
    A LayoutTests/fast/inline/custom-select-shrink.html
    M Source/WebCore/layout/integration/LayoutIntegrationCoverage.cpp

  Log Message:
  -----------
  [IFC] English text getting cut off in RTL with some styles
https://bugs.webkit.org/show_bug.cgi?id=315279

Reviewed by Antti Koivisto.

The change allows empty (childless) atomic inline-level boxes through
canUseForPreferredWidthComputation so the IFC computes intrinsic width
consistently with how it does actual layout (it prevents unexpected line 
breaking and content truncation).
Note that this was initially landed at 312799@main and got reverted at 
313608@main due
to select sizing (see FIXME).

Tests: fast/flexbox/preferred-width-empty-inline-block.html
       fast/inline/custom-select-shrink.html

* LayoutTests/fast/flexbox/preferred-width-empty-inline-block-expected.txt: 
Added.
* LayoutTests/fast/flexbox/preferred-width-empty-inline-block.html: Added.
* LayoutTests/fast/inline/custom-select-shrink-expected.html: Added.
* LayoutTests/fast/inline/custom-select-shrink.html: Added.
* Source/WebCore/layout/integration/LayoutIntegrationCoverage.cpp:
(WebCore::LayoutIntegration::canUseForPreferredWidthComputation):

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



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

Reply via email to