<?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>41103</bug_id>
          
          <creation_ts>2010-06-23 14:44:01 -0700</creation_ts>
          <short_desc>Consider matching either Firefox or IE better in the characters that allow a linewrap</short_desc>
          <delta_ts>2025-08-21 18:00:51 -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>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></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>
          <dependson>20677</dependson>
    
    <dependson>27074</dependson>
    
    <dependson>27195</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tab Atkins">tabatkins</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>ap</cc>
    
    <cc>ayg</cc>
    
    <cc>darin</cc>
    
    <cc>eric</cc>
    
    <cc>mateusz.karpow</cc>
    
    <cc>phnixwxz</cc>
    
    <cc>wangxianzhu</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>242095</commentid>
    <comment_count>0</comment_count>
    <who name="Tab Atkins">tabatkins</who>
    <bug_when>2010-06-23 14:44:01 -0700</bug_when>
    <thetext>Firefox 3.6 (and possibly earlier) treats the forward slash &quot;/&quot; as creating a linebreak opportunity for the linewrap algorithm.  IE8 (and possibly earlier) treats the open square bracket &quot;[&quot; as creating a linebreak opportunity for the linewrap algorithm.  Webkit does neither.  This causes the PCWorld page at http://www.pcworld.com/article/168658/seven_reasons_microsofts_profits_are_tanking.html to break, as a comment at the bottom of the page contains a very long line with no spaces, but several forward slashes and square brackets.

We should match either Firefox or IE here, or perhaps both, in their linebreak-opportunity seeking.

Minimal test case:
data:text/html,%3C!DOCTYPE%20html%3E%3Cdiv%20style%3D%22width%3A%20800px%3B%20margin%3A%200%20auto%3B%22%3E%3Cdiv%20style%3D%22float%3A%20left%3B%20width%3A%20600px%3B%22%3Efoooooooooooooooooooooo%2Fooooooooooooooooooooooooooooo%2Foooooooooooooooooooooooooooo%2Fooooooooooooooooooooooooooo%2Fooooooooooooooooooooooo%3C%2Fdiv%3E%3Cdiv%20style%3D%22float%3A%20right%3B%20width%3A%20200px%3B%20height%3A%20600px%3B%20background%3A%20gray%3B%22%3E%3C%2Fdiv%3E%3C%2Fdiv%3E

Expected Result: The long line breaks before the second and fourth forward slashes, and doesn&apos;t stretch the left float.  (This works as expected in Firefox.  Replace the / with [ for it to work as expected in IE.)
Actual Result: The long line doesn&apos;t break at all, stretching the left float underneath the right float and off the side of the monitor for most people.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>242123</commentid>
    <comment_count>1</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2010-06-23 15:30:34 -0700</bug_when>
    <thetext>This is covered by Unicode TR14:

http://unicode.org/reports/tr14/

I don&apos;t think any browser fully implements that (why not?).  It appears to say that breaks are prohibited before class SY, which contains U+002F SOLIDUS (LB13), and prohibited after SY if it&apos;s followed by a digit (LB25), but otherwise permitted (LB31).  Breaks between alphanumerics (AL and NU) and opening punctuation like [ (OP) are prohibited by LB30, contradicting IE&apos;s behavior.

It would be cool if the full algorithm were implemented.  It contains a lot of useful advice, like &quot;don&apos;t break before &apos;!&apos;, even after a space&quot; (common in French).  It doesn&apos;t seem complicated at all to implement -- does it have major problems?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>296864</commentid>
    <comment_count>2</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-10-20 10:39:44 -0700</bug_when>
    <thetext>bug 25638 may also be related.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>296865</commentid>
    <comment_count>3</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-10-20 10:40:45 -0700</bug_when>
    <thetext>Simple reduction:
&lt;div style=&quot;width: 10px&quot;&gt;
a/a/a/a/a/a/a/a/a/a/a/a/a/a/a
&lt;/div&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>296866</commentid>
    <comment_count>4</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-10-20 10:41:13 -0700</bug_when>
    <thetext>Several dups in Chromium:
http://code.google.com/p/chromium/issues/detail?id=57052</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2134020</commentid>
    <comment_count>5</comment_count>
    <who name="">mateusz.karpow</who>
    <bug_when>2025-08-02 04:23:48 -0700</bug_when>
    <thetext>Hi. Another report here: https://issues.chromium.org/issues/40073909. Just to note this affects us: https://github.com/guardian/dotcom-rendering/pull/14331, so backing Aryeh Gregor’s comment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2134048</commentid>
    <comment_count>6</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2025-08-02 13:45:01 -0700</bug_when>
    <thetext>(In reply to mateusz.karpow from comment #5)
&gt; Hi. Another report here: https://issues.chromium.org/issues/40073909. Just
&gt; to note this affects us:
&gt; https://github.com/guardian/dotcom-rendering/pull/14331, so backing Aryeh
&gt; Gregor’s comment.

Has `guardian.com` workaround the issue on live website? Since &apos;https://www.theguardian.com/music/classical-music-and-opera#live-reviews&apos; seems to look same on Chrome and Safari to me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2134081</commentid>
    <comment_count>7</comment_count>
    <who name="">mateusz.karpow</who>
    <bug_when>2025-08-03 02:08:51 -0700</bug_when>
    <thetext>(In reply to Ahmad Saleem from comment #6)
&gt; Has `guardian.com` workaround the issue on live website? Since
&gt; &apos;https://www.theguardian.com/music/classical-music-and-opera#live-reviews&apos;
&gt; seems to look same on Chrome and Safari to me.

No workaround yet, linked PR may become one. Chrome and Safari both look incorrect (closest Chromium bug I could found is linked above). Only Firefox seems to be respecting SY: Symbols Allowing Break After rule.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2138141</commentid>
    <comment_count>8</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-08-21 18:00:51 -0700</bug_when>
    <thetext>&lt;rdar://problem/158904757&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>