<?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>189790</bug_id>
          
          <creation_ts>2018-09-20 09:07:00 -0700</creation_ts>
          <short_desc>SVG text with spaces overlaps on itself with white-space: pre-wrap or pre-line</short_desc>
          <delta_ts>2023-01-12 15:55:56 -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>SVG</component>
          <version>Safari 11</version>
          <rep_platform>All</rep_platform>
          <op_sys>iOS 11</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=249300</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>jamiec</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>mmaxfield</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1461364</commentid>
    <comment_count>0</comment_count>
      <attachid>350212</attachid>
    <who name="">jamiec</who>
    <bug_when>2018-09-20 09:07:00 -0700</bug_when>
    <thetext>Created attachment 350212
Example comparing different white-space settings

When white-space is set to pre-wrap or pre-line, an SVG text element&apos;s contents that includes spaces &quot;wraps&quot; and overlaps onto itself. The attached examples should all display without overlap, the same as when white-space is set to pre or normal. The issue doesn&apos;t happen in Chrome, Firefox, Edge or IE.

Reproduced in Safari 12.0 (13606.2.11) and in Safari Technology Preview 65 (Safari 12.1, WebKit 13607.1.5.2) on macOS 10.13.6, and in iOS 11 and 12.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1480650</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2018-11-20 19:01:25 -0800</bug_when>
    <thetext>&lt;rdar://problem/46193460&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1900482</commentid>
    <comment_count>2</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-09-22 16:06:52 -0700</bug_when>
    <thetext>I am able to reproduce this bug in Safari Technology Preview 154 and the first two lines have text jumbled.

pre-wrap 50 %
pre-line 50 %

While other browsers (Chrome Canary 108 and Firefox Nightly 107) are working fine and have text appear properly. Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1925179</commentid>
    <comment_count>3</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-01-12 15:55:56 -0800</bug_when>
    <thetext>(In reply to Ahmad Saleem from comment #2)
&gt; I am able to reproduce this bug in Safari Technology Preview 154 and the
&gt; first two lines have text jumbled.
&gt; 
&gt; pre-wrap 50 %
&gt; pre-line 50 %
&gt; 
&gt; While other browsers (Chrome Canary 108 and Firefox Nightly 107) are working
&gt; fine and have text appear properly. Thanks!

Both of these cases are now fixed in Safari Technology Preview 161 due to Bug 249300.

Marking this as &quot;RESOLVED CONFIGURATION CHANGED&quot;. Thanks!</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>350212</attachid>
            <date>2018-09-20 09:07:00 -0700</date>
            <delta_ts>2018-09-20 09:07:00 -0700</delta_ts>
            <desc>Example comparing different white-space settings</desc>
            <filename>SVG Text.svg</filename>
            <type>image/svg+xml</type>
            <size>521</size>
            <attacher>jamiec</attacher>
            
              <data encoding="base64">PD94bWwgdmVyc2lvbj0iMS4wIj8+Cjxzdmcgb3ZlcmZsb3c9InZpc2libGUiIGhlaWdodD0iMjUw
IiB3aWR0aD0iNDAwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogICAgPHRl
eHQgZm9udC1zaXplPSIxMXB4IiB4PSIxODYuNSIgeT0iNDAiIHN0eWxlPSJkaXJlY3Rpb246IGx0
cjsgd2hpdGUtc3BhY2U6IHByZS13cmFwOyI+cHJlLXdyYXAgNTAgJTwvdGV4dD4KICAgIDx0ZXh0
IGZvbnQtc2l6ZT0iMTFweCIgeD0iMTg2LjUiIHk9IjgwIiBzdHlsZT0iZGlyZWN0aW9uOiBsdHI7
IHdoaXRlLXNwYWNlOiBwcmUtbGluZTsiPnByZS1saW5lIDUwICU8L3RleHQ+CiAgICA8dGV4dCBm
b250LXNpemU9IjExcHgiIHg9IjE4Ni41IiB5PSIxMjAiIHN0eWxlPSJkaXJlY3Rpb246IGx0cjsg
d2hpdGUtc3BhY2U6IHByZTsiPnByZSA1MCAlPC90ZXh0PgogICAgPHRleHQgZm9udC1zaXplPSIx
MXB4IiB4PSIxODYuNSIgeT0iMTYwIiBzdHlsZT0iZGlyZWN0aW9uOiBsdHI7Ij41MCAlPC90ZXh0
Pgo8L3N2Zz4=
</data>

          </attachment>
      

    </bug>

</bugzilla>