<?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>20666</bug_id>
          
          <creation_ts>2008-09-05 08:38:18 -0700</creation_ts>
          <short_desc>WebKit shows horizontal scrollbar when other browsers do not in div</short_desc>
          <delta_ts>2022-12-30 18:17:14 -0800</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>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexei Svitkine">myrd</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>bfulgham</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>90271</commentid>
    <comment_count>0</comment_count>
    <who name="Alexei Svitkine">myrd</who>
    <bug_when>2008-09-05 08:38:18 -0700</bug_when>
    <thetext>Take a look at the attached text case.

Firefox, Opera and IE do not show a horizontal scroll bar in the div, but Webkit (latest nightly and Safari 3.1) does.

The issue is that the URL:

http://hl.udogs.net/files/Uploads/%20User%20Uploads/Zaknafein%20Uploads/FLHscreenshotGameFilms/king.pdf

Does not wrap, and remains on one line, causing the need for the scroll bar. Yet, all other text in the div wraps to the viewable width of the div.

This is inconsistent. If a horizontal scroll bar is displayed, then it does not make sense for the other text to wrap to the viewable width (rather than the scrollable width).

However, the correct behavior, it seems, is to wrap the URL along with the other text. Firefox and Opera wrap it on the / character, while IE wraps it at the % character (which seems worse than /).

Webkit should behave similarly to FF and Opera.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90272</commentid>
    <comment_count>1</comment_count>
      <attachid>23194</attachid>
    <who name="Alexei Svitkine">myrd</who>
    <bug_when>2008-09-05 08:49:57 -0700</bug_when>
    <thetext>Created attachment 23194
test case</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1922315</commentid>
    <comment_count>2</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-12-30 15:39:14 -0800</bug_when>
    <thetext>I am able to reproduce this issue in Safari 16.2 &amp; STP160 where it show horizontal scrollbar because &quot;URL&quot; and some text is not wrapped while in case of Firefox Nightly 110, it does not show horizontal scrollbar.

NOTE - Chrome Canary 111, Safari 16.2 &amp; STP160 all show scrollbar.

Just updating the status to &quot;New&quot; and tagging few others to confirms whether it is something need to be fixed or Firefox need to change behavior. Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1922343</commentid>
    <comment_count>3</comment_count>
    <who name="alan">zalan</who>
    <bug_when>2022-12-30 18:17:14 -0800</bug_when>
    <thetext>It looks like Gecko sees &apos;\&apos; as a soft wrap opportunity.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>23194</attachid>
            <date>2008-09-05 08:49:57 -0700</date>
            <delta_ts>2008-09-05 08:49:57 -0700</delta_ts>
            <desc>test case</desc>
            <filename>a.html</filename>
            <type>text/html</type>
            <size>924</size>
            <attacher name="Alexei Svitkine">myrd</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDQuMDEgVHJhbnNpdGlvbmFs
Ly9FTiI+CjxodG1sPgo8aGVhZD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