Skip to content

Keep your coding agent up to date with the latest web best practices

Release v0.0.187

github-actions[bot]bfd8c8dded77
diff --git a/.agents/plugins/marketplace.json b/.agents/plugins/marketplace.json
new file mode 100644
index 0000000..0ce4640
--- /dev/null
+++ b/.agents/plugins/marketplace.json
@@ -0,0 +1,21 @@
+{
+ "name": "googlechrome",
+ "interface": {
+ "displayName": "Google Chrome"
+ },
+ "plugins": [
+ {
+ "name": "modern-web-guidance",
+ "source": {
+ "source": "local",
+ "path": "./"
+ },
+ "policy": {
+ "installation": "AVAILABLE",
+ "authentication": "ON_INSTALL"
+ },
+ "category": "Development",
+ "version": "0.0.187"
+ }
+ ]
+}
diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json
index 094314b..1c7174d 100644
--- a/.claude-plugin/marketplace.json
+++ b/.claude-plugin/marketplace.json
@@ -8,7 +8,7 @@
"name": "modern-web-guidance",
"source": "./",
"description": "Keep your coding agent up to date with the latest web best practices",
- "version": "0.0.186"
+ "version": "0.0.187"
}
]
}
diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json
index 7cde8f8..e66b8b7 100644
--- a/.claude-plugin/plugin.json
+++ b/.claude-plugin/plugin.json
@@ -1,7 +1,7 @@
{
"name": "modern-web-guidance",
"description": "Keep your coding agent up to date with the latest web best practices",
- "version": "0.0.186",
+ "version": "0.0.187",
"author": {
"name": "Google Chrome"
}
diff --git a/.codex-plugin/plugin.json b/.codex-plugin/plugin.json
new file mode 100644
index 0000000..a1cc701
--- /dev/null
+++ b/.codex-plugin/plugin.json
@@ -0,0 +1,35 @@
+{
+ "name": "modern-web-guidance",
+ "version": "0.0.187",
+ "description": "Keep your coding agent up to date with the latest web best practices",
+ "author": {
+ "name": "Google Chrome",
+ "url": "https://developer.chrome.com"
+ },
+ "homepage": "https://developer.chrome.com/docs/modern-web-guidance",
+ "repository": "https://github.com/GoogleChrome/modern-web-guidance",
+ "license": "Apache-2.0",
+ "keywords": [
+ "web",
+ "html",
+ "css",
+ "javascript",
+ "best-practices"
+ ],
+ "skills": "./skills/",
+ "interface": {
+ "displayName": "Modern Web Guidance",
+ "shortDescription": "Keep your coding agent up to date with modern web platform best practices",
+ "longDescription": "Modern Web Guidance is an agent skill and CLI tool designed to help AI coding agents build web applications using modern, secure, and high-performance APIs rather than outdated workarounds. Supported by the Google Chrome team, it injects expert-curated web platform best practices directly into an agent's context window to prevent the generation of bloated, legacy code.",
+ "developerName": "Google Chrome",
+ "category": "Development",
+ "capabilities": [
+ "Read"
+ ],
+ "websiteURL": "https://developer.chrome.com/docs/modern-web-guidance",
+ "defaultPrompt": [
+ "Audit this project for modern web best practices and modernization opportunities",
+ "What is the recommended modern way to implement responsive dialogs and popovers?"
+ ]
+ }
+}
diff --git a/.cursor-plugin/plugin.json b/.cursor-plugin/plugin.json
index f29ff91..9a52b3b 100644
--- a/.cursor-plugin/plugin.json
+++ b/.cursor-plugin/plugin.json
@@ -1,7 +1,7 @@
{
"name": "modern-web-guidance",
"description": "Modern Web Guidance is an agent skill and CLI tool designed to help AI coding agents build web applications using modern, secure, and high-performance APIs rather than outdated workarounds. Supported by the Google Chrome team, it injects expert-curated web platform best practices directly into an agent's context window to prevent the generation of bloated, legacy code.",
- "version": "0.0.186",
+ "version": "0.0.187",
"author": {
"name": "Google Chrome"
}
diff --git a/.github/plugin/plugin.json b/.github/plugin/plugin.json
index f29ff91..9a52b3b 100644
--- a/.github/plugin/plugin.json
+++ b/.github/plugin/plugin.json
@@ -1,7 +1,7 @@
{
"name": "modern-web-guidance",
"description": "Modern Web Guidance is an agent skill and CLI tool designed to help AI coding agents build web applications using modern, secure, and high-performance APIs rather than outdated workarounds. Supported by the Google Chrome team, it injects expert-curated web platform best practices directly into an agent's context window to prevent the generation of bloated, legacy code.",
- "version": "0.0.186",
+ "version": "0.0.187",
"author": {
"name": "Google Chrome"
}
diff --git a/.grok-plugin/marketplace.json b/.grok-plugin/marketplace.json
index 094314b..1c7174d 100644
--- a/.grok-plugin/marketplace.json
+++ b/.grok-plugin/marketplace.json
@@ -8,7 +8,7 @@
"name": "modern-web-guidance",
"source": "./",
"description": "Keep your coding agent up to date with the latest web best practices",
- "version": "0.0.186"
+ "version": "0.0.187"
}
]
}
diff --git a/README.md b/README.md
index b90a153..f98592a 100644
--- a/README.md
+++ b/README.md
@@ -85,41 +85,42 @@ _View an example:_ [the `navigation-drawer` guide](https://github.com/GoogleChro
#### The full list
<details>
-<summary><strong>104 modern web features</strong></summary>
+<summary><strong>108 modern web features</strong></summary>
-### CSS & Layout (51 features)
+### CSS & Layout (54 features)
| | | |
| :--- | :--- | :--- |
| [::backdrop](https://web-platform-dx.github.io/web-features-explorer/features/backdrop/) | [Custom highlights](https://web-platform-dx.github.io/web-features-explorer/features/highlight/) | [Scroll snap events](https://web-platform-dx.github.io/web-features-explorer/features/scroll-snap-events/) |
| [:has()](https://web-platform-dx.github.io/web-features-explorer/features/has/) | [field-sizing](https://web-platform-dx.github.io/web-features-explorer/features/field-sizing/) | [Scroll-driven animations](https://web-platform-dx.github.io/web-features-explorer/features/scroll-driven-animations/) |
| [:not()](https://web-platform-dx.github.io/web-features-explorer/features/not/) | [font-size-adjust](https://web-platform-dx.github.io/web-features-explorer/features/font-size-adjust/) | [scroll-initial-target](https://web-platform-dx.github.io/web-features-explorer/features/scroll-initial-target/) |
-| [:user-valid and :user-invalid](https://web-platform-dx.github.io/web-features-explorer/features/user-pseudos/) | [image-set()](https://web-platform-dx.github.io/web-features-explorer/features/image-set/) | [scrollbar-color](https://web-platform-dx.github.io/web-features-explorer/features/scrollbar-color/) |
-| [@function](https://web-platform-dx.github.io/web-features-explorer/features/function/) | [Individual transform properties](https://web-platform-dx.github.io/web-features-explorer/features/individual-transforms/) | [scrollbar-width](https://web-platform-dx.github.io/web-features-explorer/features/scrollbar-width/) |
-| [@starting-style](https://web-platform-dx.github.io/web-features-explorer/features/starting-style/) | [interpolate-size](https://web-platform-dx.github.io/web-features-explorer/features/interpolate-size/) | [scrollend](https://web-platform-dx.github.io/web-features-explorer/features/scrollend/) |
-| [accent-color](https://web-platform-dx.github.io/web-features-explorer/features/accent-color/) | [light-dark()](https://web-platform-dx.github.io/web-features-explorer/features/light-dark/) | [scrollIntoView()](https://web-platform-dx.github.io/web-features-explorer/features/scroll-into-view/) |
-| [Active view transition](https://web-platform-dx.github.io/web-features-explorer/features/active-view-transition/) | [linear() easing](https://web-platform-dx.github.io/web-features-explorer/features/linear-easing/) | [sibling-count() and sibling-index()](https://web-platform-dx.github.io/web-features-explorer/features/sibling-count/) |
-| [Anchor position container queries](https://web-platform-dx.github.io/web-features-explorer/features/container-anchor-position-queries/) | [Masks](https://web-platform-dx.github.io/web-features-explorer/features/masks/) | [text-box](https://web-platform-dx.github.io/web-features-explorer/features/text-box/) |
-| [Anchor positioning](https://web-platform-dx.github.io/web-features-explorer/features/anchor-positioning/) | [overflow-clip-margin](https://web-platform-dx.github.io/web-features-explorer/features/overflow-clip-margin/) | [text-wrap](https://web-platform-dx.github.io/web-features-explorer/features/text-wrap/) |
-| [calc-size()](https://web-platform-dx.github.io/web-features-explorer/features/calc-size/) | [overflow: clip](https://web-platform-dx.github.io/web-features-explorer/features/overflow-clip/) | [text-wrap: balance](https://web-platform-dx.github.io/web-features-explorer/features/text-wrap-balance/) |
-| [color-scheme](https://web-platform-dx.github.io/web-features-explorer/features/color-scheme/) | [overlay](https://web-platform-dx.github.io/web-features-explorer/features/overlay/) | [text-wrap: pretty](https://web-platform-dx.github.io/web-features-explorer/features/text-wrap-pretty/) |
-| [Container queries](https://web-platform-dx.github.io/web-features-explorer/features/container-queries/) | [overscroll-behavior](https://web-platform-dx.github.io/web-features-explorer/features/overscroll-behavior/) | [transition-behavior](https://web-platform-dx.github.io/web-features-explorer/features/transition-behavior/) |
-| [Container scroll-state queries](https://web-platform-dx.github.io/web-features-explorer/features/container-scroll-state-queries/) | [prefers-color-scheme media query](https://web-platform-dx.github.io/web-features-explorer/features/prefers-color-scheme/) | [Trigonometric functions (CSS)](https://web-platform-dx.github.io/web-features-explorer/features/trig-functions/) |
-| [Container style queries](https://web-platform-dx.github.io/web-features-explorer/features/container-style-queries/) | [prefers-contrast media query](https://web-platform-dx.github.io/web-features-explorer/features/prefers-contrast/) | [View transitions](https://web-platform-dx.github.io/web-features-explorer/features/view-transitions/) |
-| [content-visibility](https://web-platform-dx.github.io/web-features-explorer/features/content-visibility/) | [prefers-reduced-motion media query](https://web-platform-dx.github.io/web-features-explorer/features/prefers-reduced-motion/) | [view-transition-class](https://web-platform-dx.github.io/web-features-explorer/features/view-transition-class/) |
+| [:user-valid and :user-invalid](https://web-platform-dx.github.io/web-features-explorer/features/user-pseudos/) | [image-set()](https://web-platform-dx.github.io/web-features-explorer/features/image-set/) | [scroll-target-group](https://web-platform-dx.github.io/web-features-explorer/features/scroll-target-group/) |
+| [@function](https://web-platform-dx.github.io/web-features-explorer/features/function/) | [Individual transform properties](https://web-platform-dx.github.io/web-features-explorer/features/individual-transforms/) | [scrollbar-color](https://web-platform-dx.github.io/web-features-explorer/features/scrollbar-color/) |
+| [@starting-style](https://web-platform-dx.github.io/web-features-explorer/features/starting-style/) | [interpolate-size](https://web-platform-dx.github.io/web-features-explorer/features/interpolate-size/) | [scrollbar-width](https://web-platform-dx.github.io/web-features-explorer/features/scrollbar-width/) |
+| [accent-color](https://web-platform-dx.github.io/web-features-explorer/features/accent-color/) | [light-dark()](https://web-platform-dx.github.io/web-features-explorer/features/light-dark/) | [scrollend](https://web-platform-dx.github.io/web-features-explorer/features/scrollend/) |
+| [Active view transition](https://web-platform-dx.github.io/web-features-explorer/features/active-view-transition/) | [linear() easing](https://web-platform-dx.github.io/web-features-explorer/features/linear-easing/) | [scrollIntoView()](https://web-platform-dx.github.io/web-features-explorer/features/scroll-into-view/) |
+| [Anchor position container queries](https://web-platform-dx.github.io/web-features-explorer/features/container-anchor-position-queries/) | [Masks](https://web-platform-dx.github.io/web-features-explorer/features/masks/) | [sibling-count() and sibling-index()](https://web-platform-dx.github.io/web-features-explorer/features/sibling-count/) |
+| [Anchor positioning](https://web-platform-dx.github.io/web-features-explorer/features/anchor-positioning/) | [overflow-clip-margin](https://web-platform-dx.github.io/web-features-explorer/features/overflow-clip-margin/) | [text-box](https://web-platform-dx.github.io/web-features-explorer/features/text-box/) |
+| [calc-size()](https://web-platform-dx.github.io/web-features-explorer/features/calc-size/) | [overflow: clip](https://web-platform-dx.github.io/web-features-explorer/features/overflow-clip/) | [text-wrap](https://web-platform-dx.github.io/web-features-explorer/features/text-wrap/) |
+| [color-scheme](https://web-platform-dx.github.io/web-features-explorer/features/color-scheme/) | [overlay](https://web-platform-dx.github.io/web-features-explorer/features/overlay/) | [text-wrap: balance](https://web-platform-dx.github.io/web-features-explorer/features/text-wrap-balance/) |
+| [Conic gradients](https://web-platform-dx.github.io/web-features-explorer/features/conic-gradients/) | [overscroll-behavior](https://web-platform-dx.github.io/web-features-explorer/features/overscroll-behavior/) | [text-wrap: pretty](https://web-platform-dx.github.io/web-features-explorer/features/text-wrap-pretty/) |
+| [Container queries](https://web-platform-dx.github.io/web-features-explorer/features/container-queries/) | [prefers-color-scheme media query](https://web-platform-dx.github.io/web-features-explorer/features/prefers-color-scheme/) | [transition-behavior](https://web-platform-dx.github.io/web-features-explorer/features/transition-behavior/) |
+| [Container scroll-state queries](https://web-platform-dx.github.io/web-features-explorer/features/container-scroll-state-queries/) | [prefers-contrast media query](https://web-platform-dx.github.io/web-features-explorer/features/prefers-contrast/) | [Trigonometric functions (CSS)](https://web-platform-dx.github.io/web-features-explorer/features/trig-functions/) |
+| [Container style queries](https://web-platform-dx.github.io/web-features-explorer/features/container-style-queries/) | [prefers-reduced-motion media query](https://web-platform-dx.github.io/web-features-explorer/features/prefers-reduced-motion/) | [View transitions](https://web-platform-dx.github.io/web-features-explorer/features/view-transitions/) |
+| [content-visibility](https://web-platform-dx.github.io/web-features-explorer/features/content-visibility/) | [Scroll marker target pseudo-classes](https://web-platform-dx.github.io/web-features-explorer/features/scroll-marker-targets/) | [view-transition-class](https://web-platform-dx.github.io/web-features-explorer/features/view-transition-class/) |
| [Cross-document view transitions](https://web-platform-dx.github.io/web-features-explorer/features/cross-document-view-transitions/) | [Scroll snap](https://web-platform-dx.github.io/web-features-explorer/features/scroll-snap/) | [Web animations](https://web-platform-dx.github.io/web-features-explorer/features/web-animations/) |
-### HTML & DOM (20 features)
+### HTML & DOM (21 features)
| | | |
| :--- | :--- | :--- |
-| [:autofill](https://web-platform-dx.github.io/web-features-explorer/features/autofill/) | [Customizable &lt;select>](https://web-platform-dx.github.io/web-features-explorer/features/customizable-select/) | [Invoker commands](https://web-platform-dx.github.io/web-features-explorer/features/invoker-commands/) |
-| [&lt;details>](https://web-platform-dx.github.io/web-features-explorer/features/details/) | [Email, telephone, and URL &lt;input> types](https://web-platform-dx.github.io/web-features-explorer/features/input-email-tel-url/) | [moveBefore()](https://web-platform-dx.github.io/web-features-explorer/features/move-before/) |
-| [&lt;dialog closedby>](https://web-platform-dx.github.io/web-features-explorer/features/dialog-closedby/) | [Fetch priority](https://web-platform-dx.github.io/web-features-explorer/features/fetch-priority/) | [MutationObserver](https://web-platform-dx.github.io/web-features-explorer/features/mutationobserver/) |
-| [&lt;dialog>](https://web-platform-dx.github.io/web-features-explorer/features/dialog/) | [hidden="until-found"](https://web-platform-dx.github.io/web-features-explorer/features/hidden-until-found/) | [Mutually exclusive &lt;details> elements](https://web-platform-dx.github.io/web-features-explorer/features/details-name/) |
-| [&lt;link rel="expect">](https://web-platform-dx.github.io/web-features-explorer/features/link-rel-expect/) | [HTML in canvas](https://web-platform-dx.github.io/web-features-explorer/features/canvas-html/) | [Popover](https://web-platform-dx.github.io/web-features-explorer/features/popover/) |
-| [&lt;link rel="preload">](https://web-platform-dx.github.io/web-features-explorer/features/link-rel-preload/) | [inert](https://web-platform-dx.github.io/web-features-explorer/features/inert/) | [popover="hint"](https://web-platform-dx.github.io/web-features-explorer/features/popover-hint/) |
-| [blocking="render"](https://web-platform-dx.github.io/web-features-explorer/features/blocking-render/) | [Interest invokers](https://web-platform-dx.github.io/web-features-explorer/features/interest-invokers/) | |
+| [:autofill](https://web-platform-dx.github.io/web-features-explorer/features/autofill/) | [blocking="render"](https://web-platform-dx.github.io/web-features-explorer/features/blocking-render/) | [Interest invokers](https://web-platform-dx.github.io/web-features-explorer/features/interest-invokers/) |
+| [&lt;details>](https://web-platform-dx.github.io/web-features-explorer/features/details/) | [Customizable &lt;select>](https://web-platform-dx.github.io/web-features-explorer/features/customizable-select/) | [Invoker commands](https://web-platform-dx.github.io/web-features-explorer/features/invoker-commands/) |
+| [&lt;dialog closedby>](https://web-platform-dx.github.io/web-features-explorer/features/dialog-closedby/) | [Email, telephone, and URL &lt;input> types](https://web-platform-dx.github.io/web-features-explorer/features/input-email-tel-url/) | [moveBefore()](https://web-platform-dx.github.io/web-features-explorer/features/move-before/) |
+| [&lt;dialog>](https://web-platform-dx.github.io/web-features-explorer/features/dialog/) | [Fetch priority](https://web-platform-dx.github.io/web-features-explorer/features/fetch-priority/) | [MutationObserver](https://web-platform-dx.github.io/web-features-explorer/features/mutationobserver/) |
+| [&lt;link rel="expect">](https://web-platform-dx.github.io/web-features-explorer/features/link-rel-expect/) | [hidden="until-found"](https://web-platform-dx.github.io/web-features-explorer/features/hidden-until-found/) | [Mutually exclusive &lt;details> elements](https://web-platform-dx.github.io/web-features-explorer/features/details-name/) |
+| [&lt;link rel="preload">](https://web-platform-dx.github.io/web-features-explorer/features/link-rel-preload/) | [HTML in canvas](https://web-platform-dx.github.io/web-features-explorer/features/canvas-html/) | [Popover](https://web-platform-dx.github.io/web-features-explorer/features/popover/) |
+| [&lt;progress>](https://web-platform-dx.github.io/web-features-explorer/features/progress/) | [inert](https://web-platform-dx.github.io/web-features-explorer/features/inert/) | [popover="hint"](https://web-platform-dx.github.io/web-features-explorer/features/popover-hint/) |
### JavaScript & APIs (33 features)
@@ -140,7 +141,7 @@ _View an example:_ [the `navigation-drawer` guide](https://github.com/GoogleChro
</details>
<details>
-<summary><strong>132 real-world developer use cases</strong></summary>
+<summary><strong>135 real-world developer use cases</strong></summary>
<h3>accessibility</h3>
@@ -287,6 +288,9 @@ _View an example:_ [the `navigation-drawer` guide](https://github.com/GoogleChro
- **[navigation-drawer](https://github.com/GoogleChrome/modern-web-guidance/blob/main/skills/modern-web-guidance/guides/ui-components/navigation-drawer.md)**: Create a navigation drawer component that, when triggered from a menu button, slides in from the side overlayed on top of existing page content, and slides out when dismissed (by swiping away, tapping outside, or pressing escape).
- **[persistent-app-tours](https://github.com/GoogleChrome/modern-web-guidance/blob/main/skills/modern-web-guidance/guides/ui-components/persistent-app-tours.md)**: Create persistent onboarding walkthroughs using tethered native overlays that stay open during user interaction.
- **[persistent-toast-notifications](https://github.com/GoogleChrome/modern-web-guidance/blob/main/skills/modern-web-guidance/guides/ui-components/persistent-toast-notifications.md)**: Create non-intrusive toast and overlay notifications for persistent, stackable messaging and state communication.
+- **[progress-ring](https://github.com/GoogleChrome/modern-web-guidance/blob/main/skills/modern-web-guidance/guides/ui-components/progress-ring.md)**: Build a progress ring component that visually represents the completion status of a task or process, with support for content in the center and brand-consistent styling.
+- **[scrollspy](https://github.com/GoogleChrome/modern-web-guidance/blob/main/skills/modern-web-guidance/guides/ui-components/scrollspy.md)**: Highlight the currently visible section of a page in a navigation menu
+- **[spinner](https://github.com/GoogleChrome/modern-web-guidance/blob/main/skills/modern-web-guidance/guides/ui-components/spinner.md)**: Build a loading spinner that communicates busy state to all users, respects reduced-motion preferences, and animates efficiently.
- **[stack-drill-down](https://github.com/GoogleChrome/modern-web-guidance/blob/main/skills/modern-web-guidance/guides/ui-components/stack-drill-down.md)**: Build full-screen hierarchical navigation that lets users drill down into nested views and swipe or navigate back to return, with browser history kept in sync.
<h3>visual-design</h3>
@@ -394,6 +398,14 @@ grok plugin install https://github.com/GoogleChrome/modern-web-guidance --trust
```
</details>
+<details>
+<summary><b>OpenAI Codex</b></summary>
+
+```shell
+codex plugin marketplace add GoogleChrome/modern-web-guidance
+```
+</details>
+
## <img src="https://github.com/GoogleChrome/modern-web-guidance/raw/main/.github/img/refresh-cw.svg" width="24" height="24" style="vertical-align: middle; margin-right: 4px;"> Updating
If you installed the skill using `npx modern-web-guidance@latest install`, you can update with: `npx modern-web-guidance@latest update`.
@@ -428,16 +440,16 @@ We developed a robust eval harness to ensure that the content is **empirically p
<!-- INJECT_EVAL_RESULTS_START -->
| Date | Agent + Model | Tasks / Assertions | Unguided → Guided (Uplift) |
| :--- | :--- | :---: | :---: |
-| Aug 31 | codex_cli (gpt-5.6-sol) | 132 / 1124 | 59% → 82% (**+23pp**) |
-| Aug 31 | claude_code (opus-5) | 133 / 1086 | 59% → 90% (**+31pp**) |
-| Aug 31 | antigravity (gemini-3.7-flash-medium) | 133 / 1118 | 59% → 90% (**+31pp**) |
-| Aug 28 | codex_cli (gpt-5.6-sol) | 132 / 1124 | 59% → 85% (**+26pp**) |
-| Aug 28 | claude_code (opus-5) | 132 / 1092 | 57% → 90% (**+33pp**) |
-| Aug 28 | antigravity (gemini-3.7-flash-medium) | 132 / 1124 | 59% → 91% (**+32pp**) |
-| Aug 26 | codex_cli (gpt-5.6-sol) | 132 / 1124 | 59% → 81% (**+22pp**) |
-| Aug 26 | claude_code (opus-5) | 132 / 1080 | 57% → 90% (**+33pp**) |
-| Aug 26 | antigravity (gemini-3.7-flash-medium) | 132 / 1124 | 60% → 91% (**+31pp**) |
| Aug 24 | claude_code (opus-5) | 131 / 1033 | 57% → 92% (**+35pp**) |
+| Aug 24 | antigravity (gemini-3.7-flash-medium) | 131 / 1118 | 60% → 89% (**+29pp**) |
+| Aug 21 | codex_cli (gpt-5.6-sol) | 131 / 1118 | 60% → 81% (**+21pp**) |
+| Aug 21 | claude_code (opus-5) | 131 / 1086 | 57% → 90% (**+33pp**) |
+| Aug 21 | antigravity (gemini-3.7-flash-medium) | 131 / 1118 | 60% → 90% (**+30pp**) |
+| Aug 17 | codex_cli (gpt-5.6-sol) | 130 / 1112 | 60% → 83% (**+23pp**) |
+| Aug 17 | claude_code (opus-5) | 130 / 1033 | 58% → 92% (**+34pp**) |
+| Aug 17 | antigravity (gemini-3.7-flash-medium) | 130 / 1112 | 64% → 90% (**+26pp**) |
+| Aug 14 | codex_cli (gpt-5.6-sol) | 132 / 1125 | 60% → 82% (**+22pp**) |
+| Aug 14 | claude_code (opus-5) | 132 / 1036 | 56% → 90% (**+34pp**) |
<!-- INJECT_EVAL_RESULTS_END -->
diff --git a/gemini-extension.json b/gemini-extension.json
index 7cde8f8..e66b8b7 100644
--- a/gemini-extension.json
+++ b/gemini-extension.json
@@ -1,7 +1,7 @@
{
"name": "modern-web-guidance",
"description": "Keep your coding agent up to date with the latest web best practices",
- "version": "0.0.186",
+ "version": "0.0.187",
"author": {
"name": "Google Chrome"
}
diff --git a/kimi.plugin.json b/kimi.plugin.json
index c4b9347..a01c242 100644
--- a/kimi.plugin.json
+++ b/kimi.plugin.json
@@ -1,7 +1,7 @@
{
"name": "modern-web-guidance",
"description": "Modern Web Guidance is an agent skill and CLI tool designed to help AI coding agents build web applications using modern, secure, and high-performance APIs rather than outdated workarounds. Supported by the Google Chrome team, it injects expert-curated web platform best practices directly into an agent's context window to prevent the generation of bloated, legacy code.",
- "version": "0.0.186",
+ "version": "0.0.187",
"author": {
"name": "Google Chrome"
},
diff --git a/package.json b/package.json
index 0d64a24..0f73c11 100644
--- a/package.json
+++ b/package.json
@@ -3,7 +3,7 @@
"displayName": "Modern Web Guidance",
"description": "Keep your agent up to date on the latest web best practices.",
"license": "Apache-2.0",
- "version": "0.0.186",
+ "version": "0.0.187",
"publisher": "GoogleChrome",
"repository": {
"url": "https://github.com/GoogleChrome/modern-web-guidance-src"
diff --git a/skills/modern-web-guidance/SKILL.md b/skills/modern-web-guidance/SKILL.md
index d5dbd8d..9660c48 100644
--- a/skills/modern-web-guidance/SKILL.md
+++ b/skills/modern-web-guidance/SKILL.md
@@ -35,7 +35,7 @@ Must use this skill:
Search with an action-oriented query summarizing what you want to achieve using the `search` command. Run `modern-web-guidance` directly with `npx`.
```sh
-npx -y modern-web-guidance@latest search "<query>" --skill-version 2026_08_31-6ba3cecd
+npx -y modern-web-guidance@latest search "<query>" --skill-version 2026_09_04-7de96777
```
**Example Output**:
@@ -90,20 +90,19 @@ When generating or modifying code, cross-check the implementation against the re
## Using npx / pnpx
-- Prefer `pnpx` over `npx` if `pnpm` is available (note: `pnpx` does not use the `-y` flag).
-- When requesting tool permissions, allowlist `npx -y modern-web-guidance@latest *` specifically (or `pnpx modern-web-guidance@latest *`), never bare `npx *` or `pnpx *`.
-- IMPORTANT: on Windows, using `npx` may fail. Use `npx.cmd ...` instead.
-- Network access is required for fetching npm packages needed by the task.
-- If the `npx -y modern-web-guidance…` command hangs, you may be offline. Try running again in offline
- mode: `npx --offline …`.
-- The `--skill-version` flag is used to determine if this SKILL.md is out of date. If it is, a warning
- message is logged to stderr.
+- Prefer `pnpx` over `npx` if `pnpm` is available (note: `pnpx` does not use the `-y` flag).
+- When requesting tool permissions, allowlist `npx -y modern-web-guidance@latest *` specifically (or `pnpx modern-web-guidance@latest *`), never bare `npx *` or `pnpx *`.
+- IMPORTANT: on Windows, using `npx` may fail. Use `npx.cmd ...` instead.
+- Fetching and running `modern-web-guidance` requires outbound network access. If running in a sandboxed, permission-gated, or approval-based environment (e.g., Codex, Claude Code), **proactively request approval/allowlisting for the command with network access BEFORE executing it the first time**, avoiding sandbox network timeouts.
+- In sandboxed environments where `~/.npm` is read-only or restricted, set `NPM_CONFIG_CACHE=/tmp/npm-cache`.
+- If the command hangs due to being offline, try running again in offline mode: `npx --offline …`.
+- The `--skill-version` flag is used to determine if this SKILL.md is out of date. If it is, a warning message is logged to stderr.
## Guidelines
-- Always search **first** to find the most relevant guides.
-- These guides are usually framework-agnostic; adapt them correctly to your setup.
-- Do not hallucinate guides or ignore them; they represent the preferred local standard for the user's project.
+- Always search **first** to find the most relevant guides.
+- These guides are usually framework-agnostic; adapt them correctly to your setup.
+- Do not hallucinate guides or ignore them; they represent the preferred local standard for the user's project.
## Interpreting Browser Support & Fallbacks
diff --git a/skills/modern-web-guidance/guides/css/css-layout.md b/skills/modern-web-guidance/guides/css/css-layout.md
index 63feb9d..58cb2fe 100644
--- a/skills/modern-web-guidance/guides/css/css-layout.md
+++ b/skills/modern-web-guidance/guides/css/css-layout.md
@@ -30,12 +30,12 @@ Walk the decision tree top-to-bottom and stop at the first match. Note that layo
### 1.2 Working principles
-**Do:**
-
- Use logical properties (`inline-size`, `block-size`, `margin-inline`, `padding-block`, `inset-inline-start`) for layout dimensions and spacing — see `css` (via `npx -y modern-web-guidance@latest retrieve "css"`) for full coverage.
- Apply the content-first vs layout-first mental model: flexbox when items dictate flow, grid when you define the skeleton first.
- Use the `place-*` shorthands (`place-content`, `place-items`, `place-self`) to align across both axes in one declaration.
- Reach for intrinsic sizing (`min-content`, `max-content`, `fit-content()`) and flexible tracks (`fr`, `minmax()`) before fixed `width`/`height` — fewer media queries, more resilient layouts.
+- Do NOT use `overflow: hidden` to mask layout issues — fix them at the source.
+For example certain replaced elements like `<canvas>`, `<img>`, `<svg>`, `<video>`, `<iframe>` use `display: inline` by default, which can add a gap in certain layouts. Instead of clipping the gap with `overflow`, remove it by applying a block display-outside value (e.g. `display: block`, `grid`, `flex` etc).
- Use `aspect-ratio` to reserve space for media and prevent layout shift before assets load.
```css
diff --git a/skills/modern-web-guidance/guides/performance/performance.md b/skills/modern-web-guidance/guides/performance/performance.md
index ecee6ad..82d8d30 100644
--- a/skills/modern-web-guidance/guides/performance/performance.md
+++ b/skills/modern-web-guidance/guides/performance/performance.md
@@ -244,6 +244,7 @@ Client-side caching via Service Workers allows applications to bypass the networ
* **DON'T cache opaque responses blindly**: Responses from third-party domains lacking CORS headers are "opaque". Caching them heavily consumes quota and fails silently. Only cache them using `NetworkFirst` or `StaleWhileRevalidate`.
* **DON'T cache POST requests**: Service workers cannot cache non-GET requests natively. Implement background sync queues for offline submissions.
* **DON'T bypass versioning**: Failing to update asset hashes/versions will trap users in infinite cache loops.
+* **DON'T use `Cache-Control: no-store` for non-sensitive resources**: This directive prevents the browser from storing the page in the **Back-Forward Cache (bfcache)**, leading to significantly slower perceived performance. Use it only for truly private data, and use `Cache-Control: no-cache` or `Cache-Control: max-age=0` for pages that simply need to serve up-to-date content.
### Code Examples
diff --git a/skills/modern-web-guidance/guides/ui-components/progress-ring.md b/skills/modern-web-guidance/guides/ui-components/progress-ring.md
new file mode 100644
index 0000000..417891b
--- /dev/null
+++ b/skills/modern-web-guidance/guides/ui-components/progress-ring.md
@@ -0,0 +1,179 @@
+# Progress ring
+
+A progress ring (or circular progress bar) provides visual feedback on the status of a task. Unlike a linear progress bar, its circular shape is ideal for dashboards, card components, or anywhere space is constrained.
+
+This guide implements a progress ring by:
+
+- Using the native `<progress>` element as the semantic foundation to ensure the component is accessible to screen readers and keyboard users out-of-the-box.
+- Styling the component with `conic-gradient()` and `mask-image`, allowing for a fully responsive and themeable ring without the complexity of SVG path manipulation.
+- Leveraging CSS Custom Properties and `@property` to enable smooth, GPU-accelerated transitions of the progress fill.
+
+This approach is preferred over SVG-only solutions because it uses the semantic `<progress>` element rather than ARIA, and more easily integrates with existing layout, design systems and typography.
+
+See the `spinner` (via `npx -y modern-web-guidance@latest retrieve "spinner"`) for handling indeterminate loading states.
+
+## Implementation
+
+### 1. Markup
+
+Use a wrapper to hold both the visual ring and the optional center content. The `<progress>` element remains the semantic source of truth. Use a utility class to visually hide the native progress bar while keeping it accessible.
+
+```html
+<div class="ring-wrapper">
+ <progress value="75" max="100" aria-label="Task progress" class="progress-ring"></progress>
+ <!-- Optional: Content to display in the center -->
+ <div class="ring-content">
+ 75%
+ </div>
+</div>
+```
+
+### 2. Styles
+
+#### Hiding Native UI
+To style the `<progress>` element as a progress ring, first hide the default browser styling for progress bars.
+
+```css
+/* Hide native bars */
+progress.loading-spinner:indeterminate::-webkit-progress-bar {
+ display: none;
+ background: none;
+}
+progress.loading-spinner:indeterminate::-webkit-progress-value {
+ display: none;
+ background: none;
+}
+progress.loading-spinner:indeterminate::-moz-progress-bar {
+ display: none;
+ background: none;
+}
+progress.loading-spinner:indeterminate::slider-fill {
+ display: none;
+ background: none;
+}
+```
+
+#### Container and Ring
+
+The wrapper provides the positioning context. The `<progress>` element handles the visual gradient.
+
+```css
+.progress-ring-wrapper {
+ position: relative;
+ display: grid;
+ place-items: center;
+}
+
+progress.progress-ring {
+ --size: 150px;
+ --thickness: 16px;
+ --track-color: #f1f5f9;
+ --fill-color: #3b82f6;
+ --value: attr(value type(<number>));
+ width: var(--size);
+ height: var(--size);
+
+ transition: --value 0.4s cubic-bezier(0.4, 0, 0.2, 1);
+ border-radius: 50%;
+
+ background: conic-gradient(
+ var(--fill-color) calc(var(--value) * 1%),
+ var(--track-color) 0
+ );
+
+ /* MANDATORY: Clip the background to the border-area. */
+ background-clip: border-area;
+ border: var(--thickness) solid transparent;
+ background-origin: border-box;
+}
+
+.progress-ring-content {
+ /* Positioned in the center of the wrapper */
+ position: absolute;
+}
+```
+
+You can also use a `radial-gradient` to make rounded end caps.
+
+#### Enable smooth transitions with `@property`
+
+To animate the progress ring smoothly when the value changes, register `--value` as a numeric custom property.
+
+Users with motion sensitivities may find the transition between values disorienting. Respect the `prefers-reduced-motion` media query by having a 0 second (immediate) duration by default, and setting a longer time for users with no preference.
+
+
+```css
+@property --value {
+ syntax: '<number>';
+ inherits: true;
+ initial-value: 0;
+}
+
+progress.progress-ring {
+ transition: --value 0s ease-in-out;
+ @media (prefers-reduced-motion: no-preference) {
+ transition-duration: 0.4s;
+ }
+}
+
+```
+
+### 3. Progress Updates
+
+Update the `value` attribute on the `<progress>` element and the text content of `.progress-ring-content` (if displaying a percentage) whenever the value changes.
+
+### 4. Optional Success State
+
+You can use the CSS attribute selector to automatically update the ring's appearance (e.g., changing the color to green) when the task reaches completion.
+
+```css
+/* Change the fill color to green when the progress reaches 100% */
+progress.progress-ring[value="100"] {
+ --fill-color: #10b981;
+}
+```
+
+## Fallback strategies
+
+Do not add a fallback value inside the `<progress>` element. It is not used by assistive technology and ignored by all modern browsers.
+
+#### Animation fallback
+
+Baseline status for Registered custom properties: Newly available. It's been Baseline since 2024-07-09.
+Supported by: Chrome 85 (Aug 2020), Edge 85 (Aug 2020), Firefox 128 (Jul 2024), and Safari 16.4 (Mar 2023).
+
+If `@property` is not supported, the ring will jump to the new value instantly instead of transitioning smoothly. In most cases this is fine, and does not break any functionality.
+
+If the transition is absolutely necessary, you can check for `@property` support and use a `requestAnimationFrame()` loop to interpolate `--value` in older browsers.
+
+background-clip: border-area has limited availability.
+Supported by: Chrome 150, Edge 150, and Safari 18.2 (Dec 2024).
+Unsupported in: Firefox.
+
+For browsers that don't yet support `background-clip: border-area`, fall back to a `mask-image` to hollow out the center of the `<progress>` element.
+
+```css
+@supports not (background-clip: border-area) {
+ mask-image: radial-gradient(
+ transparent calc(50% - var(--thickness)),
+ black calc(50% - var(--thickness) + 0.5px)
+ );
+ border: 0;
+}
+```
+
+attr() is not natively supported by any major browser yet.
+
+For browsers that don't support the `attr()` CSS function for any property, use a `MutationObserver` to automatically sync the `value` attribute to the `--value` custom property.
+
+```js
+if (!CSS.supports("width: attr(value type(<number>))")) {
+ const observer = new MutationObserver(() => {
+ progress.style.setProperty("--value", progress.getAttribute("value"));
+ });
+ observer.observe(progress, {
+ attributes: true,
+ attributeFilter: ["value"],
+ });
+}
+```
\ No newline at end of file
diff --git a/skills/modern-web-guidance/guides/ui-components/scrollspy.md b/skills/modern-web-guidance/guides/ui-components/scrollspy.md
new file mode 100644
index 0000000..95ed5bb
--- /dev/null
+++ b/skills/modern-web-guidance/guides/ui-components/scrollspy.md
@@ -0,0 +1,127 @@
+# Build a Scrollspy Navigation
+
+A scrollspy navigation is a common UI pattern that automatically highlights the navigation link corresponding to the section of the page currently in the viewport. This provides users with a clear sense of where they are in a long document as they scroll.
+
+This pattern is common in two scenarios:
+- **Single-page websites**: Where the primary site navigation links to different sections of a single page rather than separate URLs.
+- **Long-form content**: Where a table of contents or sidebar navigation tracks the user's progress through an article, guide, or documentation.
+
+## How to implement
+
+Traditionally, the scrollspy pattern required JavaScript and the `IntersectionObserver` API. Modern CSS provides a native way to achieve this using the `scroll-target-group` property and the `:target-current` pseudo-class.
+
+1. **Ensure Navigation Links use Fragment Identifiers**: Your navigation must consist of anchor links (`<a>`) that point to sections on the same page using fragment identifiers (e.g., `<a href="#section-1">`) that match the `id` of your content sections.
+2. **Enable Scroll Target Grouping**: Apply the `scroll-target-group: auto` property to the container of your navigation links. This tells the browser to treat these links as markers that track their respective targets.
+3. **Style the Active Link**: Use the `:target-current` pseudo-class on your navigation links to apply styles when their target section is visible in the scroll container.
+4. **Semantic State**: Use a script to update `aria-current="true"` on the active link when scrolling stops to ensure the state is correctly communicated to assistive technologies.
+
+## Example code
+
+This example highlights the active link in a fixed navigation menu as the user scrolls through sections.
+
+```css
+
+/* MANDATORY: The container of markers must have scroll-target-group: auto */
+nav {
+ /* Enables automatic tracking of fragment links */
+ scroll-target-group: auto;
+}
+/* MANDATORY: Use :target-current to style the link whose target is in view. */
+nav a:target-current {
+ color: var(--accent, #007bff);
+ border-bottom-color: var(--accent, #007bff);
+}
+```
+
+```html
+<nav>
+ <a href="#intro">Introduction</a>
+ <a href="#features">Features</a>
+ <a href="#pricing">Pricing</a>
+</nav>
+
+<main>
+ <!-- MANDATORY: Each section must have a unique ID matching a link fragment in the <nav>. -->
+ <section id="intro">
+ <h2>Introduction</h2>
+ <!-- content -->
+ </section>
+ <section id="features">
+ <h2>Features</h2>
+ <!-- content -->
+ </section>
+ <section id="pricing">
+ <h2>Pricing</h2>
+ <!-- content -->
+ </section>
+</main>
+
+<script type="module">
+ if (CSS.supports('scroll-target-group: auto')) {
+ const syncAriaCurrent = () => {
+ const currentLink = document.querySelector('nav a:target-current');
+ document.querySelectorAll('nav a').forEach(link => {
+ link.setAttribute('aria-current', link === currentLink ? 'true' : 'false');
+ });
+ };
+ // Update the aria on initial page load. Ensure the DOM content is loaded, either by using `<script type="module">` or an event listener for `DOMContentLoaded`.
+ syncAriaCurrent();
+ // Update the aria after scroll ends
+ document.addEventListener('scrollend', syncAriaCurrent);
+ }
+</script>
+```
+
+## Best Practices
+
+- **DO** use `scroll-target-group: auto` on a dedicated container for navigation links: This ensures the browser knows which links should be tracked.
+- **DO** ensure targets have unique `id` attributes matching the links' `href` attributes.
+- **DO** provide enough vertical space for sections: `scroll-target-group` most clearly identifies the visible target when sections are large enough that only one or two are visible at a time.
+- **MANDATORY**: For accessibility, the visual state must be mirrored with `aria-current`. While `:target-current` handles the visual aspect, this is not exposed to screen readers.
+- **AVOID** relying solely on color for the active state: Include other visual cues like font weight, an underline, or an indicator dot, or ensure there is sufficient contrast between the colors to ensure the difference is accessible to users with color vision deficiencies.
+
+## Fallback strategies
+
+scroll-target-group has limited availability.
+Supported by: Chrome 140 (Sep 2025) and Edge 140 (Sep 2025).
+Unsupported in: Firefox and Safari.
+
+For browsers that do not support `scroll-target-group`, you should use a fallback based on the `IntersectionObserver` API.
+
+```html
+<script>
+ // Feature detection for scroll-target-group
+ const supportsScrollTargetGroup = CSS.supports('scroll-target-group: auto');
+
+ if (!supportsScrollTargetGroup) {
+ const navLinks = document.querySelectorAll('nav a');
+ const sections = document.querySelectorAll('main section');
+
+ const observer = new IntersectionObserver((entries) => {
+ entries.forEach(entry => {
+ if (entry.isIntersecting) {
+ const id = entry.target.getAttribute('id');
+ navLinks.forEach(link => {
+ const isActive = link.getAttribute('href') === `#${id}`;
+ // Use the escaped colon class for consistent styling
+ link.classList.toggle('\:target-current', isActive);
+ link.setAttribute('aria-current', isActive);
+ });
+ }
+ });
+ }, { rootMargin: '-50% 0px -50% 0px', threshold: 0 });
+
+ sections.forEach(section => observer.observe(section));
+ }
+</script>
+
+<style>
+ /* Fallback style if :target-current is not supported.
+ Use :is() to combine the native pseudo-class with a fallback class for older browsers. DO NOT use `nav a:target-current, nav a.\:target-current, as the unrecognized pseudoselector invalidates the entire rule in older browsers. */
+ nav a:is(:target-current, .\:target-current) {
+ color: var(--accent, #007bff);
+ border-bottom-color: var(--accent, #007bff);
+ font-weight: bold;
+ }
+</style>
+```
diff --git a/skills/modern-web-guidance/guides/ui-components/spinner.md b/skills/modern-web-guidance/guides/ui-components/spinner.md
new file mode 100644
index 0000000..438509e
--- /dev/null
+++ b/skills/modern-web-guidance/guides/ui-components/spinner.md
@@ -0,0 +1,169 @@
+# Loading spinner
+
+A loading spinner (or activity indicator) informs users that a process is underway when the exact duration is unknown. Unlike a progress ring, a spinner is "indeterminate" and typically uses animation to signal activity.
+
+This guide implements a spinner by:
+
+- Using the native `<progress>` element as the semantic foundation. By omitting the `value` attribute, the browser treats it as an indeterminate progress bar, ensuring correct announcement by assistive technologies.
+- Styling the component with `conic-gradient()` to create a visual "trail" and `background-clip: border-area` to hollow out the center into a ring.
+- Animating the spinner efficiently using CSS transforms and respecting `prefers-reduced-motion` to ensure a comfortable experience for all users.
+
+See `progress-ring` (via `npx -y modern-web-guidance@latest retrieve "progress-ring"`) for handling determinate tasks with a known duration.
+
+
+## Implementation
+
+### 1. Markup
+
+Use the native `<progress>` element as both the semantic source of truth and the visual component. Without a `value` attribute, it is implicitly indeterminate.
+
+```html
+<progress aria-label="Loading" class="loading-spinner"></progress>
+```
+
+### 2. Styles
+
+#### Hiding Native UI
+To style the `<progress>` element as a spinner, first hide the default browser styling for indeterminate progress bars.
+
+```css
+/* Hide native bars */
+progress.loading-spinner:indeterminate::-webkit-progress-bar {
+ display: none;
+ background: none;
+}
+progress.loading-spinner:indeterminate::-webkit-progress-value {
+ display: none;
+ background: none;
+}
+progress.loading-spinner:indeterminate::-moz-progress-bar {
+ display: none;
+ background: none;
+}
+progress.loading-spinner:indeterminate::slider-fill {
+ display: none;
+ background: none;
+}
+```
+
+#### Spinner Ring and Trail
+The spinner uses a `conic-gradient` to create a visual trail.
+
+```css
+@property --arc-start {
+ syntax: "<angle>";
+ inherits: false;
+ initial-value: 0deg;
+}
+@property --arc-end {
+ syntax: "<angle>";
+ inherits: false;
+ initial-value: 0deg;
+}
+/* Use a custom property to conditionally include the dash animation */
+@property --progress-dash-animation {
+ syntax: "*";
+ inherits: false;
+ initial-value: , progress-dash 3s ease-in-out infinite;
+}
+
+progress.loading-spinner:indeterminate {
+ --_from: calc(90deg + var(--arc-start, 0deg));
+ --_to: calc(90deg + var(--arc-end, 158deg));
+ --size: 40px;
+ --thickness: 2px;
+ --spinner-color: #3b82f6;
+ --track-color: #e2e5e7;
+ --spinner-duration: 1.5s;
+ --_used-spinner-duration: var(--spinner-duration);
+ --spinner-timing: linear;
+
+ position: relative;
+ width: var(--size);
+ height: var(--size);
+ border-radius: 50%;
+ appearance: none;
+
+ /* Create the fading trail with dynamic angles */
+ background: conic-gradient(
+ from var(--_from),
+ var(--spinner-color) calc(var(--_to) - var(--_from)),
+ transparent 0
+ )
+ var(--track-color);
+
+ @supports (background-clip: border-area) {
+ background-clip: border-area;
+ border: var(--thickness) solid transparent;
+ background-origin: border-box;
+ }
+
+ /* ... fallback for background-clip: border-area ... */
+
+ /* The dash animation is only included if @property is supported */
+ animation:
+ progress-spin var(--_used-spinner-duration) linear infinite
+ var(--progress-dash-animation, );
+
+ @keyframes progress-spin {
+ to {
+ rotate: 1turn;
+ }
+ }
+
+ @keyframes progress-dash {
+ from {
+ --arc-start: 0deg;
+ --arc-end: 3deg;
+ }
+ 50% {
+ --arc-start: 100deg;
+ --arc-end: 358deg;
+ }
+ to {
+ --arc-start: 360deg;
+ --arc-end: 363deg;
+ }
+ }
+}
+```
+
+#### Respecting Motion Preferences
+
+Users with motion sensitivities may find fast-spinning elements disorienting. Always respect the `prefers-reduced-motion` media query. Set the internal `--_used-spinner-duration` property to override the user's `--spinner-duration` value.
+
+```css
+@media (prefers-reduced-motion: reduce) {
+ .loading-spinner {
+ /* Slow down the animation significantly rather than stopping it entirely,
+ so the user still knows that the process is active. */
+ --_used-spinner-duration: 6s;
+ }
+}
+```
+
+## Fallback strategies
+
+Baseline status for Registered custom properties: Newly available. It's been Baseline since 2024-07-09.
+Supported by: Chrome 85 (Aug 2020), Edge 85 (Aug 2020), Firefox 128 (Jul 2024), and Safari 16.4 (Mar 2023).
+
+If `@property` is supported, the dash animation is automatically included via the `--progress-dash-animation` property's `initial-value`. In browsers without `@property` support, the property registration is ignored, and the animation falls back to a simple rotation. No JavaScript is required for this fallback.
+
+background-clip: border-area has limited availability.
+Supported by: Chrome 150, Edge 150, and Safari 18.2 (Dec 2024).
+Unsupported in: Firefox.
+
+For browsers that don't yet support `background-clip: border-area`, fall back to a `mask-image` to hollow out the center.
+
+```css
+/* Fallback: use mask-image to create the ring */
+@supports not (background-clip: border-area) {
+ --clip-boundary: calc(100% - var(--thickness));
+ mask-image: radial-gradient(
+ farthest-side,
+ transparent var(--clip-boundary),
+ black var(--clip-boundary)
+ );
+ border: 0;
+}
+```
\ No newline at end of file