<?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>258225</bug_id>
          
          <creation_ts>2023-06-16 16:24:42 -0700</creation_ts>
          <short_desc>External SVG with filter does not render correctly</short_desc>
          <delta_ts>2025-12-10 10:30: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>SVG</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=275304</see_also>
          <bug_file_loc>https://codepen.io/mutebg/project/editor/DGpLKp</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar, LayerBasedSVGEngine, WPTImpact</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ahmad Saleem">ahmad.saleem792</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>gwynne</cc>
    
    <cc>sabouhallawa</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1962179</commentid>
    <comment_count>0</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-06-16 16:24:42 -0700</bug_when>
    <thetext>Hi Team,

This is bug copy of chrome bug 1429510 (crbug.com/1429510).

Test Case - In URL field

WPT Test Case - https://wpt.fyi/results/css/filter-effects/svg-external-filter-resource.html?label=experimental&amp;label=master&amp;aligned

WPT Test Case Live Link - http://wpt.live/css/filter-effects/svg-external-filter-resource.html

Blink Commit: https://chromium.googlesource.com/chromium/src/+/0c1c236384bdf19a251c0f72a424fbea2b044349

______

--&gt; Expected Result (In Chrome Canary 116):

Show two green circle one with blur

--&gt; Actual Result (in STP172 &amp; Safari 16.5 &amp; Firefox Nightly 116):

Show one green circle and missing blurred circle

_______

Just wanted to raise so we can track more failing cases and look into fixing them.

Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1975008</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-09-01 08:58:29 -0700</bug_when>
    <thetext>&lt;rdar://problem/114823248&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1975169</commentid>
    <comment_count>2</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-09-02 05:24:22 -0700</bug_when>
    <thetext>Updating this return: https://searchfox.org/wubkat/source/Source/WebCore/svg/SVGLengthContext.cpp#233

and

still looking into what to about other stuff but have an idea but if someone wanna take it up. :-)

Haven&apos;t done any local testing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1982238</commentid>
    <comment_count>3</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-10-03 14:57:35 -0700</bug_when>
    <thetext>Repaint issue in &apos;LBSE&apos;, it draws but don&apos;t change from &apos;brown&apos; to &apos;green&apos;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2164834</commentid>
    <comment_count>4</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2025-12-10 10:30:30 -0800</bug_when>
    <thetext>This compiles but does not fix this bug:

```
static inline const RenderStyle* renderStyleForLengthResolving(const SVGElement* context)
{
    if (!context)
        return nullptr;

    const ContainerNode* currentContext = context;
    do {
        if (currentContext-&gt;renderer())
            return &amp;currentContext-&gt;renderer()-&gt;style();
        currentContext = currentContext-&gt;parentNode();
    } while (currentContext);

    Document&amp; document = context-&gt;document();
    
    // Don&apos;t return default style if document render tree is being destroyed
    if (document.renderTreeBeingDestroyed())
        return nullptr;
    
    return &amp;RenderStyle::defaultStyleSingleton();
}
```</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>