<?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>93545</bug_id>
          
          <creation_ts>2012-08-08 16:08:36 -0700</creation_ts>
          <short_desc>Animation keyframes do not function when placed in a style element in a shadowRoot</short_desc>
          <delta_ts>2012-11-02 03:51:45 -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>DOM</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac (Intel)</rep_platform>
          <op_sys>OS X 10.7</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>72462</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>HasReduction</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>72462</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Steve Orvell">sorvell</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dglazkov</cc>
    
    <cc>dominicc</cc>
    
    <cc>morrita</cc>
    
    <cc>tasak</cc>
    
    <cc>webcomponents-bugzilla</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>690868</commentid>
    <comment_count>0</comment_count>
      <attachid>157320</attachid>
    <who name="Steve Orvell">sorvell</who>
    <bug_when>2012-08-08 16:08:36 -0700</bug_when>
    <thetext>Created attachment 157320
Reduction

If a style element inside a shadowRoot defines an animation via @-webkit-keyframes, the animation does not run when used within the shadowRoot.

However, if a style element inside a shadowRoot refers to an animation in a document style element, the animation does run when used within the shadowRoot.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>692094</commentid>
    <comment_count>1</comment_count>
    <who name="Takashi Sakamoto">tasak</who>
    <bug_when>2012-08-09 19:00:11 -0700</bug_when>
    <thetext>As styles in a shadow DOM subtree are treated as &quot;scoped&quot; and all scoped @keyframes are ignored (c.f. bug 72462), @-webkit-keyframes declared in a shadow DOM subtree doesn&apos;t work.

c.f. 
StyleResolver.cpp
            // FIXME (BUG 72462): We don&apos;t add @keyframe rules of scoped style sheets for the moment.                                                                      
            if (scope)
                continue;
            resolver-&gt;addKeyframeStyle(static_cast&lt;StyleRuleKeyframes*&gt;(rule));

and 
&lt;style scoped&gt;: Implement scoped @keyframes
https://bugs.webkit.org/show_bug.cgi?id=72462

Best regards,
Takashi Sakamoto

(In reply to comment #0)
&gt; Created an attachment (id=157320) [details]
&gt; Reduction
&gt; 
&gt; If a style element inside a shadowRoot defines an animation via @-webkit-keyframes, the animation does not run when used within the shadowRoot.
&gt; 
&gt; However, if a style element inside a shadowRoot refers to an animation in a document style element, the animation does run when used within the shadowRoot.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>693367</commentid>
    <comment_count>2</comment_count>
    <who name="Dominic Cooney">dominicc</who>
    <bug_when>2012-08-12 21:23:52 -0700</bug_when>
    <thetext>What should the semantics here be?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>757074</commentid>
    <comment_count>3</comment_count>
    <who name="Takashi Sakamoto">tasak</who>
    <bug_when>2012-11-02 03:51:45 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 72462 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>157320</attachid>
            <date>2012-08-08 16:08:36 -0700</date>
            <delta_ts>2012-08-08 16:08:36 -0700</delta_ts>
            <desc>Reduction</desc>
            <filename>shadow-animation-reduction.html</filename>
            <type>text/html</type>
            <size>1473</size>
            <attacher name="Steve Orvell">sorvell</attacher>
            
              <data encoding="base64">PCFET0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