From 5a8bdeabeee4f246cddc275083a4facf52858778 Mon Sep 17 00:00:00 2001 From: Martin Trapp <94928215+martrapp@users.noreply.github.com> Date: Sat, 10 Feb 2024 12:22:45 +0100 Subject: [PATCH] now possibly obsolete part for issue 9953 --- .changeset/tidy-buttons-end.md | 5 +++++ .../src/pages/declarative-shadow-dom.astro | 7 +++++++ .../e2e/fixtures/view-transitions/src/pages/one.astro | 1 + packages/astro/e2e/view-transitions.test.js | 9 +++++++++ packages/astro/src/transitions/router.ts | 7 ++++++- 5 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 .changeset/tidy-buttons-end.md create mode 100644 packages/astro/e2e/fixtures/view-transitions/src/pages/declarative-shadow-dom.astro diff --git a/.changeset/tidy-buttons-end.md b/.changeset/tidy-buttons-end.md new file mode 100644 index 0000000000..aec9e639b9 --- /dev/null +++ b/.changeset/tidy-buttons-end.md @@ -0,0 +1,5 @@ +--- +"astro": patch +--- + +Adds handling of declarative shadow DOMs during view transitions for browsers that support them via `includeShadowRoots`. diff --git a/packages/astro/e2e/fixtures/view-transitions/src/pages/declarative-shadow-dom.astro b/packages/astro/e2e/fixtures/view-transitions/src/pages/declarative-shadow-dom.astro new file mode 100644 index 0000000000..9a61545cda --- /dev/null +++ b/packages/astro/e2e/fixtures/view-transitions/src/pages/declarative-shadow-dom.astro @@ -0,0 +1,7 @@ +--- +import Layout from '../components/Layout.astro'; +--- + +

Shadow DOM

+

+
diff --git a/packages/astro/e2e/fixtures/view-transitions/src/pages/one.astro b/packages/astro/e2e/fixtures/view-transitions/src/pages/one.astro index 8e34eb5559..8b9b5dcd4e 100644 --- a/packages/astro/e2e/fixtures/view-transitions/src/pages/one.astro +++ b/packages/astro/e2e/fixtures/view-transitions/src/pages/one.astro @@ -12,6 +12,7 @@ import Layout from '../components/Layout.astro'; go to redirect 2 go to a redirect external go to undefined page + page with DSD