<?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>94905</bug_id>
          
          <creation_ts>2012-08-23 23:19:14 -0700</creation_ts>
          <short_desc>ShadowHost should be reattached during recalcStyle.</short_desc>
          <delta_ts>2019-10-04 22:11:35 -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>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>72352</blocked>
          <everconfirmed>0</everconfirmed>
          <reporter name="Takashi Sakamoto">tasak</reporter>
          <assigned_to name="Web Components Team">webcomponents-bugzilla</assigned_to>
          <cc>dominicc</cc>
    
    <cc>morrita</cc>
    
    <cc>rniwa</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>703800</commentid>
    <comment_count>0</comment_count>
      <attachid>160338</attachid>
    <who name="Takashi Sakamoto">tasak</who>
    <bug_when>2012-08-23 23:19:14 -0700</bug_when>
    <thetext>Created attachment 160338
repro

When new shadow roots are added to the shadow host or content distribution is changed, the shadow host is reattached (detached and lazyAttached).
However, the detach clear the shadow host&apos;s style (the style is set to be null). The detach is invoked not during recalcStyle.

So suppose that adding a shadow root and applying css transition to the shadow host in the same time.
Since the shadow host&apos;s style is reset, no css transition can be started. This looks not good.

 So it might be better to set some flag here and to recreate a renderer during in Element::recalcStyle (i.e. during recalcStyle).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>788012</commentid>
    <comment_count>1</comment_count>
    <who name="Dominic Cooney">dominicc</who>
    <bug_when>2012-12-10 21:39:53 -0800</bug_when>
    <thetext>The spec is not clear whether CSS transitions should be applied in this case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1577133</commentid>
    <comment_count>2</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2019-10-04 22:11:35 -0700</bug_when>
    <thetext>We don&apos;t do this anymore.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>160338</attachid>
            <date>2012-08-23 23:19:14 -0700</date>
            <delta_ts>2012-08-23 23:19:14 -0700</delta_ts>
            <desc>repro</desc>
            <filename>repro.html</filename>
            <type>text/html</type>
            <size>466</size>
            <attacher name="Takashi Sakamoto">tasak</attacher>
            
              <data encoding="base64">PCFkb2N0eXBlIGh0bWw+CjxodG1sPgo8aGVhZD4KPHN0eWxlPgojaG9zdCB7CiAgICBvcGFjaXR5
OiAxOwogICAgLXdlYmtpdC10cmFuc2l0aW9uOiBvcGFjaXR5IDFzIGxpbmVhcjsKfQouZmFkZSB7
CiAgICBvcGFjaXR5OiAwOwp9Cjwvc3R5bGU+CjxzY3JpcHQ+CmZ1bmN0aW9uIHJ1blRlc3QoKSB7
CiAgICB2YXIgaG9zdCA9IGRvY3VtZW50LmdldEVsZW1lbnRCeUlkKCdob3N0Jyk7CiAgICB2YXIg
c2hhZG93Um9vdCA9IG5ldyBXZWJLaXRTaGFkb3dSb290KGhvc3QpOwogICAgc2hhZG93Um9vdC5p
bm5lckhUTUwgPSAiU3RhcnQgY3NzIHRyYW5zaXRpb24uIjsKICAgIGhvc3QuY2xhc3NOYW1lID0g
ImZhZGUiOwp9Cjwvc2NyaXB0Pgo8L2hlYWQ+Cjxib2R5PgogIDxkaXYgaWQ9Imhvc3QiPkRlbW88
L2Rpdj4KICA8YnV0dG9uIG9uY2xpY2s9InJ1blRlc3QoKSI+U3RhcnQ8L2J1dHRvbj4KPC9ib2R5
Pgo8L2h0bWw+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>