<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>203449</bug_id>
          
          <creation_ts>2019-10-25 21:19:41 -0700</creation_ts>
          <short_desc>css/css-position/position-relative-table* tests fail</short_desc>
          <delta_ts>2026-05-08 02:54:17 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Layout and Rendering</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=203446</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=240961</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Simon Fraser (smfr)">simon.fraser</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>bfulgham</cc>
    
    <cc>csaavedra</cc>
    
    <cc>ehutchison</cc>
    
    <cc>eric</cc>
    
    <cc>karlcow</cc>
    
    <cc>mrobinson</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bot-watchers-bugzilla</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1584172</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2019-10-25 21:19:41 -0700</bug_when>
    <thetext>imported/w3c/web-platform-tests/css/css-position/position-relative-table-tbody-left-absolute-child.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-position/position-relative-table-tbody-left.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-position/position-relative-table-tbody-top-absolute-child.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-position/position-relative-table-tbody-top.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-position/position-relative-table-tfoot-left-absolute-child.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-position/position-relative-table-tfoot-left.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-position/position-relative-table-tfoot-top-absolute-child.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-position/position-relative-table-tfoot-top.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-position/position-relative-table-thead-left-absolute-child.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-position/position-relative-table-thead-left.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-position/position-relative-table-thead-top-absolute-child.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-position/position-relative-table-thead-top.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-position/position-relative-table-tr-left-absolute-child.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-position/position-relative-table-tr-left.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-position/position-relative-table-tr-top-absolute-child.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-position/position-relative-table-tr-top.html [ ImageOnlyFailure ]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1783442</commentid>
    <comment_count>1</comment_count>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2021-08-11 04:13:07 -0700</bug_when>
    <thetext>Tests newly failing with the latest import:

webkit.org/b/203449 imported/w3c/web-platform-tests/css/css-position/position-relative-001.html [ ImageOnlyFailure ]
webkit.org/b/203449 imported/w3c/web-platform-tests/css/css-position/position-relative-002.html [ ImageOnlyFailure ]
webkit.org/b/203449 imported/w3c/web-platform-tests/css/css-position/position-relative-011.html [ ImageOnlyFailure ]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1785145</commentid>
    <comment_count>2</comment_count>
    <who name="Eric Hutchison">ehutchison</who>
    <bug_when>2021-08-18 09:50:29 -0700</bug_when>
    <thetext>imported/w3c/web-platform-tests/css/css-position/position-relative-003.html 
imported/w3c/web-platform-tests/css/css-position/position-relative-004.html

are also now failing (BigSur, Monterey wk1).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1785147</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-08-18 09:51:02 -0700</bug_when>
    <thetext>&lt;rdar://problem/82081662&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1785150</commentid>
    <comment_count>4</comment_count>
    <who name="Eric Hutchison">ehutchison</who>
    <bug_when>2021-08-18 09:58:56 -0700</bug_when>
    <thetext>Updated test expectations at http://trac.webkit.org/changeset/281194/webkit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1785180</commentid>
    <comment_count>5</comment_count>
    <who name="Eric Hutchison">ehutchison</who>
    <bug_when>2021-08-18 11:34:28 -0700</bug_when>
    <thetext>Reproduced test results locally using run-webkit-tests -1 -f --force --iterations 1000 --exit-after-n-failures 1 --clobber-old-results imported/w3c/web-platform-tests/css/css-position/position-relative-004.html on r281186.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2167971</commentid>
    <comment_count>6</comment_count>
    <who name="Claudio Saavedra">csaavedra</who>
    <bug_when>2025-12-23 10:19:35 -0800</bug_when>
    <thetext>imported/w3c/web-platform-tests/css/css-position/position-relative-002.html passing for a while in all platforms.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2208862</commentid>
    <comment_count>7</comment_count>
    <who name="Eric Meyer">eric</who>
    <bug_when>2026-05-07 22:02:57 -0700</bug_when>
    <thetext>The `tr` and `td`-related tests are passing as of TP243.  The rest of the list above are not.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2208926</commentid>
    <comment_count>8</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2026-05-08 02:39:16 -0700</bug_when>
    <thetext>Thanks Eric!
The tests still failing are 


  imported/w3c/web-platform-tests/css/css-position/position-relative-table-tbody-left-absolute-child.html [ ImageOnlyFailure ]
  imported/w3c/web-platform-tests/css/css-position/position-relative-table-tbody-left.html [ ImageOnlyFailure ]
  imported/w3c/web-platform-tests/css/css-position/position-relative-table-tbody-top-absolute-child.html [ ImageOnlyFailure ]
  imported/w3c/web-platform-tests/css/css-position/position-relative-table-tbody-top.html [ ImageOnlyFailure ]
  imported/w3c/web-platform-tests/css/css-position/position-relative-table-tfoot-left-absolute-child.html [ ImageOnlyFailure ]
  imported/w3c/web-platform-tests/css/css-position/position-relative-table-tfoot-left.html [ ImageOnlyFailure ]
  imported/w3c/web-platform-tests/css/css-position/position-relative-table-tfoot-top-absolute-child.html [ ImageOnlyFailure ]
  imported/w3c/web-platform-tests/css/css-position/position-relative-table-tfoot-top.html [ ImageOnlyFailure ]
  imported/w3c/web-platform-tests/css/css-position/position-relative-table-thead-left-absolute-child.html [ ImageOnlyFailure ]
  imported/w3c/web-platform-tests/css/css-position/position-relative-table-thead-left.html [ ImageOnlyFailure ]
  imported/w3c/web-platform-tests/css/css-position/position-relative-table-thead-top-absolute-child.html [ ImageOnlyFailure ]
  imported/w3c/web-platform-tests/css/css-position/position-relative-table-thead-top.html [ ImageOnlyFailure ]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2208930</commentid>
    <comment_count>9</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2026-05-08 02:54:17 -0700</bug_when>
    <thetext>Bug 240961 only fixed rows, not sections.

Source/WebCore/style/StyleAdjuster.cpp:488-493:

https://searchfox.org/wubkat/rev/68f2a0d2a5f6fc91cbfb573ccf94fceaaa2f162c/Source/WebCore/style/StyleAdjuster.cpp#488-493
```cpp
// We do not honor position:relative or position:sticky on table row groups. Table rows are
// allowed to be position:relative (they extend RenderBlock and can be proper containing blocks).
if ((style.display() == DisplayType::TableHeaderGroup || style.display() == DisplayType::TableRowGroup
    || style.display() == DisplayType::TableFooterGroup)
    &amp;&amp; style.position() == PositionType::Relative)
    style.setPosition(PositionType::Static);
```
The position: relative on &lt;tbody&gt;/&lt;thead&gt;/&lt;tfoot&gt; is silently rewritten to static before layout ever sees it, so the green .relative box paints at (0,0) and the red .indicator shows through


Bug 240961 (commit 27d1a32af9b1, Apr 2026) fixed the &lt;tr&gt; variants by promoting RenderTableRow from RenderBox to RenderBlock, adding isPositioned() to RenderTableRow::requiresLayer(), and making cells row-relative. The StyleAdjuster guard was narrowed to row groups only as part of that patch.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>