Keep your coding agent up to date with the latest web best practices
Release v0.0.94
github-actions[bot]1a845f3441d2
diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.jsonindex e688d78..104f2cf 100644--- a/.claude-plugin/marketplace.json+++ b/.claude-plugin/marketplace.json@@ -8,7 +8,7 @@"name": "modern-web-guidance","source": "./","description": "Google Chrome's agent skills collection",- "version": "0.0.93"+ "version": "0.0.94"}]}diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.jsonindex 2cbbfb9..06a754c 100644--- a/.claude-plugin/plugin.json+++ b/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "modern-web-guidance","description": "Google Chrome's agent skills collection",- "version": "0.0.93",+ "version": "0.0.94","author": {"name": "Google Chrome"}diff --git a/README.md b/README.mdindex 8a7350e..3c9f97c 100644--- a/README.md+++ b/README.md@@ -2,7 +2,7 @@This curated collection of skills, tools, and AI-ready documentation injects Chrome's web platform knowledge directly into your workflow, ensuring your coding agent builds apps that are modern, fast, and secure by default.-#### Skill Coverage in `v0.0.93`+#### Skill Coverage in `v0.0.94`<details><summary><strong>83 web features with implementation guidance from Chrome's experts</strong>: `::backdrop`, `:autofill`, `:has()`, `:not()`, `:user-valid and :user-invalid`, `@starting-style`, `<details>`, `<dialog closedby>`, `<dialog>`, `<link rel="expect">`, `<link rel="preload">`, `AbortController and AbortSignal`, `accent-color`, `Active view transition`, `Anchor position container queries`, `Anchor positioning`, `blocking="render"`, `calc-size()`, `color-scheme`, `Container queries`, `Container scroll-state queries`, `content-visibility`, `Cross-document view transitions`, `Customizable <select>`, `Email, telephone, and URL <input> types`, `enterkeyhint`, `Event timing`, `Fetch`, `Fetch priority`, `fetchLater`, `field-sizing`, `font-size-adjust`, `Form-associated WebMCP attributes`, `hidden="until-found"`, `image-set()`, `Individual transform properties`, `inert`, `inputmode`, `Interest invokers`, `interpolate-size`, `Intersection observer`, `Intl.DurationFormat`, `Invoker commands`, `Language detector`, `light-dark()`, `linear() easing`, `Long animation frames`, `Masks`, `moveBefore()`, `Mutually exclusive <details> elements`, `Navigation API`, `navigator.modelContext`, `overlay`, `Page visibility`, `Page visibility state`, `Popover`, `popover="hint"`, `prefers-color-scheme media query`, `prefers-contrast media query`, `prefers-reduced-motion media query`, `Registered custom properties`, `Scheduler API`, `Scroll snap`, `Scroll-driven animations`, `scroll-initial-target`, `scrollbar-color`, `scrollbar-width`, `scrollend`, `scrollIntoView()`, `sibling-count() and sibling-index()`, `sin(), cos(), tan(), asin(), acos(), atan(), and atan2() (CSS)`, `Speculation rules`, `Summarizer`, `Temporal`, `text-box`, `text-wrap`, `text-wrap: balance`, `text-wrap: pretty`, `Top-level await`, `transition-behavior`, `Translator`, `View transitions`, `view-transition-class`</summary>@@ -31,7 +31,7 @@ This curated collection of skills, tools, and AI-ready documentation injects Chr- **[<dialog>](https://webstatus.dev/features/dialog), [Invoker commands](https://webstatus.dev/features/invoker-commands), [Popover](https://webstatus.dev/features/popover)**- **declarative-dialog-popover-control**: Toggle the visibility of a dialog or popover from a button without writing JavaScript.- **[AbortController and AbortSignal](https://webstatus.dev/features/aborting), [fetchLater](https://webstatus.dev/features/fetchlater)**- - **batch-analytics-events**: Debounce and batch multiple analytics events together in a single beacon to minimize network contention and reduce server load, while still delivering real-time updates.+ - **batch-analytics-events**: Debounce and batch multiple analytics events or Core Web Vitals together in a single beacon using the web-vitals library to minimize network contention and reduce server load, while still delivering real-time updates.- **full-session-analytics**: Reliably track analytics, errors, and telemetry data across the user's entire page visit, and defer sending of the data until the user leaves the page.- **[accent-color](https://webstatus.dev/features/accent-color)**- **brand-consistent-forms**: Match checkboxes, radio buttons, range sliders, and progress bars to your site's color palette without replacing them with custom components.@@ -114,7 +114,7 @@ This curated collection of skills, tools, and AI-ready documentation injects Chr- **[Intl.DurationFormat](https://webstatus.dev/features/intl-duration-format), [Temporal](https://webstatus.dev/features/temporal)**- **format-human-readable-durations**: Present elapsed time or durations to users in a readable, localized format, with the flexibility to display either detailed unit breakdowns (e.g., "1 hour and 30 minutes") or total unit counts (e.g., "90 minutes") depending on context.- **[Invoker commands](https://webstatus.dev/features/invoker-commands)**- - **declarative-button-actions**: Declaratively connect a button to any element to trigger custom, application-specific actions.+ - **declarative-button-actions**: Declaratively connect a button to any element to trigger custom, application-specific actions using declarative button commands, invoker commands, button commands, custom commands, or declarative toggle actions.- **[Language detector](https://webstatus.dev/features/languagedetector)**- **language-detection**: Detect the language of user-generated content or already present site content.- **[linear() easing](https://webstatus.dev/features/linear-easing)**diff --git a/gemini-extension.json b/gemini-extension.jsonindex 1711c5b..6bd1d91 100644--- a/gemini-extension.json+++ b/gemini-extension.json@@ -1,7 +1,7 @@{"name": "modern-web-guidance","description": "Google Chrome's web development agent skills.",- "version": "0.0.93",+ "version": "0.0.94","author": {"name": "Google Chrome"}diff --git a/package.json b/package.jsonindex 3d7306a..d49355a 100644--- a/package.json+++ b/package.json@@ -2,7 +2,7 @@"name": "modern-web-guidance","displayName": "Modern Web Guidance","description": "Curated collection of agent skills for modern web development.",- "version": "0.0.93",+ "version": "0.0.94","publisher": "GoogleChrome","engines": {"vscode": "^1.90.0",diff --git a/skills/modern-web/guides/user-experience/declarative-button-actions.md b/skills/modern-web/guides/user-experience/declarative-button-actions.mdindex b32eca7..df09f36 100644--- a/skills/modern-web/guides/user-experience/declarative-button-actions.md+++ b/skills/modern-web/guides/user-experience/declarative-button-actions.md@@ -32,14 +32,12 @@ For custom, application-specific actions, you can define your own command names.</button><script>- // Listen for the 'command' event globally (or on a stable parent)- document.addEventListener('command', (event) => {+ // Listen for the 'command' event directly on the target element+ // (This is necessary because the native 'command' event does not bubble)+ document.getElementById('action-target').addEventListener('command', (event) => {// Robustly handle both native API and manual/polyfill fallbacksconst command = event.command || event.detail?.command;- const target = event.target;-- // Only process commands for our specific target- if (target.id !== 'action-target') return;+ const target = event.currentTarget;// Custom commands are checked to identify the requested actionif (command === '--spin') {@@ -118,13 +116,13 @@ if (!supportsInvokers) {});}-// 3. The unified listener: Uses the registry to execute the requested action-document.addEventListener('command', (event) => {+// 3. The unified listener: Registered directly on the target element+document.getElementById('action-target').addEventListener('command', (event) => {const command = event.command || event.detail?.command;- const target = event.target;+ const target = event.currentTarget;const action = commandRegistry[command];- if (action && target.id === 'action-target') {+ if (action) {action(target);}});diff --git a/skills/modern-web/guides/user-experience/visually-stable-mixed-fonts.md b/skills/modern-web/guides/user-experience/visually-stable-mixed-fonts.mdindex 2271c40..1fa56ae 100644--- a/skills/modern-web/guides/user-experience/visually-stable-mixed-fonts.md+++ b/skills/modern-web/guides/user-experience/visually-stable-mixed-fonts.md@@ -5,8 +5,8 @@ The `font-size-adjust` property allows you to normalize the visual size of text### Implementation Steps1. **MANDATORY**: Apply `font-size-adjust` to elements where font consistency is critical, such as containers using web fonts or blocks with mixed font families.-2. Use the `from-font` keyword on the element to automatically match font size in nested elements to the proportions of the primary font on the element.-3. Use a specific aspect ratio value to match font size when switching between fonts.+2. **MANDATORY**: Use the `from-font` keyword on elements to automatically match font size in nested elements to the proportions of the primary font.+3. **MANDATORY**: Use a specific numeric aspect-ratio override value for `font-size-adjust` (e.g., `font-size-adjust: 0.5`) to normalize proportions independently when the font proportions to base on are from an independent theme.### Example: Normalizing x-height automatically@@ -42,9 +42,9 @@ When the font to adjust is not a child of the font to base the size on, specifyBaseline status for font-size-adjust: Newly available. It's been Baseline since 2024-07-25.-In browsers that do not support `font-size-adjust`, fonts will render at their natural `font-size` value. To mitigate this without support:+**MANDATORY**: In browsers that do not support `font-size-adjust`, fonts will render at their natural `font-size` value. You must provide a valid fallback strategy for non-supporting browsers using a `@supports` block to mitigate this:-- Use `@supports not (font-size-adjust: from-font)` to detect `font-size-adjust` support.+- Use `@supports not (font-size-adjust: from-font)` to detect `font-size-adjust` support and provide fallback styles (e.g. adjusted line-height or font-size).- Choose fonts with similar x-heights to your primary font.- Apply specific `font-size` and `line-height` overrides for alternate and nested font families.