[Webkit-unassigned] [Bug 154765] ::slotted doesn't work in nested shadow trees
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Feb 28 14:07:18 PST 2016
https://bugs.webkit.org/show_bug.cgi?id=154765
Ryosuke Niwa <rniwa at webkit.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #272449|review? |review+
Flags| |
--- Comment #9 from Ryosuke Niwa <rniwa at webkit.org> ---
Comment on attachment 272449
--> https://bugs.webkit.org/attachment.cgi?id=272449
patch
View in context: https://bugs.webkit.org/attachment.cgi?id=272449&action=review
>> LayoutTests/fast/shadow-dom/css-scoping-shadow-slotted-nested.html:55
>> + outerShadow.appendChild(document.getElementById('outer-host-template').content.cloneNode(true));
>
> BTW, I feel the current set of specs desperately needs a declarative way to attach shadow based on a template. Something like <outer-host shadow="outer-host-template"> to replace all this boilerplate.
Indeed. We've suggested that three years but we've agreed to punt it in v1 so I guess that's that :(
It's really silly that attachShadow or defineElement doesn't take an optional argument though.
e.g.
document.defineElement('my-element', MyElementClass, {template: MyElementClass.template});
would go a long way to simplify this whole setup.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160228/850baefa/attachment-0001.html>
More information about the webkit-unassigned
mailing list