Implement basic declarative Shadow DOM
This CL adds the DeclarativeShadowDOM runtime enabled feature, and implements a basic approach. There are no tests yet, as this is an evolving spec/approach. But this allows basic testing of attaching the shadow root upon the closing <template> tag. See the explainer [1], the issue discussion [2], the intent to prototype [3], and the chromestatus entry [4]. To test this feature: --enable-blink-features=DeclarativeShadowDOM and then: <div> <template shadowroot=open> <div></div> <slot></slot> </template> <span> </div> [1] https://github.com/mfreed7/declarative-shadow-dom/blob/master/README.md [2] https://github.com/whatwg/dom/issues/831 [3] https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/nJDc-1s3R9U [4] https://chromestatus.com/feature/5191745052606464 Bug: 1042130 Change-Id: I5057c932a89fc401735d024348799d30c97e959e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2018336 Auto-Submit: Mason Freed <masonfreed@chromium.org> Reviewed-by:Kouhei Ueno <kouhei@chromium.org> Commit-Queue: Mason Freed <masonfreed@chromium.org> Cr-Commit-Position: refs/heads/master@{#741538}
Showing
Please register or sign in to comment