<?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>314898</bug_id>
          
          <creation_ts>2026-05-15 09:32:31 -0700</creation_ts>
          <short_desc>shrink-to-fit boxes do not update their width when they gain or lose a scrollbar</short_desc>
          <delta_ts>2026-05-21 10:36:25 -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>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://github.com/web-platform-tests/wpt/pull/60077</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="Sammy Gill">sgill26</reporter>
          <assigned_to name="Sammy Gill">sgill26</assigned_to>
          <cc>bfulgham</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>2211203</commentid>
    <comment_count>0</comment_count>
    <who name="Sammy Gill">sgill26</who>
    <bug_when>2026-05-15 09:32:31 -0700</bug_when>
    <thetext>In the attached testcase we should see a 20px wide rectangle but the scrollbar ends up shrinking the space for that content.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2211204</commentid>
    <comment_count>1</comment_count>
      <attachid>479679</attachid>
    <who name="Sammy Gill">sgill26</who>
    <bug_when>2026-05-15 09:32:54 -0700</bug_when>
    <thetext>Created attachment 479679
Testcase</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2211205</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2026-05-15 09:33:56 -0700</bug_when>
    <thetext>&lt;rdar://problem/177172896&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2211213</commentid>
    <comment_count>3</comment_count>
    <who name="Sammy Gill">sgill26</who>
    <bug_when>2026-05-15 10:05:57 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/64814</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2211328</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2026-05-15 17:55:16 -0700</bug_when>
    <thetext>*** Bug 314897 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2211618</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-05-17 21:51:05 -0700</bug_when>
    <thetext>Committed 313390@main (999b6ea5d83a): &lt;https://commits.webkit.org/313390@main&gt;

Reviewed commits have been landed. Closing PR #64814 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2213010</commentid>
    <comment_count>6</comment_count>
    <who name="Sammy Gill">sgill26</who>
    <bug_when>2026-05-21 10:36:25 -0700</bug_when>
    <thetext>Submitted web-platform-tests pull request: https://github.com/web-platform-tests/wpt/pull/60077</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>479679</attachid>
            <date>2026-05-15 09:32:54 -0700</date>
            <delta_ts>2026-05-15 09:32:54 -0700</delta_ts>
            <desc>Testcase</desc>
            <filename>test.html</filename>
            <type>text/html</type>
            <size>219</size>
            <attacher name="Sammy Gill">sgill26</attacher>
            
              <data encoding="base64">PHA+R3JlZW4gcmVjdGFuZ2xlIHNob3VsZCBiZSAyMHB4IHdpZGUuPC9wPgo8ZGl2IHN0eWxlPSJk
aXNwbGF5OiBpbmxpbmUtYmxvY2s7IGhlaWdodDogNTBweDsgb3ZlcmZsb3c6IGF1dG87IG91dGxp
bmU6IDFweCBzb2xpZCBibGFjazsiPgogIDxkaXYgc3R5bGU9IndpZHRoOiAyMHB4OyBoZWlnaHQ6
IDEwMHB4OyBiYWNrZ3JvdW5kLWNvbG9yOiBncmVlbjsiPjwvZGl2Pgo8L2Rpdj4K
</data>

          </attachment>
      

    </bug>

</bugzilla>