<?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>149086</bug_id>
          
          <creation_ts>2015-09-11 21:22:05 -0700</creation_ts>
          <short_desc>Whitespace underlines are not repainted on color changes</short_desc>
          <delta_ts>2024-01-16 17:33:30 -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>CSS</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Philip Rogers">pdr</reporter>
          <assigned_to name="Myles C. Maxfield">mmaxfield</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>bfulgham</cc>
    
    <cc>fujii</cc>
    
    <cc>karlcow</cc>
    
    <cc>kling</cc>
    
    <cc>mmaxfield</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1125339</commentid>
    <comment_count>0</comment_count>
      <attachid>261042</attachid>
    <who name="Philip Rogers">pdr</who>
    <bug_when>2015-09-11 21:22:05 -0700</bug_when>
    <thetext>Created attachment 261042
Repro for webkit

wkrev.com/150259 introduced a small regression where text decorations such as underlines are not repainted for whitespace text.

A user recently reported this against Chrome and I had merged the above patch a few years ago so we shared this bug. I fixed this by removing the whitespace check which keeps the original optimization but causes whitespace runs to be repainted. My fix landed in https://src.chromium.org/viewvc/blink?revision=202164&amp;view=revision and a similar fix would work in WebKit too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1125448</commentid>
    <comment_count>1</comment_count>
    <who name="Myles C. Maxfield">mmaxfield</who>
    <bug_when>2015-09-12 21:13:56 -0700</bug_when>
    <thetext>This repro is fantastic, thank you!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1883825</commentid>
    <comment_count>2</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2022-07-14 14:44:40 -0700</bug_when>
    <thetext>WebKit still gets this wrong, 7 years later.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1883826</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-07-14 14:44:49 -0700</bug_when>
    <thetext>&lt;rdar://problem/97036299&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1905974</commentid>
    <comment_count>4</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-10-16 10:59:44 -0700</bug_when>
    <thetext>I think this change should be here:

https://github.com/WebKit/WebKit/blob/main/Source/WebCore/rendering/RenderElement.cpp#L319

Replacing &quot;isAllCollapsibleWhitespace&quot; with equivalent of &quot;isBR&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2005452</commentid>
    <comment_count>5</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2024-01-16 17:27:44 -0800</bug_when>
    <thetext>This is not reproducible with Safari 17.2.1 and STP 186 to me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2005455</commentid>
    <comment_count>6</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2024-01-16 17:31:55 -0800</bug_when>
    <thetext>(In reply to Fujii Hironori from comment #5)
&gt; This is not reproducible with Safari 17.2.1 and STP 186 to me.

Yes - I can&apos;t reproduce it as well. Might be fixed between 2022 to 2024 now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2005457</commentid>
    <comment_count>7</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2024-01-16 17:33:30 -0800</bug_when>
    <thetext>Thank you for the confirmation. Closed.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>261042</attachid>
            <date>2015-09-11 21:22:05 -0700</date>
            <delta_ts>2015-09-11 21:22:05 -0700</delta_ts>
            <desc>Repro for webkit</desc>
            <filename>webkitminimized.html</filename>
            <type>text/html</type>
            <size>876</size>
            <attacher name="Philip Rogers">pdr</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxzdHlsZT4KZGl2IHsKICAgIGRpc3BsYXk6IGJsb2NrOwogICAgd2lk
dGg6IDUwMHB4OwogICAgaGVpZ2h0OiAxZW07CiAgICBjb2xvcjogYmx1ZTsKfQpkaXY6aG92ZXIg
ewogICAgdGV4dC1kZWNvcmF0aW9uOiB1bmRlcmxpbmU7CiAgICBjb2xvcjogcmVkOwp9Cjwvc3R5
bGU+CjxzY3JpcHQ+Ci8vIFRoaXMgcmVwYWludCBsb2dpYyBpc24ndCByZXF1aXJlZCwganVzdCBt
YWtlcyB0aGUgYnVnIGVhc2llciB0byBzZWUuIFlvdSBjYW4gYWxzbyBzZWxlY3QgdG8gZm9yY2Ug
YSByZXBhaW50Lgp2YXIgYmdFdmVuT2RkID0gZmFsc2U7CmZ1bmN0aW9uIGZvcmNlUmVwYWludCgp
IHsKICAgIHdpbmRvdy5yZXF1ZXN0QW5pbWF0aW9uRnJhbWUoZnVuY3Rpb24oKSB7CiAgICAgICAg
YmdFdmVuT2RkID0gIWJnRXZlbk9kZDsKICAgICAgICB2YXIgZGl2ID0gZG9jdW1lbnQuZ2V0RWxl
bWVudEJ5SWQoJ2RpdicpOwogICAgICAgIGRpdi5zdHlsZS5iYWNrZ3JvdW5kQ29sb3IgPSBiZ0V2
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