From 46e59f4861b84c2986cfdb3ebef4496bc83fd309 Mon Sep 17 00:00:00 2001 From: Mason Freed Date: Fri, 26 Jan 2024 18:19:50 -0800 Subject: [PATCH] Add support for the shadow root clonable flag This landed in the these two spec PRs: https://github.com/whatwg/dom/pull/892 https://github.com/whatwg/dom/pull/1237 and was discussed here: https://github.com/whatwg/dom/issues/1137 https://github.com/whatwg/dom/issues/1236 This CL adds support for clonable, behind a new ShadowRootClonable flag. There was already a very basic test, but I added a few more cases. This should be fairly web compatible, but there is a risk since with this feature enabled, declarative shadow roots in the main document (as opposed to in a