<?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>220850</bug_id>
          
          <creation_ts>2021-01-22 02:14:59 -0800</creation_ts>
          <short_desc>Pieces of prior text draw remain when redrawing after updating text properties</short_desc>
          <delta_ts>2021-01-27 02:05:38 -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 14</version>
          <rep_platform>Mac (Intel)</rep_platform>
          <op_sys>macOS 10.14</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>6274</dup_id>
          
          <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="Frank">ifiz.dev</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>mmaxfield</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1721528</commentid>
    <comment_count>0</comment_count>
      <attachid>418121</attachid>
    <who name="Frank">ifiz.dev</who>
    <bug_when>2021-01-22 02:14:59 -0800</bug_when>
    <thetext>Created attachment 418121
Consistent reproduction pattern

Redrawing a text element after font family or font size changes can result in pieces of the old draw remaining on screen. 
It mainly seems to occur when the updated text has decreased in size in comparison to before the update.

Resizing the window, removing focus from the window or changing style attributes on the text element will clear the remnants of the old draw. 

This seems to be dependent on the used font, but can be consistently reproduced (see attachment).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1721938</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2021-01-24 17:12:25 -0800</bug_when>
    <thetext>Dupe of bug 6274?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1722874</commentid>
    <comment_count>2</comment_count>
    <who name="Frank">ifiz.dev</who>
    <bug_when>2021-01-27 02:05:19 -0800</bug_when>
    <thetext>(In reply to Alexey Proskuryakov from comment #1)
&gt; Dupe of bug 6274?

I think you&apos;re right. The remaining pixels are exactly the part of the glyph that are outside the bounds of the text. This explains why it does not happen for all fonts. Thanks for taking a look, I&apos;ll mark this as duplicate.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1722875</commentid>
    <comment_count>3</comment_count>
    <who name="Frank">ifiz.dev</who>
    <bug_when>2021-01-27 02:05:38 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 6274 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>418121</attachid>
            <date>2021-01-22 02:14:59 -0800</date>
            <delta_ts>2021-01-22 02:14:59 -0800</delta_ts>
            <desc>Consistent reproduction pattern</desc>
            <filename>safarI-text-redraw-issue.html</filename>
            <type>text/html</type>
            <size>1000</size>
            <attacher name="Frank">ifiz.dev</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sIGxhbmc9ImVuIj4KPGhlYWQ+CiAgICA8bWV0YSBjaGFyc2V0
PSJVVEYtOCI+CjwvaGVhZD4KPGJvZHk+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIw
MDAvc3ZnIiB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIj4KICAgIDxnIHRyYW5zZm9ybT0ic2Nh
bGUoOCw4KSI+CiAgICAgICAgPHRleHQgZmlsbD0iIzAwMDAwMCIgeD0iMTIiIHk9IjE4Ij5UZXh0
PC90ZXh0PgogICAgPC9nPgo8L3N2Zz4KPHNjcmlwdD4KICAgIGNvbnN0IHRleHQgPSBkb2N1bWVu
dC5xdWVyeVNlbGVjdG9yKCd0ZXh0Jyk7CiAgICBjb25zdCBiYXNlRm9udFNpemUgPSAyMDsKICAg
IGxldCBhY3RpdmVGb250SW5kZXggPSAwOwogICAgbGV0IGZvbnRTaXplTW9kaWZpZXIgPSAwOwoK
ICAgIGNvbnN0IGZvbnRzID0gWwogICAgICAgICdBbCBUYXJpa2gnLAogICAgICAgICdESU4gQ29u
ZGVuc2VkJywKICAgICAgICAnU25lbGwgUm91bmRoYW5kJywKICAgICAgICAnQ29yc2l2YSBIZWJy
ZXcnCiAgICBdOwoKICAgIGNvbnN0IGludGVydmFsID0gc2V0SW50ZXJ2YWwoKCkgPT4gewogICAg
ICAgIHRleHQuc2V0QXR0cmlidXRlKCdmb250LWZhbWlseScsIGZvbnRzW2FjdGl2ZUZvbnRJbmRl
eF0pOwogICAgICAgIHRleHQuc2V0QXR0cmlidXRlKCdmb250LXNpemUnLCBgJHsgYmFzZUZvbnRT
aXplIC0gZm9udFNpemVNb2RpZmllciB9cHhgKTsKCiAgICAgICAgYWN0aXZlRm9udEluZGV4Kys7
CiAgICAgICAgZm9udFNpemVNb2RpZmllcisrOwoKICAgICAgICBpZiAoYWN0aXZlRm9udEluZGV4
ID4gZm9udHMubGVuZ3RoIC0gMSkgewogICAgICAgICAgICBhY3RpdmVGb250SW5kZXggPSAwOwog
ICAgICAgIH0KCiAgICAgICAgaWYgKGZvbnRTaXplTW9kaWZpZXIgPj0gYmFzZUZvbnRTaXplKSB7
CiAgICAgICAgICAgIGNsZWFySW50ZXJ2YWwoaW50ZXJ2YWwpOwogICAgICAgIH0KICAgIH0sIDM1
MCk7Cgo8L3NjcmlwdD4KPC9ib2R5Pgo8L2h0bWw+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>