<?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>256697</bug_id>
          
          <creation_ts>2023-05-12 04:40:31 -0700</creation_ts>
          <short_desc>textareas with overflow hidden renders too many columns</short_desc>
          <delta_ts>2023-05-15 18:42:46 -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>Forms</component>
          <version>Safari 16</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <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="Luke Warlow">lwarlow</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>cdumez</cc>
    
    <cc>karlcow</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>wenson_hsieh</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1954948</commentid>
    <comment_count>0</comment_count>
    <who name="Luke Warlow">lwarlow</who>
    <bug_when>2023-05-12 04:40:31 -0700</bug_when>
    <thetext>Does this work in other browsers?

No - I can reproduce the problem in another browser

This behaves correctly in Firefox and incorrectly in Safari and Chrome. See attached images.

Steps to reproduce the problem:
1.Load data:text/html,&lt;textarea cols=&quot;3&quot; rows=&quot;3&quot;&gt;XXXXXXXXXXXXX&lt;/textarea&gt;&lt;style&gt;textarea { overflow: hidden; }&lt;/style&gt; in Safari.
2.You will see that 4 columns (+ almost a 5th one with just whitespace) are rendered

Problem Description:
This should render just 3 columns but instead overflow hidden (and clip) only hide the scrollbar but still reserves its space.

This behaviour can also be seen in Chrome but NOT Firefox.

I came across it as I believe this is the part of the cause of one of the failing tests as part of the scrollbar-width implementation. The ref test (https://wpt.live/css/css-scrollbars/textarea-scrollbar-width-none.html) relies on this behaviour being correct and it isn&apos;t.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1955122</commentid>
    <comment_count>1</comment_count>
    <who name="Luke Warlow">lwarlow</who>
    <bug_when>2023-05-12 16:21:38 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/13832</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1955137</commentid>
    <comment_count>2</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-05-12 17:04:15 -0700</bug_when>
    <thetext>Isn&apos;t it same as bug 253310?

If Yes, let me know I can mark other duplicate of this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1955216</commentid>
    <comment_count>3</comment_count>
    <who name="Luke Warlow">lwarlow</who>
    <bug_when>2023-05-13 01:34:34 -0700</bug_when>
    <thetext>They&apos;re related but not the same. This is about the space reserved for a scrollbar in situations where it shouldn&apos;t be. The other one is about the resize handle itself being hidden when scrollbars are hidden (using legacy CSS or scrollbar-width)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1955375</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-05-15 01:43:04 -0700</bug_when>
    <thetext>&lt;rdar://problem/109343502&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1955561</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-05-15 18:42:44 -0700</bug_when>
    <thetext>Committed 264095@main (9ae5f9cb52ff): &lt;https://commits.webkit.org/264095@main&gt;

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

    </bug>

</bugzilla>