From 737368039faaaebb76854299460983d75d9ebad0 Mon Sep 17 00:00:00 2001 From: Mason Freed Date: Fri, 26 Jan 2024 09:47:58 -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