- From: yuzhehan <notifications@github.com>
- Date: Fri, 16 Oct 2020 20:39:51 -0700
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Saturday, 17 October 2020 03:40:04 UTC
@yuzhe-han commented on this pull request. > @@ -2667,8 +2672,16 @@ indicated in the <a for=/>remove</a> algorithm below. <li><p><a for=set>Remove</a> <var>node</var> from its <var>parent</var>'s <a for=tree>children</a>. - <li><p>If <var>node</var> is <a for=slottable>assigned</a>, then run <a>assign slottables</a> for - <var>node</var>'s <a>assigned slot</a>. + <li> + <p>If <var>node</var> is <a for=slottable>assigned</a>, then: + + <ol> + <li><p><p>If <var>parent</var>'s <a for=tree>root</a> is a <a for=/>shadow root</a> with its + <a for=tree>root</a>'s <a for=ShadowRoot>slot assignment</a> set to "<code>auto</code>", + then <a for=set>remove</a> <var>node</var> from its <a>assigned slot</a>'s <a>manually assigned nodes</a>. + + <li><p>Run <a>assign slottables</a> for <var>node</var>'s <a>assigned slot</a>. I'm not sure how much optimization can be done here. Once the assigned node has been removed from slot's manually assigned node, we need to recalculate the slot's assigned nodes and signal slot change event. Both occurs inside <a>assign slottables</a>. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/whatwg/dom/pull/860#discussion_r506788912
Received on Saturday, 17 October 2020 03:40:04 UTC