<?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>195345</bug_id>
          
          <creation_ts>2019-03-05 16:09:12 -0800</creation_ts>
          <short_desc>Implement &quot;overflow-wrap: anywhere&quot;</short_desc>
          <delta_ts>2024-07-01 18:32:16 -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>Text</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>227695</dup_id>
          <see_also>https://bugs.chromium.org/p/chromium/issues/detail?id=905315</see_also>
    
    <see_also>https://bugzilla.mozilla.org/show_bug.cgi?id=1505786</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=227695</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=229347</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>83934</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Javier Fernandez">jfernandez</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>chatoo2412</cc>
    
    <cc>cyb.ai.815</cc>
    
    <cc>dregad</cc>
    
    <cc>fantasai.bugs</cc>
    
    <cc>florian</cc>
    
    <cc>jfernandez</cc>
    
    <cc>karlcow</cc>
    
    <cc>mmaxfield</cc>
    
    <cc>nanto</cc>
    
    <cc>sam</cc>
    
    <cc>timdream</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1512893</commentid>
    <comment_count>0</comment_count>
    <who name="Javier Fernandez">jfernandez</who>
    <bug_when>2019-03-05 16:09:12 -0800</bug_when>
    <thetext>The CSS WG has resolved [1] add a deprecated note to prevent the usage of &apos;overflow-wrap: break-word&apos; in favor of &apos;overflow-wrap: anywhere&apos;.

The new value is described as follows:

https://www.w3.org/TR/css-text-3/#valdef-overflow-wrap-anywhere


[1] https://github.com/w3c/csswg-drafts/issues/2390</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1522443</commentid>
    <comment_count>1</comment_count>
    <who name="Javier Fernandez">jfernandez</who>
    <bug_when>2019-03-29 07:45:11 -0700</bug_when>
    <thetext>Firefox already shipped this feature
  - https://bugzilla.mozilla.org/show_bug.cgi?id=1505786

Chrome plans to implement this feature
  - https://bugs.chromium.org/p/chromium/issues/detail?id=905315</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1576022</commentid>
    <comment_count>2</comment_count>
    <who name="Javier Fernandez">jfernandez</who>
    <bug_when>2019-10-02 09:25:08 -0700</bug_when>
    <thetext>I have sent the &quot;intent to implement&quot; request for Blink. Showing some public support in this bug would help to get the request approved.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1597379</commentid>
    <comment_count>3</comment_count>
    <who name="Myles C. Maxfield">mmaxfield</who>
    <bug_when>2019-12-10 15:15:24 -0800</bug_when>
    <thetext>Implementing this is a good idea. (You can consider this &quot;public support.&quot;)

We already implement (the deprecated) word-break:break-word, which is defined[1] to &quot;have the same effect as word-break: normal and overflow-wrap: anywhere.&quot; Therefore, implementing this should be fairly straightforward.

From looking at WebKit source code (RenderStyle::breakWords()), it appears that word-break:break-word is currently treated identically to overflow-wrap:break-word, which I think is incorrect according to the spec text quoted above. It would be cool if this project fixed this, too (though, of course, fixing this could be tracked in a separate bug).

[1] https://www.w3.org/TR/css-text-3/#word-break-property</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1608710</commentid>
    <comment_count>4</comment_count>
    <who name="Florian Rivoal">florian</who>
    <bug_when>2020-01-20 04:08:23 -0800</bug_when>
    <thetext>@Myles, The wrapping behavior of word-break:break-word / overflow-wrap: anywhere is the same as that of overflow-wrap:break-word, but the effect on intrinsic sizing is different. A quick bit of testing shows that safari has the expected sizing behavior difference between word-break:break-word and overflow-wrap:break-word.

To test, you can try this:

  &lt;section style=width:0&gt;
    &lt;div style=float:left&gt;longword&lt;/div&gt;
  &lt;/section&gt;

If you put overflow-wrap:break-word on the div, the longword will not wrap, but if you put word-break:break-word instead, it will.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1758675</commentid>
    <comment_count>5</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-05-10 15:10:44 -0700</bug_when>
    <thetext>&lt;rdar://problem/77791159&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1777064</commentid>
    <comment_count>6</comment_count>
    <who name="">dregad</who>
    <bug_when>2021-07-14 15:14:16 -0700</bug_when>
    <thetext>It would be really nice to see this implemented so it can be used across the board - other major browsers support this since 2019 (Firefox) / 2020 (Chrome, Edge).

https://caniuse.com/mdn-css_properties_overflow-wrap_anywhere

Cheers</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1898610</commentid>
    <comment_count>7</comment_count>
    <who name="nanto_vi (TOYAMA Nao)">nanto</who>
    <bug_when>2022-09-14 18:37:31 -0700</bug_when>
    <thetext>This bug seems to be fixed.
https://github.com/mdn/browser-compat-data/issues/17012</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1999673</commentid>
    <comment_count>8</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-12-14 11:48:05 -0800</bug_when>
    <thetext>I think this is implemented and we pass &apos;WPT&apos; tests as well: https://wpt.fyi/results/css/css-text/overflow-wrap?label=master&amp;label=experimental&amp;aligned=&amp;q=overflow-wrap-anywhere

Do we need anything more here?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2044107</commentid>
    <comment_count>9</comment_count>
    <who name="Frances Cornwall">frances_c</who>
    <bug_when>2024-07-01 18:27:23 -0700</bug_when>
    <thetext>`overflow-wrap: anywhere` is implemented, and `overflow-wra: break-word` is still supported.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2044108</commentid>
    <comment_count>10</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2024-07-01 18:31:43 -0700</bug_when>
    <thetext>This was resolved by Bug 227695
https://searchfox.org/wubkat/commit/6ed0b8b3e00e59aa24ef24296de726e2f4dc4b8b</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2044109</commentid>
    <comment_count>11</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2024-07-01 18:32:16 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 227695 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>