summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Barthélémy Ledoux <ledouxb@me.com> 2023-05-24 02:10:10 -0500
committerGravatar GitHub <noreply@github.com> 2023-05-24 15:10:10 +0800
commit2bda7fb0bce346f7725086980e1648e2636bbefb (patch)
treee25f344f155816be8589780fbeaa5454ff9b6be3
parent55a0439e00f57ac219f8f315ab934f98047e36ed (diff)
downloadastro-2bda7fb0bce346f7725086980e1648e2636bbefb.tar.gz
astro-2bda7fb0bce346f7725086980e1648e2636bbefb.tar.zst
astro-2bda7fb0bce346f7725086980e1648e2636bbefb.zip
fix: add astro-static-slot to the list of inert tags in astro css (#7189)
-rw-r--r--.changeset/static-slot-css.md5
-rw-r--r--packages/astro/src/runtime/server/scripts.ts2
2 files changed, 6 insertions, 1 deletions
diff --git a/.changeset/static-slot-css.md b/.changeset/static-slot-css.md
new file mode 100644
index 000000000..a3f1c2475
--- /dev/null
+++ b/.changeset/static-slot-css.md
@@ -0,0 +1,5 @@
+---
+'astro': patch
+---
+
+fix: add astro-static-slot to the list of inert tags in astro css
diff --git a/packages/astro/src/runtime/server/scripts.ts b/packages/astro/src/runtime/server/scripts.ts
index b466d1df3..4ba12d1ab 100644
--- a/packages/astro/src/runtime/server/scripts.ts
+++ b/packages/astro/src/runtime/server/scripts.ts
@@ -1,7 +1,7 @@
import type { SSRResult } from '../../@types/astro';
import islandScript from './astro-island.prebuilt.js';
-const ISLAND_STYLES = `<style>astro-island,astro-slot{display:contents}</style>`;
+const ISLAND_STYLES = `<style>astro-island,astro-slot,astro-static-slot{display:contents}</style>`;
export function determineIfNeedsHydrationScript(result: SSRResult): boolean {
if (result._metadata.hasHydrationScript) {