summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) {