<?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>295964</bug_id>
          
          <creation_ts>2025-07-14 23:52:34 -0700</creation_ts>
          <short_desc>[css-anchor-position-1] scrollbars are not handled correctly</short_desc>
          <delta_ts>2025-09-18 02:06:43 -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 Local Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://github.com/web-platform-tests/wpt/pull/54863</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>
          
          <blocked>289743</blocked>
    
    <blocked>291856</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="fantasai">fantasai.bugs</reporter>
          <assigned_to name="Kiet Ho">kiet.ho</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>kiet.ho</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2130101</commentid>
    <comment_count>0</comment_count>
    <who name="fantasai">fantasai.bugs</who>
    <bug_when>2025-07-14 23:52:34 -0700</bug_when>
    <thetext>We&apos;re not doing the math for scrollbars correctly, which is causing us to fail https://wpt.live/css/css-anchor-position/anchor-position-borders-002.html

A variant of the test using position-area fails less badly, only failing in cases with scrollbars on the left side. (It passes in other writing modes.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2130102</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-07-14 23:52:44 -0700</bug_when>
    <thetext>&lt;rdar://problem/155852237&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2133695</commentid>
    <comment_count>2</comment_count>
    <who name="fantasai">fantasai.bugs</who>
    <bug_when>2025-07-31 12:39:45 -0700</bug_when>
    <thetext>Now that we&apos;ve integrated PositionedLayoutConstraints into anchor() handling, we&apos;re just failing due to the RTL scrollbars.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2133696</commentid>
    <comment_count>3</comment_count>
    <who name="fantasai">fantasai.bugs</who>
    <bug_when>2025-07-31 12:39:55 -0700</bug_when>
    <thetext>Now that we&apos;ve integrated PositionedLayoutConstraints into anchor() handling, we&apos;re just failing due to the RTL scrollbars.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2141077</commentid>
    <comment_count>4</comment_count>
    <who name="Kiet Ho">kiet.ho</who>
    <bug_when>2025-09-04 16:34:08 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/50330</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2143233</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2025-09-16 00:31:56 -0700</bug_when>
    <thetext>Committed 300018@main (2b1d3c03ed71): &lt;https://commits.webkit.org/300018@main&gt;

Reviewed commits have been landed. Closing PR #50330 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2143237</commentid>
    <comment_count>6</comment_count>
    <who name="Kiet Ho">kiet.ho</who>
    <bug_when>2025-09-16 00:46:52 -0700</bug_when>
    <thetext>Submitted web-platform-tests pull request: https://github.com/web-platform-tests/wpt/pull/54863</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2143895</commentid>
    <comment_count>7</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2025-09-18 02:06:43 -0700</bug_when>
    <thetext>Committed 297297.430@safari-7622-branch (88219ea809dd): &lt;https://commits.webkit.org/297297.430@safari-7622-branch&gt;

Reviewed commits have been landed. Closing PR #3654 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>