Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 82de10d6c30c90fb117fa9761eb0706eff0bcdac
      
https://github.com/WebKit/WebKit/commit/82de10d6c30c90fb117fa9761eb0706eff0bcdac
  Author: Alan Baradlay <[email protected]>
  Date:   2024-04-01 (Mon, 01 Apr 2024)

  Changed paths:
    A LayoutTests/fast/text/empty-trailing-content-trimming-expected.html
    A LayoutTests/fast/text/empty-trailing-content-trimming.html
    M Source/WebCore/layout/formattingContexts/inline/InlineContentBreaker.cpp

  Log Message:
  -----------
  WebKit's intrinsic inline-size calculations don't account for whitespace 
before empty child with nonzero margins
https://bugs.webkit.org/show_bug.cgi?id=183029
<rdar://problem/122586712>

Reviewed by Antti Koivisto.

While min/max-content widths are correctly computed, layout fails to ignore the 
empty
inline box generated by pseudo "after". It prevents us from being able to trim 
the
trailing whitespace making the inline box wrapped to the subsequent line.

* LayoutTests/fast/text/empty-trailing-content-trimming-expected.html: Added.
* LayoutTests/fast/text/empty-trailing-content-trimming.html: Added.
* Source/WebCore/layout/formattingContexts/inline/InlineContentBreaker.cpp:
(WebCore::Layout::isNonContentRunsOnly):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to