<?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>44382</bug_id>
          
          <creation_ts>2010-08-21 10:20:28 -0700</creation_ts>
          <short_desc>SVG Animations don&apos;t start for inlineSVG&apos;s in HTML5</short_desc>
          <delta_ts>2025-08-27 19:19:09 -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>SVG</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>HTML5</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>41761</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Dirk Schulze">krit</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>ahmad.saleem792</cc>
    
    <cc>dino</cc>
    
    <cc>eric</cc>
    
    <cc>karlcow</cc>
    
    <cc>rwlbuis</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>267585</commentid>
    <comment_count>0</comment_count>
      <attachid>65029</attachid>
    <who name="Dirk Schulze">krit</who>
    <bug_when>2010-08-21 10:20:28 -0700</bug_when>
    <thetext>Created attachment 65029
HTML with inlineSVG and SMIL animation

If you add SMIL animations in inlineSVG&apos;s for HTML5, they don&apos;t start animating.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>267586</commentid>
    <comment_count>1</comment_count>
      <attachid>65030</attachid>
    <who name="Dirk Schulze">krit</who>
    <bug_when>2010-08-21 10:21:44 -0700</bug_when>
    <thetext>Created attachment 65030
standalone SVG with SMIL animation (animation runs)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>267588</commentid>
    <comment_count>2</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-08-21 11:17:19 -0700</bug_when>
    <thetext>Maybe this is all on SVGDocument instead of on an SVGTimeContainer (aka SVGSVGElement) like it should be.  There is another bug about abstracting more of this code into a SVGTimeContainer class.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>267591</commentid>
    <comment_count>3</comment_count>
    <who name="Dirk Schulze">krit</who>
    <bug_when>2010-08-21 12:06:18 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; Maybe this is all on SVGDocument instead of on an SVGTimeContainer (aka SVGSVGElement) like it should be.  There is another bug about abstracting more of this code into a SVGTimeContainer class.

I&apos;m not very familiar with the SMIL code. But we have a SMILTimeContainer and it&apos;s all in SVGSVGElement. I guess you mean bug 9192. I would say SMILTimeContainer is your SVGTimeContainer class with the functionality you suggested. Need to debug it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>267596</commentid>
    <comment_count>4</comment_count>
    <who name="Rob Buis">rwlbuis</who>
    <bug_when>2010-08-21 13:22:06 -0700</bug_when>
    <thetext>Hi Eric,

(In reply to comment #2)
&gt; Maybe this is all on SVGDocument instead of on an SVGTimeContainer (aka SVGSVGElement) like it should be.  There is another bug about abstracting more of this code into a SVGTimeContainer class.

Dirk and I debugged this a bit, the old fashioned way using printfs :) Anyway my suspicion is that SVGSMILElement::finishParsingChildren() is not called, and therefore resolveFirstInterval is never called. Is it possible the new HTML5 parsing and tree building code does not call finishParsingChildren for non html/foreign elements?
Cheers,

Rob.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>267607</commentid>
    <comment_count>5</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-08-21 14:37:47 -0700</bug_when>
    <thetext>HTMLElementStack is responsible for calling finishParsingChildren.  It&apos;s possible we missed one case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>267640</commentid>
    <comment_count>6</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2010-08-21 21:35:36 -0700</bug_when>
    <thetext>I think we also fail to run SVG scripts.  That might be related to this bug.  Thanks for filing it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>267645</commentid>
    <comment_count>7</comment_count>
    <who name="Dirk Schulze">krit</who>
    <bug_when>2010-08-21 22:31:36 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; I think we also fail to run SVG scripts.  That might be related to this bug.  Thanks for filing it.

Yes, looks like this. SVGElement::finishParsingChildren is also used for event handling (sendSVGLoadEventIfPossible).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>551853</commentid>
    <comment_count>8</comment_count>
    <who name="Nikolas Zimmermann">zimmermann</who>
    <bug_when>2012-02-08 00:21:15 -0800</bug_when>
    <thetext>Any updates here?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>555274</commentid>
    <comment_count>9</comment_count>
    <who name="Nikolas Zimmermann">zimmermann</who>
    <bug_when>2012-02-13 08:17:26 -0800</bug_when>
    <thetext>The bug is fixed in trunk, but we should add Dirks testcase first.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1924906</commentid>
    <comment_count>10</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-01-11 15:12:35 -0800</bug_when>
    <thetext>Attached HTML inline SVG.. test case works in Safari Technology Preview 160, Chrome Canary 111 and Firefox Nightly 110.

Can we close this now?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2139241</commentid>
    <comment_count>11</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2025-08-27 19:18:58 -0700</bug_when>
    <thetext>This is working in all three engines. 
https://bugs.webkit.org/attachment.cgi?id=65029


Safari Technology Preview  26.0          20623.1.3.19.1
Firefox Nightly            144.0a1       14425.8.21
Google Chrome Canary       141.0.7379.0  7379.0</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>65029</attachid>
            <date>2010-08-21 10:20:28 -0700</date>
            <delta_ts>2010-08-21 10:20:28 -0700</delta_ts>
            <desc>HTML with inlineSVG and SMIL animation</desc>
            <filename>SVGanimation.html</filename>
            <type>text/html</type>
            <size>324</size>
            <attacher name="Dirk Schulze">krit</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sPgo8Ym9keT4KICA8c3ZnIHhtbG5zPSJodHRwOi8vd3d3Lncz
Lm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsi
PgogICAgPHJlY3Qgd2lkdGg9IjIwIiBoZWlnaHQ9IjIwIiB4PSI1IiB5PSI1IiBmaWxsPSJibHVl
Ij4KICAgICAgPGFuaW1hdGUgYXR0cmlidXRlTmFtZT0id2lkdGgiIGF0dHJpYnV0ZVR5cGU9IlhN
TCIgZnJvbT0iMjAiIHRvPSIzMDAiIGFkZGl0aXZlPSJzdW0iIGJlZ2luPSIwcyIgZHVyPSIzcyIv
PgogICAgPC9yZWN0PgogIDwvc3ZnPgo8L2JvZHk+CjwvaHRtbD4K
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>65030</attachid>
            <date>2010-08-21 10:21:44 -0700</date>
            <delta_ts>2010-08-21 10:21:44 -0700</delta_ts>
            <desc>standalone SVG with SMIL animation (animation runs)</desc>
            <filename>SVGanimation.svg</filename>
            <type>image/svg+xml</type>
            <size>268</size>
            <attacher name="Dirk Schulze">krit</attacher>
            
              <data encoding="base64">PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRw
Oi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj4KICA8cmVjdCB3aWR0aD0iMjAiIGhlaWdodD0iMjAi
IHg9IjUiIHk9IjUiIGZpbGw9ImJsdWUiPgogICAgPGFuaW1hdGUgYXR0cmlidXRlTmFtZT0id2lk
dGgiIGF0dHJpYnV0ZVR5cGU9IlhNTCIgZnJvbT0iMjAiIHRvPSIzMDAiIGFkZGl0aXZlPSJzdW0i
IGJlZ2luPSIwcyIgZHVyPSIzcyIvPgogIDwvcmVjdD4KPC9zdmc+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>