This is a user-shared playground.
Always inspect the code before running it.
${this.l10n("playground-console")`Console`}
From a9a797043d6fe4bc61886f17404b29fc3ab1a2c4 Mon Sep 17 00:00:00 2001
From: OnkarRuikar <87750369+OnkarRuikar@users.noreply.github.com>
Date: Sat, 2 May 2026 05:19:56 +0530
Subject: [PATCH 10/12] unnest
---
components/playground/element.css | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/components/playground/element.css b/components/playground/element.css
index 29620f95e..80a5c2ee9 100644
--- a/components/playground/element.css
+++ b/components/playground/element.css
@@ -115,22 +115,22 @@
.overlay-run-button {
border-color: currentcolor;
+ }
- .overlay-run-button--header {
- font-size: clamp(1.5rem, 3vw, 3rem);
+ .overlay-run-button--header {
+ font-size: clamp(1.5rem, 3vw, 3rem);
- svg {
- width: clamp(1.5rem, 3vw, 3rem) !important;
- height: clamp(1.5rem, 3vw, 3rem) !important;
- vertical-align: bottom;
- }
+ svg {
+ width: clamp(1.5rem, 3vw, 3rem) !important;
+ height: clamp(1.5rem, 3vw, 3rem) !important;
+ vertical-align: bottom;
}
+ }
- .overlay-run-button--body {
- margin-top: 0.5rem;
- line-height: var(--font-line-normal);
- color: var(--color-text-secondary);
- }
+ .overlay-run-button--body {
+ margin-top: 0.5rem;
+ line-height: var(--font-line-normal);
+ color: var(--color-text-secondary);
}
.playground__console {
From 262fafccf421e03529a85228be37f8b36c659c3b Mon Sep 17 00:00:00 2001
From: OnkarRuikar <87750369+OnkarRuikar@users.noreply.github.com>
Date: Sun, 3 May 2026 09:11:04 +0530
Subject: [PATCH 11/12] lint
---
components/playground/element.js | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/components/playground/element.js b/components/playground/element.js
index 3c1e702c5..4fe310cf5 100644
--- a/components/playground/element.js
+++ b/components/playground/element.js
@@ -411,7 +411,9 @@ ${"```"}`,
@click=${this._run}
variant="plain"
>
-
+
This is a user-shared playground.
Always inspect the code before running it.
From 55cc48c1cbd292541e56d50c87af9863d957a9c1 Mon Sep 17 00:00:00 2001
From: Claas Augner
Date: Mon, 4 May 2026 15:43:24 +0200
Subject: [PATCH 12/12] chore(playground): localize shared warning
---
components/playground/element.js | 3 +--
l10n/locales/en-US.ftl | 2 ++
l10n/locales/fr.ftl | 1 +
l10n/template.ftl | 1 +
4 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/components/playground/element.js b/components/playground/element.js
index 4fe310cf5..36babdb89 100644
--- a/components/playground/element.js
+++ b/components/playground/element.js
@@ -415,8 +415,7 @@ ${"```"}`,
${circlePlay} ${this.l10n("playground-run")`Run`}
- This is a user-shared playground.
- Always inspect the code before running it.
+ ${this.l10n.raw({ id: "playground-user-shared-warning" })}
`}
by Developers
+
+playground-user-shared-warning = This is a user-shared playground.
Always inspect the code before running it.
homepage-hero-description = Documenting CSS, HTML, and JavaScript, since 2005.
not-found-title = Page not found
diff --git a/l10n/locales/fr.ftl b/l10n/locales/fr.ftl
index 9fcd73d28..f4dbb25d7 100644
--- a/l10n/locales/fr.ftl
+++ b/l10n/locales/fr.ftl
@@ -272,6 +272,7 @@ playground-share = Partager
playground-clear = Effacer
playground-reset = Réinitialiser
playground-seeing-something-inappropriate = Voir quelque chose d'inapproprié ?
+playground-user-shared-warning = Il s'agit d'un terrain d'essai partagé par un·e utilisateur·ice.
Inspectez toujours le code avant de l'exécuter.
playground-console = Console
playground-share-markdown = Partager le Markdown
playground-copy-markdown-to-clipboard = Copier le Markdown dans le presse-papiers
diff --git a/l10n/template.ftl b/l10n/template.ftl
index 5863e64a6..4f669a380 100644
--- a/l10n/template.ftl
+++ b/l10n/template.ftl
@@ -11,6 +11,7 @@ baseline-supported-in = Supported in { $browsers }
baseline-unsupported-in = Not widely supported in { $browsers }
baseline-supported-and-unsupported-in = Supported in { $supported }, but not widely supported in { $unsupported }
homepage-hero-title = Resources for Developers,
by Developers
+playground-user-shared-warning = This is a user-shared playground.
Always inspect the code before running it.
homepage-hero-description = Documenting CSS, HTML, and JavaScript, since 2005.
not-found-title = Page not found
not-found-description = Sorry, the page { $url } could not be found.