<?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>197409</bug_id>
          
          <creation_ts>2019-04-30 02:53:10 -0700</creation_ts>
          <short_desc>[css-text] word-break: break-all should not allow breaking around punctuation characters</short_desc>
          <delta_ts>2022-01-17 09:44:47 -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>Text</component>
          <version>Safari Technology Preview</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>235266</dup_id>
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=197411</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=37698</see_also>
          <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="Javier Fernandez">jfernandez</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>crzwdjk</cc>
    
    <cc>florian</cc>
    
    <cc>jfernandez</cc>
    
    <cc>mmaxfield</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1531448</commentid>
    <comment_count>0</comment_count>
      <attachid>368546</attachid>
    <who name="Javier Fernandez">jfernandez</who>
    <bug_when>2019-04-30 02:53:10 -0700</bug_when>
    <thetext>Created attachment 368546
Test case to reproduce the issue

What steps will reproduce the problem?
(1) Load the attached test case

What is the expected result?

The line is broken before the last non-punctuation character &quot;XX XX|X...&quot; (see expected.png)

What happens instead?

The line is broken in the middle of the sequence of punctuation characters &quot;XX XXX..|.&quot; (see actual.png)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1531449</commentid>
    <comment_count>1</comment_count>
      <attachid>368547</attachid>
    <who name="Javier Fernandez">jfernandez</who>
    <bug_when>2019-04-30 02:55:01 -0700</bug_when>
    <thetext>Created attachment 368547
Test case to reproduce the issue</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1531450</commentid>
    <comment_count>2</comment_count>
      <attachid>368548</attachid>
    <who name="Javier Fernandez">jfernandez</who>
    <bug_when>2019-04-30 02:57:35 -0700</bug_when>
    <thetext>Created attachment 368548
Actual result</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1531451</commentid>
    <comment_count>3</comment_count>
      <attachid>368549</attachid>
    <who name="Javier Fernandez">jfernandez</who>
    <bug_when>2019-04-30 02:57:56 -0700</bug_when>
    <thetext>Created attachment 368549
Expected result</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1531452</commentid>
    <comment_count>4</comment_count>
    <who name="Javier Fernandez">jfernandez</who>
    <bug_when>2019-04-30 03:01:16 -0700</bug_when>
    <thetext>According to the CSS Text 3 specification, the word-break property should now allow breaking opportunities around punctuation characters: 

https://drafts.csswg.org/css-text-3/#propdef-word-break

&quot; It does not affect rules governing the soft wrap opportunities created by spaces (including U+3000 IDEOGRAPHIC SPACE) and around punctuation. (See line-break for controls affecting punctuation and small kana.) &quot;

The expected behavior described in this bug is what both Chrome and Firefox implement now, so this is clearly an interoperability issue of WebKit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1531453</commentid>
    <comment_count>5</comment_count>
      <attachid>368550</attachid>
    <who name="Javier Fernandez">jfernandez</who>
    <bug_when>2019-04-30 03:03:02 -0700</bug_when>
    <thetext>Created attachment 368550
Test case to reproduce the issue</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1531454</commentid>
    <comment_count>6</comment_count>
      <attachid>368551</attachid>
    <who name="Javier Fernandez">jfernandez</who>
    <bug_when>2019-04-30 03:06:45 -0700</bug_when>
    <thetext>Created attachment 368551
Test case to reproduce the issue</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1531455</commentid>
    <comment_count>7</comment_count>
    <who name="Javier Fernandez">jfernandez</who>
    <bug_when>2019-04-30 03:11:36 -0700</bug_when>
    <thetext>It seems Firefox has the same behavior as Safari in this case, while Edge behave like Chrome.

Anyway, I think the spec is clear about this, so I consider the bug report is still valid.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1531457</commentid>
    <comment_count>8</comment_count>
    <who name="Javier Fernandez">jfernandez</who>
    <bug_when>2019-04-30 03:25:02 -0700</bug_when>
    <thetext>I think Firefox has a similar bug report already:

