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

  Changed paths:
    A 
LayoutTests/imported/w3c/web-platform-tests/css/css-tables/caption-orthogonal-block-start-margin-expected.txt
    A 
LayoutTests/imported/w3c/web-platform-tests/css/css-tables/caption-orthogonal-block-start-margin.html
    M Source/WebCore/rendering/RenderTable.cpp

  Log Message:
  -----------
  [Table] Orthogonal caption ignores its margin against the table edge
https://bugs.webkit.org/show_bug.cgi?id=323900
<rdar://problem/187139068>

Reviewed by Antti Koivisto.

A caption sits inside its own margin box at the table's block-start edge, so 
the margins that
position it and the axes they apply to both belong to the table's writing mode. 
layoutCaption()
asked the caption for marginStart() and marginBefore() in the caption's own 
mode and then handed the
point to setLogicalLocation(), which transposes through the caption's mode as 
well, so a vertical-rl
table with a horizontal-tb caption placed the caption flush against the table's 
right edge and left
its 40px right margin as a gap on the other side. Build the location from the 
table's writing mode
and transpose it through the table's too.

Test: 
imported/w3c/web-platform-tests/css/css-tables/caption-orthogonal-block-start-margin.html

* 
LayoutTests/imported/w3c/web-platform-tests/css/css-tables/caption-orthogonal-block-start-margin-expected.txt:
 Added.
* 
LayoutTests/imported/w3c/web-platform-tests/css/css-tables/caption-orthogonal-block-start-margin.html:
 Added.
* Source/WebCore/rendering/RenderTable.cpp:
(WebCore::RenderTable::layoutCaption):

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



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

Reply via email to