Bug 94905

Summary: ShadowHost should be reattached during recalcStyle.
Product: WebKit Reporter: Takashi Sakamoto <tasak>
Component: DOMAssignee: Web Components Team <webcomponents-bugzilla>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Normal CC: dominicc, morrita, rniwa
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 72352    
Attachments:
Description Flags
repro none

Description Takashi Sakamoto 2012-08-23 23:19:14 PDT
Created attachment 160338 [details]
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'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'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).
Comment 1 Dominic Cooney 2012-12-10 21:39:53 PST
The spec is not clear whether CSS transitions should be applied in this case.
Comment 2 Ryosuke Niwa 2019-10-04 22:11:35 PDT
We don't do this anymore.