<?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>260537</bug_id>
          
          <creation_ts>2023-08-22 12:53:17 -0700</creation_ts>
          <short_desc>Use PaintBehavior::DontShowVisitedLinks to prevent :visited link style in subtrees that use mix-blend-mode</short_desc>
          <delta_ts>2023-08-22 15:55:47 -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>Layout and Rendering</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=225446</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=257822</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 name="Said Abou-Hallawa">sabouhallawa</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1972700</commentid>
    <comment_count>0</comment_count>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2023-08-22 12:53:17 -0700</bug_when>
    <thetext>This is a follow-up for bug 257822. Setting a state on the RenderStyle to fix the blend mode bug 225446 was not the right approach. Instead we should add the flag PaintBehavior::DontShowVisitedLinks if the blendMode() is not equal to BlendMode::Normal.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1972701</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-08-22 12:54:09 -0700</bug_when>
    <thetext>&lt;rdar://problem/114277041&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1972765</commentid>
    <comment_count>2</comment_count>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2023-08-22 15:55:47 -0700</bug_when>
    <thetext>I think this bug is invalid. Having the blendMode() of an element not equal to BlendMode::Normal should affect that element and all its descents. And this is why we set the blendMode in m_nonInheritedData but we set isInSubtreeWithBlendMode in m_rareInheritedData. 

So there will be no easy way to check the blendMode() of the parent elements all the way up till the root and check any of them is not equal to BlendMode::Normal to add PaintBehavior::DontShowVisitedLinks to the drawing paintBehavior in this case.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>