Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: a632a40c5ea820f22d7a0d4db14ea94af3fa05ad
      
https://github.com/WebKit/WebKit/commit/a632a40c5ea820f22d7a0d4db14ea94af3fa05ad
  Author: Alan Baradlay <[email protected]>
  Date:   2026-03-09 (Mon, 09 Mar 2026)

  Changed paths:
    A 
LayoutTests/fast/inline/ideographic-baseline-with-block-inside-expected.html
    A LayoutTests/fast/inline/ideographic-baseline-with-block-inside.html
    M 
LayoutTests/imported/w3c/web-platform-tests/css/css-inline/baseline-source/baseline-source-first-textarea-002.tentative-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/css/css-inline/baseline-source/baseline-source-first-textarea-003.tentative-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/css/css-inline/baseline-source/baseline-source-last-textarea-002.tentative-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/css/css-inline/baseline-source/baseline-source-last-textarea-003.tentative-expected.txt
    M 
LayoutTests/platform/mac/fast/css/vertical-text-overflow-ellipsis-text-align-center-expected.txt
    M Source/WebCore/layout/integration/LayoutIntegrationBoxGeometryUpdater.cpp

  Log Message:
  -----------
  Layout of inline-block vertical-rl differs from other browsers
https://bugs.webkit.org/show_bug.cgi?id=309408
<rdar://problem/171952790>

Reviewed by Antti Koivisto.

Margin box height is used as the synthesized baseline when the atomic inline box
does not have a content-derived baseline

 <div>
  text
  <div style="display: inline-block"><div></div></div>
 </div>

vs.

 <div>
  text
  <div style="display: inline-block">has content-derived baseline</div>
 </div>

In both cases, we look inside the inline-block to check whether there is content
that we can align the text with. While we find eligible boxes (text) in the 
second case,
the first case returns empty, and we fall back to the margin box of the 
inline-block.

However the final, synthesized baseline in vertical mode is the ideographic 
central baseline.

* LayoutTests/fast/inline/ideographic-baseline-with-block-inside-expected.html: 
Added.
* LayoutTests/fast/inline/ideographic-baseline-with-block-inside.html: Added.
* 
LayoutTests/imported/w3c/web-platform-tests/css/css-inline/baseline-source/baseline-source-first-textarea-002.tentative-expected.txt:
* 
LayoutTests/imported/w3c/web-platform-tests/css/css-inline/baseline-source/baseline-source-first-textarea-003.tentative-expected.txt:
* 
LayoutTests/imported/w3c/web-platform-tests/css/css-inline/baseline-source/baseline-source-last-textarea-002.tentative-expected.txt:
* 
LayoutTests/imported/w3c/web-platform-tests/css/css-inline/baseline-source/baseline-source-last-textarea-003.tentative-expected.txt:
* 
LayoutTests/platform/mac/fast/css/vertical-text-overflow-ellipsis-text-align-center-expected.txt:
* Source/WebCore/layout/integration/LayoutIntegrationBoxGeometryUpdater.cpp:
(WebCore::LayoutIntegration::setIntegrationBaseline):

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



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

Reply via email to