From b15b91ce8633c4031618bdf28c723b77c2fc89f7 Mon Sep 17 00:00:00 2001 From: Mason Freed Date: Thu, 25 Jan 2024 18:10:47 -0800 Subject: [PATCH] Add support for the shadow root clonable flag This landed in the latest declarative shadow dom spec PR: https://github.com/whatwg/dom/pull/892 and was discussed here: https://github.com/whatwg/dom/issues/1137 This CL adds support for that, 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