RESOLVED FIXED 77503
[meta] Element should be able to have multiple shadow roots.
https://bugs.webkit.org/show_bug.cgi?id=77503
Summary [meta] Element should be able to have multiple shadow roots.
Shinya Kawanaka
Reported 2012-01-31 19:53:52 PST
When inserting shadow root (A) into an element having another shadow root (B), Host should have a link to (A), and (A) should have a link to (B), and (A) and (B) should have a link to the host.
Attachments
Patch (18.56 KB, patch)
2012-02-01 19:56 PST, Shinya Kawanaka
no flags
Shinya Kawanaka
Comment 1 2012-01-31 23:41:33 PST
As a first step, we want to have just an ability to have multiple shadow root. In this step, we don't consider how elements having multiple shadow roots are rendered. Note that some kinds of elements have shadow tree by own. We should decline to add shadow root in such elements.
Dimitri Glazkov (Google)
Comment 2 2012-02-01 09:14:45 PST
(In reply to comment #1) > Note that some kinds of elements have shadow tree by own. We should decline to add shadow root in such elements. Why? A large reason of introducing multiple shadow subtrees per element is to _allow_ overriding shadow DOM of an element with a "built-in" shadow subtree. Can you explain what pitfalls I am not seeing here?
Shinya Kawanaka
Comment 3 2012-02-01 17:18:45 PST
(In reply to comment #2) > (In reply to comment #1) > > Note that some kinds of elements have shadow tree by own. We should decline to add shadow root in such elements. > > Why? A large reason of introducing multiple shadow subtrees per element is to _allow_ overriding shadow DOM of an element with a "built-in" shadow subtree. Can you explain what pitfalls I am not seeing here? Ah... Sorry, I didn't understand the motivation of multiple shadow subtrees. I was afraid that a user breaks current input implementation... OK. That being the case, I don't have any reason to prevent overriding "built-in" shadow subtree.
Shinya Kawanaka
Comment 4 2012-02-01 19:56:10 PST
Hajime Morrita
Comment 5 2012-05-28 23:41:17 PDT
All subbugs are landed. closing.
Note You need to log in before you can comment on or make changes to this bug.