https://bugzilla.mozilla.org/show_bug.cgi?id=1280786</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1531458</commentid>
    <comment_count>9</comment_count>
    <who name="Javier Fernandez">jfernandez</who>
    <bug_when>2019-04-30 03:29:20 -0700</bug_when>
    <thetext>These other bug looks like related as well:

https://bugzilla.mozilla.org/show_bug.cgi?id=628825</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1607900</commentid>
    <comment_count>10</comment_count>
    <who name="Florian Rivoal">florian</who>
    <bug_when>2020-01-17 00:09:15 -0800</bug_when>
    <thetext>I think this is the same issue as https://bugs.webkit.org/show_bug.cgi?id=108347</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1831506</commentid>
    <comment_count>11</comment_count>
    <who name="Arcady Goldmints-Orlov">crzwdjk</who>
    <bug_when>2022-01-17 09:44:47 -0800</bug_when>
    <thetext>This has been fixed by r288070 allowing LFC integration to work with the complex text path.

*** This bug has been marked as a duplicate of bug 235266 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="0"
              isprivate="0"
          >
            <attachid>368546</attachid>
            <date>2019-04-30 02:53:10 -0700</date>
            <delta_ts>2019-04-30 02:55:01 -0700</delta_ts>
            <desc>Test case to reproduce the issue</desc>
            <filename>line-break-anywhere-2.html</filename>
            <type>text/html</type>
            <size>216</size>
            <attacher name="Javier Fernandez">jfernandez</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxzdHlsZT4KZGl2IHsKICBmb250OiAyMHB4LzEgQWhlbTsKICB3aWR0
aDogNGNoOwogIGxpbmUtaGVpZ2h0OiAxOwp9Ci50ZXN0IHsKICBjb2xvcjogZ3JlZW47CgogIHdp
ZHRoOiA4Y2g7CiAgd29yZC1icmVhazogYnJlYWstYWxsOwoKICBib3JkZXI6IDFweCBzb2xpZDsK
fQo8L3N0eWxlPgo8ZGl2IGNsYXNzPSJ0ZXN0Ij5YWCBYWFguLi48L2Rpdj4K
</data>

          </attachment>
          <attachment
              isobsolete="1"
              ispatch="0"
              isprivate="0"
          >
            <attachid>368547</attachid>
            <date>2019-04-30 02:55:01 -0700</date>
            <delta_ts>2019-04-30 03:03:02 -0700</delta_ts>
            <desc>Test case to reproduce the issue</desc>
            <filename>line-break-anywhere-2.html</filename>
            <type>text/html</type>
            <size>208</size>
            <attacher name="Javier Fernandez">jfernandez</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxzdHlsZT4KZGl2IHsKICBmb250OiAyMHB4LzEgTW9ub3NwYWNlOwog
IHdpZHRoOiA0Y2g7CiAgbGluZS1oZWlnaHQ6IDE7Cn0KLnRlc3QgewogIHdpZHRoOiA4Y2g7CiAg
d29yZC1icmVhazogYnJlYWstYWxsOwoKICBib3JkZXI6IDFweCBzb2xpZDsKfQo8L3N0eWxlPgo8
ZGl2IGNsYXNzPSJ0ZXN0Ij5YWCBYWDxicj5YLi4uPC9kaXY+Cg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>368548</attachid>
            <date>2019-04-30 02:57:35 -0700</date>
            <delta_ts>2019-04-30 02:57:35 -0700</delta_ts>
            <desc>Actual result</desc>
            <filename>actual.png</filename>
            <type>image/png</type>
            <size>966</size>
            <attacher name="Javier Fernandez">jfernandez</attacher>
            
              <data encoding="base64">iVBORw0KGgoAAAANSUhEUgAAAG0AAAA6CAYAAAC6c9cZAAAABmJLR0QA/wD/AP+gvaeTAAAACXBI
WXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4wQeCTge+wP/9wAAAB1pVFh0Q29tbWVudAAAAAAAQ3Jl
YXRlZCB3aXRoIEdJTVBkLmUHAAADKklEQVR42u2c60tTYRzHv9O5YQSBGZWXKINoYlC9CQp6Ywht
LhMTNZuWQxQvePlDYuC8ZBgpzspKFqWGQdibrtALK8ZMazUKSiSbknMX1xuDwkt73J6j4vfz8pzv
4HvOh+e3h+1wVJ6fUyGQDUUMbwGlEUojlEZpZK1QL3VQb8jmnVkHDPQ/CF/aSh8gyrDSwuF45Hca
WVtpgY/ors6B3nAJLSNzi8/7HLhSboTeWIEOh088L4rsPrL7KyJNvQ8FdXlIjZnAQMsNjAX+PhnE
eG8z7n9VIeVsPUw6jXheeMskuY/s/kqNx7gDhag7k4yQ2w6r3Y35hePzX+6h6Y4LSDai4YIOmlXm
RZHdR3Z/hb7TNEgvqYV+ZxCjPa14OAEAExiw2jAaTEJuQyl02kjyosjuI7u/UhsRbQbKarKQODeC
zvZhuB634fqIHyk5y4wJ0bwosvvI7q/U7jH+qBnVmQmYfmpFY/MLeJOMaDClLzsmRPOiyO4ju79C
W/4tOFZ6DjqVF16vBidKTP8ZE6J5UWT3kd1fEWl+OOyDcIYAwIeX/Y/wPap5UWT3kd1fAWk+pw0W
uxux+4vQmJcK35suNA9NRi0viuw+svvLl+Z/j25LH9zYg/z6ApwqrkBW4ixeXWvFk6ko5IUXmeQ+
svvLl+bHaI8FfZ+B1NxaFKSpAe1hXDQfx9bp52i/+gwzEeXFx6LcPrL7KyDNP94Ly91PCO0yoLZY
h7iF49tOlsN0SIsfw23oeP1r1XlhZZL7RNR/zIaqovMoLKpClzOMixHNh/fb4wfcvHwbruB2nK4p
QcY/u6cdMFTmIy12EkPWTrydW0Ve+LdHyX0i7R/wYsbjgcczjdlAONcjmA9H2vgtC3pdASRkVqPs
SPziD+7NQ2X2boS+DaLJ9g5OobwDfqGaQcl9ZPePLqqlnnvUG7L5J+gas5ID/p+2AaE0SiOURiiN
0gilEUqjNEJphNIojVAaoTRCaZRG1qG0CJ5pINFFHXbyzzMNiBV+poFwPHKlhZ08aEZXv5l3jCuN
UNpmH498Acz6RcX3PXI8EkojlEZphNIIpVEaoTRCaZuO3zvAVNkQJx3EAAAAAElFTkSuQmCC
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>368549</attachid>
            <date>2019-04-30 02:57:56 -0700</date>
            <delta_ts>2019-04-30 02:57:56 -0700</delta_ts>
            <desc>Expected result</desc>
            <filename>expected.png</filename>
            <type>image/png</type>
            <size>974</size>
            <attacher name="Javier Fernandez">jfernandez</attacher>
            
              <data encoding="base64">iVBORw0KGgoAAAANSUhEUgAAAG4AAAA5CAYAAADX0B60AAAABmJLR0QA/wD/AP+gvaeTAAAACXBI
WXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4wQeCTkJYctLcQAAAB1pVFh0Q29tbWVudAAAAAAAQ3Jl
YXRlZCB3aXRoIEdJTVBkLmUHAAADMklEQVR42u2a20uTcRjHv8u5YQSBGZWHKINgYlDdBAXdGEKb
y8REzdRSRPGAhz8kBs5DhpHirKxkUWoYhN10hC6sGDNXq1FQItmUnDu4brwoZObPzXz8/Z7P5d5n
28P74X3e3+99vxrvz5kwmE3HFj4FLI5hcQyLY3EMJbQrHTSacvgMEWB46IGYuEhfYv4fkS4eHpV8
j2NoiQt+RF9dLoymS2gfX1h+3O/AlSozjOZqdDv84vWiUOuHrDjtfhQ25iNtyxSG229gMvjnwRBc
A224/1WD1LNNKDXoxOuFl1PE+qE8KuMPFqHxTArCHjusdg8Wlz5f/HIPrXfcQIoZzRcM0K2xXhRq
/RC+x+mQUdYA464QJvo78HAKAKYwbLVhIpSMvOZyGPTR1ItCrR/KixN9Jirqs5G0MI6erjG4H3fi
+ngAqbkRRoxovSjU+qG8qkw4Wom6rETMPrWipe0FfMlmNJdmRBwxovWiUOuH8HZgK46Vn4NB44PP
p8OJstJ/jBjRelGo9UNWXAAO+wicYQDw4+XQI3yPab0o1PohKs7vtMFi9yDuQDFa8tPgf9OLttHp
mNWLQq0fmuIC79FnGYQHe1HQVIhTJdXITprHq2sdeDITg3rhi41YPzTFBTDRb8HgZyAtrwGF6VpA
fxgXK49j2+xzdF19hrmo6sVHJK1+iIoLuAZgufsJ4d0mNJQYEL/0+faTVSg9pMePsU50v/615nph
bcT6Ifqs8gNuXr4Nd2gHTteXIfOvVdhOmGoKkB43jVFrD94urKFe+FklsX6oinPdsmDAHURiVh0q
jiQs/4F9+ajJ2YPwtxG02t7BKVTvQECo3RCxfjYOzUq5SqMph1+kbjCRHPD7OBX2cQyLY1gci2Pk
2sfJmdmQX5ykmQ0lRqWMmQ1F7nHyZTbUWZxIltlQalUpU2ZDse2APJkNxcTJk9lQSpxMmQ11xEmW
2VBEnHyZDSXERZXZmLShtvg8iopr0etcxZ+td70y4qLNbAR9mPN64fXOYj64io7Wu14VcS5JMxub
Hc6cEIczJ2pvwBkqaFdzqTKb7B7H8KhkWBzD4lgcw+IYFsfiGBbHxIbfRghfQjV+qJEAAAAASUVO
RK5CYII=
</data>

          </attachment>
          <attachment
              isobsolete="1"
              ispatch="0"
              isprivate="0"
          >
            <attachid>368550</attachid>
            <date>2019-04-30 03:03:02 -0700</date>
            <delta_ts>2019-04-30 03:06:45 -0700</delta_ts>
            <desc>Test case to reproduce the issue</desc>
            <filename>line-break-anywhere-2.html</filename>
            <type>text/html</type>
            <size>204</size>
            <attacher name="Javier Fernandez">jfernandez</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxzdHlsZT4KZGl2IHsKICBmb250OiAyMHB4LzEgTW9ub3NwYWNlOwog
IHdpZHRoOiA0Y2g7CiAgbGluZS1oZWlnaHQ6IDE7Cn0KLnRlc3QgewogIHdpZHRoOiA4Y2g7CiAg
d29yZC1icmVhazogYnJlYWstYWxsOwoKICBib3JkZXI6IDFweCBzb2xpZDsKfQo8L3N0eWxlPgo8
ZGl2IGNsYXNzPSJ0ZXN0Ij5YWCBYWFguLi48L2Rpdj4K
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>368551</attachid>
            <date>2019-04-30 03:06:45 -0700</date>
            <delta_ts>2019-04-30 03:06:45 -0700</delta_ts>
            <desc>Test case to reproduce the issue</desc>
            <filename>line-break-anywhere-2.html</filename>
            <type>text/html</type>
            <size>162</size>
            <attacher name="Javier Fernandez">jfernandez</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxzdHlsZT4KZGl2IHsKICBmb250OiAyMHB4LzEgTW9ub3NwYWNlOwog
IHdpZHRoOiA4Y2g7CiAgd29yZC1icmVhazogYnJlYWstYWxsOwoKICBib3JkZXI6IDFweCBzb2xp
ZDsKfQo8L3N0eWxlPgo8ZGl2IGNsYXNzPSJ0ZXN0Ij5YWCBYWFguLi48L2Rpdj4K
</data>

          </attachment>
      

    </bug>

</bugzilla>