Skip to content

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

Release v0.0.183

github-actions[bot]9e70fa4c808b
diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json
index 7a364e3..97e948a 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.179"
+ "version": "0.0.183"
}
]
}
diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json
index 47c632a..d76b4ee 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.179",
+ "version": "0.0.183",
"author": {
"name": "Google Chrome"
}
diff --git a/.cursor-plugin/plugin.json b/.cursor-plugin/plugin.json
index 59b2a2e..9c4d6e7 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.179",
+ "version": "0.0.183",
"author": {
"name": "Google Chrome"
}
diff --git a/.github/plugin/plugin.json b/.github/plugin/plugin.json
index 59b2a2e..9c4d6e7 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.179",
+ "version": "0.0.183",
"author": {
"name": "Google Chrome"
}
diff --git a/README.md b/README.md
index 2632a92..c8f69e2 100644
--- a/README.md
+++ b/README.md
@@ -140,7 +140,7 @@ _View an example:_ [the `navigation-drawer` guide](https://github.com/GoogleChro
</details>
<details>
-<summary><strong>130 real-world developer use cases</strong></summary>
+<summary><strong>131 real-world developer use cases</strong></summary>
<h3>accessibility</h3>
@@ -167,10 +167,7 @@ _View an example:_ [the `navigation-drawer` guide](https://github.com/GoogleChro
- **[reduce-style-repetition](https://github.com/GoogleChrome/modern-web-guidance/blob/main/skills/modern-web-guidance/guides/css/reduce-style-repetition.md)**: Reduce excessive style repetition by encapsulating complex or dynamic styling logic into reusable functions (such as a function that computes a gradient based on a set of input parameters).
- **[size-aware-styling](https://github.com/GoogleChrome/modern-web-guidance/blob/main/skills/modern-web-guidance/guides/css/size-aware-styling.md)**: Build a component whose styles can be conditionally dependent on its own width or height, rather than the width or height of the viewport. For example a card component that can change its layouts depending on how large it is, or a call-to-action button that can conditionally display helper text based on its width.
- **[style-parent-with-has](https://github.com/GoogleChrome/modern-web-guidance/blob/main/skills/modern-web-guidance/guides/css/style-parent-with-has.md)**: Style parent elements of a form field (e.g. labels or fieldsets) when the field is invalid.
-
-<h3>css-layout</h3>
-
-- **[usage-aware-component-variations](https://github.com/GoogleChrome/modern-web-guidance/blob/main/skills/modern-web-guidance/guides/css-layout/usage-aware-component-variations.md)**: Build components that adapt visual logic based on semantic context using CSS container style queries.
+- **[usage-aware-component-variations](https://github.com/GoogleChrome/modern-web-guidance/blob/main/skills/modern-web-guidance/guides/css/usage-aware-component-variations.md)**: Build components that adapt visual logic based on semantic context using CSS container style queries.
<h3>forms</h3>
@@ -250,6 +247,7 @@ _View an example:_ [the `navigation-drawer` guide](https://github.com/GoogleChro
- **[scroll-progress-indicator](https://github.com/GoogleChrome/modern-web-guidance/blob/main/skills/modern-web-guidance/guides/ui-atoms/scroll-progress-indicator.md)**: Create a scroll progress bar, stepped progress tracker, or any visual affordance that communicates how far through a page or section the user has scrolled.
- **[scrollability-affordance-hints](https://github.com/GoogleChrome/modern-web-guidance/blob/main/skills/modern-web-guidance/guides/ui-atoms/scrollability-affordance-hints.md)**: Build scroll-shadow overlays, gradient fades, or directional arrow indicators that appear only when there's actually more content to scroll to in that direction.
- **[shrinking-header-on-scroll](https://github.com/GoogleChrome/modern-web-guidance/blob/main/skills/modern-web-guidance/guides/ui-atoms/shrinking-header-on-scroll.md)**: Smoothly animate a fixed header or full-page cover on scroll to dynamically shrink, gain shadows, and transform its layout over a predefined scroll distance.
+- **[state-aware-sticky-headers](https://github.com/GoogleChrome/modern-web-guidance/blob/main/skills/modern-web-guidance/guides/ui-atoms/state-aware-sticky-headers.md)**: Build sticky section headers or navbars that visually transform when they're actually "stuck" at the top, changing their color scheme or gaining a shadow.
<h3>ui-behaviors</h3>
@@ -387,6 +385,14 @@ grok plugin install https://github.com/GoogleChrome/modern-web-guidance --trust
```
</details>
+<details>
+<summary><b>Kimi Code</b></summary>
+
+```shell
+/plugins install https://github.com/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`.
@@ -421,16 +427,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) |
| :--- | :--- | :---: | :---: |
-| Jul 6 | codex_cli (gpt-5.5) | 129 / 1071 | 57% → 84% (**+27pp**) |
-| Jul 6 | claude_code (sonnet-5) | 129 / 1071 | 52% → 87% (**+35pp**) |
-| Jul 6 | antigravity | 129 / 1071 | 54% → 87% (**+33pp**) |
-| Jul 3 | codex_cli (gpt-5.5) | 129 / 1071 | 52% → 78% (**+26pp**) |
-| Jul 3 | claude_code (sonnet-5) | 129 / 1071 | 48% → 82% (**+34pp**) |
-| Jul 1 | claude_code (sonnet-5) | 129 / 1071 | 49% → 84% (**+35pp**) |
-| Jul 1 | antigravity | 129 / 1071 | 53% → 83% (**+30pp**) |
-| Jun 29 | codex_cli (gpt-5.5) | 129 / 1071 | 51% → 78% (**+27pp**) |
-| Jun 29 | claude_code (opus-4-8) | 129 / 1071 | 53% → 88% (**+35pp**) |
-| Jun 29 | antigravity | 129 / 1071 | 50% → 78% (**+28pp**) |
+| Aug 7 | codex_cli (gpt-5.5) | 130 / 1112 | 56% → 83% (**+27pp**) |
+| Aug 7 | claude_code (sonnet-5) | 130 / 1112 | 55% → 87% (**+32pp**) |
+| Aug 7 | antigravity (gemini-3.6-flash) | 130 / 1112 | 57% → 88% (**+31pp**) |
+| Aug 6 | antigravity (gemini-3.6-flash) | 130 / 1112 | 57% → 88% (**+31pp**) |
+| Aug 6 | claude_code (sonnet-5) | 130 / 1080 | 56% → 86% (**+30pp**) |
+| Aug 6 | codex_cli (gpt-5.5) | 130 / 1112 | 54% → 84% (**+30pp**) |
+| Aug 3 | codex_cli (gpt-5.5) | 129 / 1104 | 55% → 82% (**+27pp**) |
+| Aug 3 | claude_code (sonnet-5) | 129 / 1104 | 54% → 88% (**+34pp**) |
+| Aug 3 | antigravity | 129 / 1104 | 55% → 89% (**+34pp**) |
+| Jul 31 | codex_cli (gpt-5.5) | 129 / 1104 | 57% → 85% (**+28pp**) |
<!-- INJECT_EVAL_RESULTS_END -->
@@ -447,7 +453,7 @@ npx modern-web-guidance@latest install --choose
## <img src="https://github.com/GoogleChrome/modern-web-guidance/raw/main/.github/img/lock.svg" width="24" height="24" style="vertical-align: middle; margin-right: 4px;"> Telemetry & Privacy
-Google collects anonymous usage statistics (such as search queries, guide retrievals, and installation) to improve the reliability, relevance, and performance of the tool. You can inspect what is collected in [modern-web.ts](https://github.com/GoogleChrome/modern-web-guidance-src/blob/main/serving/bin/modern-web.ts).
+Google collects anonymous usage information to improve the tool's reliability, relevance, and performance. Collected information includes installation counts, guide retrieval IDs, and CLI tool search queries generated by the agent (e.g. "dark mode scrollbar color-scheme"). Raw user prompts are not collected. You can inspect what is collected in [modern-web.ts](https://github.com/GoogleChrome/modern-web-guidance-src/blob/main/serving/bin/modern-web.ts).
> [!TIP]
> **To Opt-Out:** set the `DISABLE_TELEMETRY=1` env variable in your shell profile (e.g., `.bashrc` or `.zshrc`):
diff --git a/gemini-extension.json b/gemini-extension.json
index 47c632a..d76b4ee 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.179",
+ "version": "0.0.183",
"author": {
"name": "Google Chrome"
}
diff --git a/kimi.plugin.json b/kimi.plugin.json
new file mode 100644
index 0000000..d40d6c8
--- /dev/null
+++ b/kimi.plugin.json
@@ -0,0 +1,13 @@
+{
+ "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.183",
+ "author": {
+ "name": "Google Chrome"
+ },
+ "license": "Apache-2.0",
+ "skills": [
+ "./skills/modern-web-guidance/",
+ "./skills/chrome-extensions/"
+ ]
+}
diff --git a/package.json b/package.json
index 6888c36..7874b8e 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.179",
+ "version": "0.0.183",
"publisher": "GoogleChrome",
"repository": {
"url": "https://github.com/GoogleChrome/modern-web-guidance-src"
diff --git a/skills/chrome-extensions/SKILL.md b/skills/chrome-extensions/SKILL.md
index a0a74a6..91a915c 100644
--- a/skills/chrome-extensions/SKILL.md
+++ b/skills/chrome-extensions/SKILL.md
@@ -81,14 +81,8 @@ See `references/extensions/csp-sandbox.md` for full details.
#### 4. `tab.url` requires the `tabs` permission
-Without it, `tab.url` silently returns `undefined` — no error thrown.
-
-```js
-// manifest.json — REQUIRED if you read tab.url or tab.title anywhere:
-{ "permissions": ["tabs"] }
-```
-
-See `references/extensions/tab-management.md`.
+Without it, `tab.url` silently returns `undefined` — no error thrown. See
+`references/extensions/permissions.md`.
#### 5. Always use async/await — never `.then()` chains
@@ -196,27 +190,10 @@ await chrome.action.setBadgeText({ text: '5' });
#### 12. `activeTab` only works on direct user gestures — not from side panels
-`activeTab` grants temporary access to the current tab ONLY when triggered by:
-- Clicking the extension action icon
-- A context menu item (including the `"tab"` context)
-- A keyboard shortcut from the `commands` API
-- Accepting an omnibox suggestion
-
-It does **NOT** grant access when clicking a button in a side panel, popup button that opens later,
-or any programmatic trigger.
-
-```js
-// ❌ BROKEN — activeTab does NOT work from a side panel button click
-document.getElementById('summarize').addEventListener('click', async () => {
- const [tab] = await chrome.tabs.query({ active: true, currentWindow: true });
- await chrome.scripting.executeScript({ target: { tabId: tab.id }, func: () => document.body.innerText });
-});
-
-// ✅ FIX — use "tabs" permission + specific host_permissions instead
-// manifest.json: { "permissions": ["tabs", "scripting"], "host_permissions": ["<all_urls>"] }
-```
-
-See `references/extensions/side-panel.md`.
+`activeTab` grants temporary access to the current tab ONLY on a direct user gesture (action
+icon click, context menu item, keyboard shortcut, omnibox suggestion) — NOT from a button click
+inside a side panel or popup. Use `tabs` + `host_permissions` instead. See
+`references/extensions/permissions.md` and `references/extensions/side-panel.md`.
#### 13. DevTools panel URLs are relative to the extension root
@@ -379,6 +356,15 @@ const all = await chrome.windows.getAll({ populate: true });
**`chrome.windows` methods:** `getAll`, `getLastFocused`, `getCurrent`, `get(windowId)`, `create`, `update`, `remove`. See `references/extensions/tab-management.md`.
+#### 20. `chrome.permissions.request()` in the service worker must be called with no `await` before it in the message listener
+
+A user gesture from a UI context (side panel, popup) does propagate across `chrome.runtime.sendMessage`
+to the service worker's `onMessage` listener — but only for that one synchronous turn. If the
+listener does an `await` (even a short delay) before calling `chrome.permissions.request()`, the
+gesture is gone and the call throws `"This function must be called during a user gesture"`. Call
+it as the first thing in the listener, with nothing awaited before it — see
+`references/extensions/permissions.md`.
+
### Always Manifest V3
Never generate Manifest V2 code.
@@ -485,6 +471,7 @@ For detailed API patterns and publishing guidance, read the relevant file BEFORE
| Topic | Reference |
|-------|-----------|
+| Permissions | `references/extensions/permissions.md` |
| Side panels | `references/extensions/side-panel.md` |
| Content scripts & DOM | `references/extensions/content-scripts.md` |
| Popups | `references/extensions/popup-ui.md` |
@@ -530,6 +517,7 @@ Verify EVERY item before delivering:
- [ ] Tab/desktop capture uses state locking to prevent double-start errors
- [ ] `chrome.desktopCapture.chooseDesktopMedia` passes `targetTab` with `tabs` permission
- [ ] `chrome.windows` calls use `getAll`/`getLastFocused`/`getCurrent` — NOT `.query()` (it doesn't exist)
+- [ ] `chrome.permissions.request()` in a service worker `onMessage` listener is called with no `await` before it (gesture is lost after the first async gap)
- [ ] `chrome.userScripts` availability checked before use (API throws if user hasn't enabled it)
- [ ] User script configs persisted in `chrome.storage` and restored on `runtime.onInstalled` `"update"` reason
- [ ] `configureWorld({ messaging: true })` called before user scripts send messages; listening on `onUserScriptMessage` not `onMessage`
diff --git a/skills/chrome-extensions/references/extensions/permissions.md b/skills/chrome-extensions/references/extensions/permissions.md
new file mode 100644
index 0000000..c104bef
--- /dev/null
+++ b/skills/chrome-extensions/references/extensions/permissions.md
@@ -0,0 +1,113 @@
+# Permissions
+
+## `permissions` vs `host_permissions`
+
+These are separate manifest keys — don't conflate them:
+
+```json
+{
+ "permissions": ["tabs", "scripting", "storage"],
+ "host_permissions": ["https://api.example.com/*"]
+}
+```
+
+- `permissions` grants access to chrome.* APIs (`tabs`, `storage`, `scripting`, `desktopCapture`, etc.)
+- `host_permissions` grants access to specific origins for `fetch`, `chrome.scripting.executeScript`, and reading tab URLs cross-origin
+
+Scope `host_permissions` to specific domains rather than `<all_urls>` unless the extension genuinely needs to run on every site — broad host permissions draw extra Chrome Web Store review scrutiny.
+
+## `tab.url` requires the `tabs` permission
+
+Without it, `tab.url` and `tab.title` silently return `undefined` — no error thrown.
+
+```js
+// manifest.json — REQUIRED if you read tab.url or tab.title anywhere:
+{ "permissions": ["tabs"] }
+```
+
+See `references/extensions/tab-management.md` for the full tabs/windows API.
+
+## `activeTab` only works on direct user gestures — not from side panels
+
+`activeTab` grants temporary access to the current tab ONLY when triggered by:
+- Clicking the extension action icon
+- A context menu item (including the `"tab"` context)
+- A keyboard shortcut from the `commands` API
+- Accepting an omnibox suggestion
+
+It does **NOT** grant access when clicking a button in a side panel, a popup button that opens
+later, or any programmatic trigger.
+
+```js
+// ❌ BROKEN — activeTab does NOT work from a side panel button click
+document.getElementById('summarize').addEventListener('click', async () => {
+ const [tab] = await chrome.tabs.query({ active: true, currentWindow: true });
+ await chrome.scripting.executeScript({ target: { tabId: tab.id }, func: () => document.body.innerText });
+});
+
+// ✅ FIX — use "tabs" permission + specific host_permissions instead
+// manifest.json: { "permissions": ["tabs", "scripting"], "host_permissions": ["<all_urls>"] }
+```
+
+See `references/extensions/side-panel.md` for the side-panel-specific writeup.
+
+## `chrome.permissions.request()` needs a user gesture — the gesture survives one `sendMessage` hop, but not an `await` after that
+
+`chrome.permissions.request()` (for optional/dynamic permissions) only works within a user
+gesture (a click, keypress, etc.). A gesture from a UI context (side panel, popup) **does**
+propagate across `chrome.runtime.sendMessage` to the service worker's `onMessage` listener — but
+it's only good for that one synchronous turn. If the listener `await`s anything (a timer, a
+storage read, another message round-trip) before calling `chrome.permissions.request()`, the
+gesture is gone and the call throws `"This function must be called during a user gesture, such
+as an onclick handler"`.
+
+```js
+// side-panel.js
+button.addEventListener('click', () => {
+ chrome.runtime.sendMessage({ type: 'REQUEST_PERMISSION' }, (granted) => { ... });
+});
+
+// service-worker.js
+
+// ❌ BROKEN — an await before chrome.permissions.request() burns the gesture window
+chrome.runtime.onMessage.addListener((msg, sender, sendResponse) => {
+ if (msg.type === 'REQUEST_PERMISSION') {
+ (async () => {
+ await chrome.storage.local.get('someSetting'); // gesture is gone after this
+ const granted = await chrome.permissions.request({ permissions: ['downloads'] });
+ sendResponse(granted);
+ })();
+ return true;
+ }
+});
+
+// ✅ CORRECT — call chrome.permissions.request() as the first thing in the listener,
+// nothing awaited before it
+chrome.runtime.onMessage.addListener((msg, sender, sendResponse) => {
+ if (msg.type === 'REQUEST_PERMISSION') {
+ chrome.permissions.request({ permissions: ['downloads'] }).then(sendResponse);
+ return true; // fine to await the *result* — the call itself already happened synchronously
+ }
+});
+```
+
+**Rule of thumb:** call `chrome.permissions.request()` (or anything else gated on a user
+gesture, like `activeTab`) as the very first statement of the message listener that receives the
+click-triggered message — before any other `await`. Awaiting the *returned* promise afterward is
+fine; awaiting anything *before* the call is what breaks it.
+
+## Checking and removing permissions
+
+```js
+// Check whether an optional permission is currently granted
+const hasIt = await chrome.permissions.contains({ permissions: ['downloads'] });
+
+// Remove a previously granted optional permission
+await chrome.permissions.remove({ permissions: ['downloads'] });
+```
+
+Declare optional permissions in the manifest so they're eligible to be requested at runtime:
+
+```json
+{ "optional_permissions": ["downloads"] }
+```
diff --git a/skills/modern-web-guidance/guides/built-in-ai/language-model.md b/skills/modern-web-guidance/guides/built-in-ai/language-model.md
index bd1e914..2c10c87 100644
--- a/skills/modern-web-guidance/guides/built-in-ai/language-model.md
+++ b/skills/modern-web-guidance/guides/built-in-ai/language-model.md
@@ -167,6 +167,183 @@ const character = await session.prompt([
By combining structured outputs with robust session management, developers can build complex, stateful AI applications that run entirely on the user's device.
+### Dos and Don'ts
+
+For the full detailed list of dos and don'ts, see https://developer.chrome.com/docs/ai/built-in-ai-dos-donts.md.txt. Below is the gist:
+
+#### Prepare the model at a reasonable time
+
+*Applies to: all APIs, for example, Summarizer, Translator, and Writer.*
+
+**Do:** Initialize the session as soon as you've clearly established the user's intention to use the AI feature, for example, when a user navigates into a relevant AI tools surface, hovers over an AI workspace, or interacts with the feature's surrounding UI. Pre-warming the session allows the model to load into memory quietly in the background while the user is setting up their task, eliminating avoidable cold-start latency.
+Try to be one step ahead by starting the next most likely AI task as soon as you start rendering the current result, for example, if the feature is designed for iterative use.
+
+**Don't:** Unless necessary, don't wait for the user to click "Generate" to initialize the session. This leads to a cold start delay, because the model must first load into memory and prepare its execution pipeline.
+
+> [!CAUTION]
+> **Caution:** For the Prompt API, wait until you have the `initialPrompts` ready before calling `create()`, because these can only be set during session creation.
+
+#### Set initial prompts during creation
+
+*Applies to: Prompt API.*
+
+**Do:** Provide system instructions during session initialization to improve the
+speed of the first prompt.
+
+**Don't:** Start with an empty session and send system instructions as part of
+the first `prompt()` call. This increases latency because it forces the model to
+process those instructions at the last moment.
+
+#### Clone sessions for repetitive tasks
+
+*Applies to: Prompt API.*
+
+For the Prompt API, each session [tracks the context of the
+conversation](https://developer.chrome.com/docs/ai/prompt-api?content_ref=each+session+keeps+track+of+the+context+of+the+conversation+previous+interactions+are+taken+into+account+for+future+interactions+until+the+session+s+context+window+is+full),
+taking all previous interactions into account. Because a clone inherits
+everything from its parent session, including initial prompts and all
+interaction history up to the point of cloning, structure your usage to inherit
+only what you need.
+
+**Do:**
+
+- Create a base session: To handle unrelated tasks efficiently, create a base session that contains only your system instructions and no previous conversational context.
+- Clone the baseline: Use `clone()` on that base session for new tasks to save the overhead of re-parsing system instructions. This lets you create parallel conversations or reset a task to its baseline.
+
+**Don't:**
+
+- Don't reuse the same session for unrelated tasks, and avoid cloning any session that already contains unnecessary interaction history. Both patterns can cause unrelated previous context to interfere with your current task.
+- Don't repeatedly call `create()` with identical system instructions. Use the cloning pattern instead to optimize performance.
+
+#### Destroy unused sessions
+
+*Applies to: All APIs.*
+
+**Do:** Explicitly call [`destroy()`](https://developer.chrome.com/docs/ai/prompt-api#terminate_a_session) on
+sessions that you no longer need, to free up memory when a feature
+is no longer in use. If you use a cloning pattern, keep the base session and
+destroy the clones you no longer need.
+
+**Don't:** Keep multiple large sessions active. Each session consumes memory,
+which creates unnecessary resource usage and might become a problem. Sessions
+will be naturally cleaned up by the garbage collector, but calling `destroy()`
+frees up memory more quickly.
+
+#### Render streaming responses safely and efficiently
+
+*Applies to: All APIs with streaming support (Prompt, Summarizer, Writer,
+Rewriter, and Translator).*
+
+**Do:** Treat all LLM output as untrusted content. Sanitize the full combined
+output, not just chunks, because malicious code could be split across updates.
+Before rendering, use the [Sanitizer
+API](https://developer.mozilla.org/docs/Web/API/HTML_Sanitizer_API) where
+supported. To avoid a decrease in performance, use a streaming Markdown parser
+like [streaming-markdown](https://github.com/thetarnav/streaming-markdown).
+
+**Don't:** Directly set `innerHTML` on every chunk update. This is slow,
+especially with complex formatting like syntax highlighting, and vulnerable to
+injection.
+
+#### Optimize input for speed
+
+*Applies to: All APIs.*
+
+**Do:** Only pass to the model what's strictly needed. Strip everything that's
+irrelevant to the task at hand. For large datasets, provide a short overview and
+a small selection of relevant items.
+
+**Don't:** Send raw unprocessed text, unnecessary metadata, HTML tags, or large
+unfiltered lists to the APIs. Latency grows significantly with input size, which
+can make the AI feature seem broken on many devices.
+
+#### Use structured output for predictable results
+
+*Applies to: Prompt API.*
+
+**Do:** When you need the model to return data in a specific format, use
+[structured
+output](https://developer.chrome.com/docs/ai/structured-output-for-prompt-api?content_ref=he+prompt+api+lets+you+specify+a+json+output+format+of+the+model+s+response+by+passing+a+json+schema+to+the+languagemodel+prompt+and+languagemodel+promptstreaming+methods)
+by providing a `responseConstraint` field to provide a JSON Schema. This ensures
+the output is predictable and prevents you from needing complex post-processing
+or manual parsing.
+
+**Don't:** Rely on natural language instructions (like "output only JSON")
+alone. Models might include conversational filler that breaks your parser.
+
+#### Decouple generation from length constraints
+
+*Applies to: Prompt API, as it's the only API that supports [structured output
+schemas](https://developer.chrome.com/docs/ai/structured-output-for-prompt-api).*
+
+**Do:** Let the model generate its response naturally, and then use client-side
+logic to truncate the text to fit your UI.
+
+**Don't:** Enforce strict character limits like `maxLength: 125` using
+[structured output schemas](https://developer.chrome.com/docs/ai/structured-output-for-prompt-api). When a
+model's response is longer than the limit you set, the model might switch to
+high-density tokens like foreign languages or emoji to compress meaning,
+resulting in nonsensical output.
+
+#### Keep the user informed
+
+*Applies to: All APIs.*
+
+**Do:** Depending on the complexity and expected duration of the task, use animations, visual cues, and progress indicators to keep the user informed. The
+optimal approach depends on your use case and the expected length of the API
+output. Some ideas:
+
+- Streaming for long content: For summaries or chat, streaming creates a per-token typewriter effect by default. This can feel natural and provide immediate feedback.
+- Non-streaming for short tasks (or long async tasks): For short outputs, for example, alt-text, non-streaming can create a more polished UI. It also provides time to speculatively prepare the next AI task while the current one renders. This approach also works for longer asynchronous or background tasks. If the user is not blocked on the output to continue their journey, there is no urgent need to produce the output as it happens. Signal that the process is ongoing in the UI.
+- Visual transitions for updates: When translating or rewriting text, use animations, for example, word-morphing.
+
+**Don't:** Update the UI without visual cues.
+
+#### Align with the user's mental model of time and work
+
+*Applies to: All APIs.*
+
+**Do:** Consider an artificial delay of one or two seconds if a response is
+nearly instant. Paradoxically, users might find results more trustworthy when
+they perceive a generation process that aligns with their perceived difficulty
+of the task. Use animations to signal that an AI process has occurred.
+
+**Don't:** Surprise users with instant UI replacements.
+
+#### Allow users to quickly navigate and undo AI edits
+
+*Applies to: All APIs.*
+
+**Do:** Equip your UI with a stepper or navigation history that lets users
+explore different results confidently, and let them quickly undo AI edits. This
+ensures that different versions are still readily available.
+
+**Don't:** Overwrite the user's previous draft, or an AI result they might have
+liked without a way to go back, revert, or compare versions.
+
+#### Empower user control and overrides
+
+*Applies to: All APIs.*
+
+**Do:** Make the user the final editor of all generated content. Provide intuitive overrides so the user maintains full ownership for the final output. The APIs may produce incorrect results.
+
+**Don't:** Force an AI-generated result as the only option.
+
+#### Cache results for repeated tasks
+
+*Applies to: All APIs.*
+
+**Do:** Implement a local result cache (for example, using `sessionStorage` or
+`IndexedDB`) for repeated inputs or queries. Normalize the input by trimming
+whitespace and lowercasing to increase cache hits. For heavy inputs, for
+example, images, generate a hash to use as a cache key. Set a conservative
+time to live (TTL) for your cache (or serve cached results while updating them
+in the background). Let the user trigger a fresh inference if the result is
+unsatisfying.
+
+**Don't:** Re-run the same inference for a repeated search query or identical data input where variability isn't desirable, for example when a user navigates back and forth between search results.
+This optimizes responsiveness and efficient use of local compute.
+
## 6. Fallback strategies
LanguageModel has limited availability.
diff --git a/skills/modern-web-guidance/guides/built-in-ai/prompt-api.md b/skills/modern-web-guidance/guides/built-in-ai/prompt-api.md
index bd1e914..2c10c87 100644
--- a/skills/modern-web-guidance/guides/built-in-ai/prompt-api.md
+++ b/skills/modern-web-guidance/guides/built-in-ai/prompt-api.md
@@ -167,6 +167,183 @@ const character = await session.prompt([
By combining structured outputs with robust session management, developers can build complex, stateful AI applications that run entirely on the user's device.
+### Dos and Don'ts
+
+For the full detailed list of dos and don'ts, see https://developer.chrome.com/docs/ai/built-in-ai-dos-donts.md.txt. Below is the gist:
+
+#### Prepare the model at a reasonable time
+
+*Applies to: all APIs, for example, Summarizer, Translator, and Writer.*
+
+**Do:** Initialize the session as soon as you've clearly established the user's intention to use the AI feature, for example, when a user navigates into a relevant AI tools surface, hovers over an AI workspace, or interacts with the feature's surrounding UI. Pre-warming the session allows the model to load into memory quietly in the background while the user is setting up their task, eliminating avoidable cold-start latency.
+Try to be one step ahead by starting the next most likely AI task as soon as you start rendering the current result, for example, if the feature is designed for iterative use.
+
+**Don't:** Unless necessary, don't wait for the user to click "Generate" to initialize the session. This leads to a cold start delay, because the model must first load into memory and prepare its execution pipeline.
+
+> [!CAUTION]
+> **Caution:** For the Prompt API, wait until you have the `initialPrompts` ready before calling `create()`, because these can only be set during session creation.
+
+#### Set initial prompts during creation
+
+*Applies to: Prompt API.*
+
+**Do:** Provide system instructions during session initialization to improve the
+speed of the first prompt.
+
+**Don't:** Start with an empty session and send system instructions as part of
+the first `prompt()` call. This increases latency because it forces the model to
+process those instructions at the last moment.
+
+#### Clone sessions for repetitive tasks
+
+*Applies to: Prompt API.*
+
+For the Prompt API, each session [tracks the context of the
+conversation](https://developer.chrome.com/docs/ai/prompt-api?content_ref=each+session+keeps+track+of+the+context+of+the+conversation+previous+interactions+are+taken+into+account+for+future+interactions+until+the+session+s+context+window+is+full),
+taking all previous interactions into account. Because a clone inherits
+everything from its parent session, including initial prompts and all
+interaction history up to the point of cloning, structure your usage to inherit
+only what you need.
+
+**Do:**
+
+- Create a base session: To handle unrelated tasks efficiently, create a base session that contains only your system instructions and no previous conversational context.
+- Clone the baseline: Use `clone()` on that base session for new tasks to save the overhead of re-parsing system instructions. This lets you create parallel conversations or reset a task to its baseline.
+
+**Don't:**
+
+- Don't reuse the same session for unrelated tasks, and avoid cloning any session that already contains unnecessary interaction history. Both patterns can cause unrelated previous context to interfere with your current task.
+- Don't repeatedly call `create()` with identical system instructions. Use the cloning pattern instead to optimize performance.
+
+#### Destroy unused sessions
+
+*Applies to: All APIs.*
+
+**Do:** Explicitly call [`destroy()`](https://developer.chrome.com/docs/ai/prompt-api#terminate_a_session) on
+sessions that you no longer need, to free up memory when a feature
+is no longer in use. If you use a cloning pattern, keep the base session and
+destroy the clones you no longer need.
+
+**Don't:** Keep multiple large sessions active. Each session consumes memory,
+which creates unnecessary resource usage and might become a problem. Sessions
+will be naturally cleaned up by the garbage collector, but calling `destroy()`
+frees up memory more quickly.
+
+#### Render streaming responses safely and efficiently
+
+*Applies to: All APIs with streaming support (Prompt, Summarizer, Writer,
+Rewriter, and Translator).*
+
+**Do:** Treat all LLM output as untrusted content. Sanitize the full combined
+output, not just chunks, because malicious code could be split across updates.
+Before rendering, use the [Sanitizer
+API](https://developer.mozilla.org/docs/Web/API/HTML_Sanitizer_API) where
+supported. To avoid a decrease in performance, use a streaming Markdown parser
+like [streaming-markdown](https://github.com/thetarnav/streaming-markdown).
+
+**Don't:** Directly set `innerHTML` on every chunk update. This is slow,
+especially with complex formatting like syntax highlighting, and vulnerable to
+injection.
+
+#### Optimize input for speed
+
+*Applies to: All APIs.*
+
+**Do:** Only pass to the model what's strictly needed. Strip everything that's
+irrelevant to the task at hand. For large datasets, provide a short overview and
+a small selection of relevant items.
+
+**Don't:** Send raw unprocessed text, unnecessary metadata, HTML tags, or large
+unfiltered lists to the APIs. Latency grows significantly with input size, which
+can make the AI feature seem broken on many devices.
+
+#### Use structured output for predictable results
+
+*Applies to: Prompt API.*
+
+**Do:** When you need the model to return data in a specific format, use
+[structured
+output](https://developer.chrome.com/docs/ai/structured-output-for-prompt-api?content_ref=he+prompt+api+lets+you+specify+a+json+output+format+of+the+model+s+response+by+passing+a+json+schema+to+the+languagemodel+prompt+and+languagemodel+promptstreaming+methods)
+by providing a `responseConstraint` field to provide a JSON Schema. This ensures
+the output is predictable and prevents you from needing complex post-processing
+or manual parsing.
+
+**Don't:** Rely on natural language instructions (like "output only JSON")
+alone. Models might include conversational filler that breaks your parser.
+
+#### Decouple generation from length constraints
+
+*Applies to: Prompt API, as it's the only API that supports [structured output
+schemas](https://developer.chrome.com/docs/ai/structured-output-for-prompt-api).*
+
+**Do:** Let the model generate its response naturally, and then use client-side
+logic to truncate the text to fit your UI.
+
+**Don't:** Enforce strict character limits like `maxLength: 125` using
+[structured output schemas](https://developer.chrome.com/docs/ai/structured-output-for-prompt-api). When a
+model's response is longer than the limit you set, the model might switch to
+high-density tokens like foreign languages or emoji to compress meaning,
+resulting in nonsensical output.
+
+#### Keep the user informed
+
+*Applies to: All APIs.*
+
+**Do:** Depending on the complexity and expected duration of the task, use animations, visual cues, and progress indicators to keep the user informed. The
+optimal approach depends on your use case and the expected length of the API
+output. Some ideas:
+
+- Streaming for long content: For summaries or chat, streaming creates a per-token typewriter effect by default. This can feel natural and provide immediate feedback.
+- Non-streaming for short tasks (or long async tasks): For short outputs, for example, alt-text, non-streaming can create a more polished UI. It also provides time to speculatively prepare the next AI task while the current one renders. This approach also works for longer asynchronous or background tasks. If the user is not blocked on the output to continue their journey, there is no urgent need to produce the output as it happens. Signal that the process is ongoing in the UI.
+- Visual transitions for updates: When translating or rewriting text, use animations, for example, word-morphing.
+
+**Don't:** Update the UI without visual cues.
+
+#### Align with the user's mental model of time and work
+
+*Applies to: All APIs.*
+
+**Do:** Consider an artificial delay of one or two seconds if a response is
+nearly instant. Paradoxically, users might find results more trustworthy when
+they perceive a generation process that aligns with their perceived difficulty
+of the task. Use animations to signal that an AI process has occurred.
+
+**Don't:** Surprise users with instant UI replacements.
+
+#### Allow users to quickly navigate and undo AI edits
+
+*Applies to: All APIs.*
+
+**Do:** Equip your UI with a stepper or navigation history that lets users
+explore different results confidently, and let them quickly undo AI edits. This
+ensures that different versions are still readily available.
+
+**Don't:** Overwrite the user's previous draft, or an AI result they might have
+liked without a way to go back, revert, or compare versions.
+
+#### Empower user control and overrides
+
+*Applies to: All APIs.*
+
+**Do:** Make the user the final editor of all generated content. Provide intuitive overrides so the user maintains full ownership for the final output. The APIs may produce incorrect results.
+
+**Don't:** Force an AI-generated result as the only option.
+
+#### Cache results for repeated tasks
+
+*Applies to: All APIs.*
+
+**Do:** Implement a local result cache (for example, using `sessionStorage` or
+`IndexedDB`) for repeated inputs or queries. Normalize the input by trimming
+whitespace and lowercasing to increase cache hits. For heavy inputs, for
+example, images, generate a hash to use as a cache key. Set a conservative
+time to live (TTL) for your cache (or serve cached results while updating them
+in the background). Let the user trigger a fresh inference if the result is
+unsatisfying.
+
+**Don't:** Re-run the same inference for a repeated search query or identical data input where variability isn't desirable, for example when a user navigates back and forth between search results.
+This optimizes responsiveness and efficient use of local compute.
+
## 6. Fallback strategies
LanguageModel has limited availability.
diff --git a/skills/modern-web-guidance/guides/css/child-state-based-styling.md b/skills/modern-web-guidance/guides/css/child-state-based-styling.md
index b6ebdb6..645ac0c 100644
--- a/skills/modern-web-guidance/guides/css/child-state-based-styling.md
+++ b/skills/modern-web-guidance/guides/css/child-state-based-styling.md
@@ -64,7 +64,7 @@ To build a component that changes its styling based on a child's state:
### Fallback strategies
-Baseline status for :has(): Newly available. It's been Baseline since 2023-12-19.
+Baseline status for :has(): Widely available. It's been Baseline since 2023-12-19.
Supported by: Chrome 105 (Sep 2022), Edge 105 (Sep 2022), Firefox 121 (Dec 2023), and Safari 15.4 (Mar 2022).
If the state-based styling is critical to the user experience or page layout, you must provide a fallback for browsers that do not support the `:has()` selector. For purely decorative effects, `:has()` can be used as a progressive enhancement without a fallback.
diff --git a/skills/modern-web-guidance/guides/css/content-based-styling.md b/skills/modern-web-guidance/guides/css/content-based-styling.md
index 7bc561d..4454cca 100644
--- a/skills/modern-web-guidance/guides/css/content-based-styling.md
+++ b/skills/modern-web-guidance/guides/css/content-based-styling.md
@@ -74,7 +74,7 @@ To build a component that changes its layout based on its content:
### Fallback strategies
-Baseline status for :has(): Newly available. It's been Baseline since 2023-12-19.
+Baseline status for :has(): Widely available. It's been Baseline since 2023-12-19.
Supported by: Chrome 105 (Sep 2022), Edge 105 (Sep 2022), Firefox 121 (Dec 2023), and Safari 15.4 (Mar 2022).
If the content-based layout styling is critical to the user experience or page design, you must provide a fallback for browsers that do not support the `:has()` selector. For purely decorative effects, `:has()` can be used as a progressive enhancement without a fallback.
diff --git a/skills/modern-web-guidance/guides/css-layout/usage-aware-component-variations.md b/skills/modern-web-guidance/guides/css/usage-aware-component-variations.md
similarity index 100%
rename from skills/modern-web-guidance/guides/css-layout/usage-aware-component-variations.md
rename to skills/modern-web-guidance/guides/css/usage-aware-component-variations.md
diff --git a/skills/modern-web-guidance/guides/forms/form-fields-automatically-fit-contents.md b/skills/modern-web-guidance/guides/forms/form-fields-automatically-fit-contents.md
index 9957622..588d7e8 100644
--- a/skills/modern-web-guidance/guides/forms/form-fields-automatically-fit-contents.md
+++ b/skills/modern-web-guidance/guides/forms/form-fields-automatically-fit-contents.md
@@ -61,9 +61,8 @@ IMPORTANT: Grid and Flexbox layouts often implicitly stretch their children to f
### Fallback strategies
-field-sizing has limited availability.
-Supported by: Chrome 123 (Mar 2024), Edge 123 (Mar 2024), and Safari 26.2 (Dec 2025).
-Unsupported in: Firefox.
+Baseline status for field-sizing: Newly available. It's been Baseline since 2026-06-16.
+Supported by: Chrome 123 (Mar 2024), Edge 123 (Mar 2024), Firefox 152 (Jun 2026), and Safari 26.2 (Dec 2025).
`field-sizing` should be treated as a progressive enhancement. In browsers that do not support the property, form controls gracefully degrade back to their default, fixed sizing behavior. Users will simply experience standard scrolling for overflowing content inside fixed-size inputs and textareas.
diff --git a/skills/modern-web-guidance/guides/ui-atoms/state-aware-sticky-headers.md b/skills/modern-web-guidance/guides/ui-atoms/state-aware-sticky-headers.md
new file mode 100644
index 0000000..f4164f7
--- /dev/null
+++ b/skills/modern-web-guidance/guides/ui-atoms/state-aware-sticky-headers.md
@@ -0,0 +1,139 @@
+# State-Aware Sticky Headers
+
+Sticky headers are a common UI pattern, but they often need to change their appearance when they become "stuck" to maintain readability or save space. Traditional solutions required JavaScript scroll listeners, which can cause performance issues. Modern CSS allows you to handle this natively using **Scroll State Queries**.
+
+## Implementation Steps
+
+### 1. Create the Sticky Container
+You need a container that will act as the sticky element and the container for the scroll state query.
+
+```html
+<!-- Wrap in a section to define the containment area for the sticky element -->
+<div class="section">
+ <div class="sticky-container">
+ <div class="sticky-header">
+ Section Header
+ </div>
+ </div>
+ <div class="content">
+ <!-- Content goes here -->
+ </div>
+</div>
+```
+
+### 2. Apply CSS for Sticky Behavior and Container Type
+Set `container-type: scroll-state` on the `position: sticky` element, not on its scrollable ancestor. Always specify a `container-name`, since these queries may be nested and unnamed containers will collide. You can also combine it with size queries, e.g., `container-type: scroll-state inline-size`.
+
+```css
+.sticky-container {
+ position: sticky;
+ top: 0;
+ /* MANDATORY: Always specify a container name to avoid collisions if CQs are nested */
+ container-type: scroll-state;
+ container-name: section-header;
+ z-index: 10;
+}
+
+.sticky-header {
+ /* Base styles for the header */
+ background: #f0f0f0;
+ padding: 20px;
+ transition: background-color 0.3s, box-shadow 0.3s;
+}
+```
+
+**Important:** The scroll state is queried by **descendants** of the scroll-state container. The styles in the `@container` query will not apply to the `.sticky-container` itself, but to its children (like `.sticky-header`). You cannot style the container element itself with its own scroll-state query.
+
+
+### 3. Target the Stuck State
+Use the `@container scroll-state(...)` query to apply styles when the header is stuck.
+
+```css
+/* Apply styles when the named container is stuck at the top */
+@container section-header scroll-state(stuck: top) {
+ .sticky-header {
+ background: #0056b3;
+ color: white;
+ box-shadow: 0 4px 6px rgb(0 0 0 / 0.15);
+ }
+}
+```
+
+**Tip:** You can also use logical properties like `stuck: inset-block-start` or `stuck: inset-inline-start` to better support internationalization (i18n) and right-to-left (RTL) layouts by querying flow-relative edges rather than physical ones.
+
+### Notes on Dimension Changes
+
+Without scroll anchoring disabled, changing layout-affecting properties (height, padding, font-size) when stuck can cause visual flickering. Scroll anchoring on the in-flow content below the sticky element adjusts the scroll offset to compensate for the layout change, which pushes the element back out of its stuck position and triggers an oscillation.
+
+Disable scroll anchoring on the parent of the sticky element to avoid this:
+
+```css
+.section {
+ overflow-anchor: none;
+}
+```
+
+Apply `overflow-anchor: none` to the direct parent of the `position: sticky` element, not to `:root` or `body`, which would disable scroll anchoring for the entire page. With this in place, you can freely change any property in the stuck state, including box-model properties and transforms.
+
+DO NOT: Rely on `overflow-anchor: none` for elements stuck to the **bottom**. Scroll anchoring only compensates for layout shifts above the current scroll position, so it has no effect on bottom-stuck elements. Avoid changing box-model properties in the stuck state for bottom-stuck headers.
+
+### Fallback strategies
+Container scroll-state queries has limited availability.
+Supported by: Chrome 133 (Feb 2025) and Edge 133 (Feb 2025).
+Unsupported in: Firefox and Safari.
+
+Scroll state queries are a progressive enhancement. In browsers that do not support `container-type: scroll-state`, the header will still stick to the top (due to `position: sticky`), but it will not visually transform. For most use cases, this is the recommended approach.
+
+If stickiness is not essential, but `position: sticky` without different styling would be a worse experience than no stickiness at all, you can wrap the `position: sticky` and related declaration in an `@supports` query as well:
+
+```css
+.sticky-container {
+ @supports (container-type: scroll-state) {
+ position: sticky;
+ top: 0;
+ container-type: scroll-state;
+ container-name: section-header;
+ z-index: 10;
+ }
+}
+```
+**Tip:** If your "stuck" styling requires a different background color for readability, consider setting your layout up so that the default styling works everywhere (Progressive Enhancement). If you must use a fallback, you can gate the `position: sticky` behaviour itself inside an `@supports (container-type: scroll-state)` query.
+
+If the visual transformation is absolutely critical to the design (e.g., the stuck state introduces a background or compaction without which the content is unreadable), you can implement a robust JavaScript fallback using `IntersectionObserver`. You must duplicate your CSS styles under an `.is-stuck` class. The following generic polyfill checks `getComputedStyle` to traverse up and find the correct scroll container (defaulting to the viewport), matching the behavior of `@container scroll-state(stuck: top)`:
+
+```javascript
+function getScrollParent(node) {
+ if (node == null || node === document.body || node === document.documentElement) {
+ return null; // default to viewport
+ }
+ if (node.scrollHeight > node.clientHeight || node.scrollWidth > node.clientWidth) {
+ const overflow = getComputedStyle(node).overflow;
+ if (overflow !== 'visible' && overflow !== 'clip') {
+ return node;
+ }
+ }
+ return getScrollParent(node.parentNode);
+}
+
+document.querySelectorAll('.sticky-container').forEach(container => {
+ const root = getScrollParent(container);
+
+ const topOffset = parseFloat(getComputedStyle(container).top) || 0;
+
+ const observer = new IntersectionObserver(
+ ([e]) => {
+ // Toggle the fallback class on the sticky header container
+ e.target.classList.toggle('is-stuck', e.intersectionRatio < 1);
+ },
+ {
+ root: root,
+ threshold: [1],
+ rootMargin: `-${topOffset + 1}px 0px 0px 0px`
+ }
+ );
+
+ observer.observe(container);
+});
+```
+
+*Note: This generic IntersectionObserver pattern can also be used as a polyfill for the `scroll-state(scrollable)` query.*
diff --git a/skills/modern-web-guidance/guides/ui-behaviors/interactive-content-reveal.md b/skills/modern-web-guidance/guides/ui-behaviors/interactive-content-reveal.md
index fad927a..a36054a 100644
--- a/skills/modern-web-guidance/guides/ui-behaviors/interactive-content-reveal.md
+++ b/skills/modern-web-guidance/guides/ui-behaviors/interactive-content-reveal.md
@@ -108,7 +108,7 @@ Browsers that support `mask-image` but not `@property` will still show the spotl
}
```
-Baseline status for Masks: Newly available. It's been Baseline since 2023-12-07.
+Baseline status for Masks: Widely available. It's been Baseline since 2023-12-07.
Supported by: Chrome 120 (Dec 2023), Edge 120 (Dec 2023), Firefox 53 (Apr 2017), and Safari 15.4 (Mar 2022).
### Basic Mask Support
diff --git a/skills/modern-web-guidance/guides/ui-behaviors/interest-triggered-action-previews.md b/skills/modern-web-guidance/guides/ui-behaviors/interest-triggered-action-previews.md
index db8fb7e..b14076d 100644
--- a/skills/modern-web-guidance/guides/ui-behaviors/interest-triggered-action-previews.md
+++ b/skills/modern-web-guidance/guides/ui-behaviors/interest-triggered-action-previews.md
@@ -71,9 +71,9 @@ When using the polyfill the CSS API changes slightly for the `:interest-source`
/* Adjust the start and end delay for interest invokers */
[interestfor] {
- --interest-delay-start: 0.2ms;
- interest-delay-start: 0.2ms;
- --interest-delay-end: 0.1ms;
- interest-delay-end: 0.1ms;
+ --interest-delay-start: 0.2s;
+ interest-delay-start: var(--interest-delay-start);
+ --interest-delay-end: 0.1s;
+ interest-delay-end: var(--interest-delay-end);
}
```
\ No newline at end of file
diff --git a/skills/modern-web-guidance/guides/ui-behaviors/physics-based-easing.md b/skills/modern-web-guidance/guides/ui-behaviors/physics-based-easing.md
index e684802..504a193 100644
--- a/skills/modern-web-guidance/guides/ui-behaviors/physics-based-easing.md
+++ b/skills/modern-web-guidance/guides/ui-behaviors/physics-based-easing.md
@@ -65,7 +65,7 @@ This example shows how to use a custom `linear()` function to create a bounce ef
### Fallback strategies
-Baseline status for linear() easing: Newly available. It's been Baseline since 2023-12-11.
+Baseline status for linear() easing: Widely available. It's been Baseline since 2023-12-11.
Supported by: Chrome 113 (May 2023), Edge 113 (May 2023), Firefox 112 (Apr 2023), and Safari 17.2 (Dec 2023).
#### CSS Fallback
diff --git a/skills/modern-web-guidance/guides/visual-design/complex-shapes.md b/skills/modern-web-guidance/guides/visual-design/complex-shapes.md
index 560b9d7..d874bea 100644
--- a/skills/modern-web-guidance/guides/visual-design/complex-shapes.md
+++ b/skills/modern-web-guidance/guides/visual-design/complex-shapes.md
@@ -54,7 +54,7 @@ You can also reference a `<mask>` element defined in an inline SVG in your page'
```
### Fallback strategies
-Baseline status for Masks: Newly available. It's been Baseline since 2023-12-07.
+Baseline status for Masks: Widely available. It's been Baseline since 2023-12-07.
Supported by: Chrome 120 (Dec 2023), Edge 120 (Dec 2023), Firefox 53 (Apr 2017), and Safari 15.4 (Mar 2022).
If a browser does not support `mask-image` or the prefixed version:
diff --git a/skills/modern-web-guidance/guides/visual-design/shaped-cutouts.md b/skills/modern-web-guidance/guides/visual-design/shaped-cutouts.md
index ea413ae..4d9e7c7 100644
--- a/skills/modern-web-guidance/guides/visual-design/shaped-cutouts.md
+++ b/skills/modern-web-guidance/guides/visual-design/shaped-cutouts.md
@@ -137,7 +137,7 @@ When you only need simple geometric cutouts (such as a semi-circular top notch,
```
## Fallback strategies
-Baseline status for Masks: Newly available. It's been Baseline since 2023-12-07.
+Baseline status for Masks: Widely available. It's been Baseline since 2023-12-07.
Supported by: Chrome 120 (Dec 2023), Edge 120 (Dec 2023), Firefox 53 (Apr 2017), and Safari 15.4 (Mar 2022).
If a browser does not support `mask-image` or the prefixed version:
diff --git a/skills/modern-web-guidance/guides/visual-design/soft-edge-content-fade.md b/skills/modern-web-guidance/guides/visual-design/soft-edge-content-fade.md
index db8ebea..97ef404 100644
--- a/skills/modern-web-guidance/guides/visual-design/soft-edge-content-fade.md
+++ b/skills/modern-web-guidance/guides/visual-design/soft-edge-content-fade.md
@@ -32,7 +32,7 @@ You can use a single gradient with multiple color stops to fade both edges.
```
## Fallback strategies
-Baseline status for Masks: Newly available. It's been Baseline since 2023-12-07.
+Baseline status for Masks: Widely available. It's been Baseline since 2023-12-07.
Supported by: Chrome 120 (Dec 2023), Edge 120 (Dec 2023), Firefox 53 (Apr 2017), and Safari 15.4 (Mar 2022).
If a browser does not support `mask-image` or the prefixed version:
diff --git a/skills/modern-web-guidance/guides/visual-design/visually-texture-content.md b/skills/modern-web-guidance/guides/visual-design/visually-texture-content.md
index 7f3d10e..cbb1dca 100644
--- a/skills/modern-web-guidance/guides/visual-design/visually-texture-content.md
+++ b/skills/modern-web-guidance/guides/visual-design/visually-texture-content.md
@@ -56,7 +56,7 @@ By default, CSS masks use `mask-mode: match-source`. This means the browser auto
> **Note:** You can explicitly override the default mask mode using the `mask-mode` CSS property (e.g., `mask-mode: luminance;` or `mask-mode: alpha;`).
## Fallback strategies
-Baseline status for Masks: Newly available. It's been Baseline since 2023-12-07.
+Baseline status for Masks: Widely available. It's been Baseline since 2023-12-07.
Supported by: Chrome 120 (Dec 2023), Edge 120 (Dec 2023), Firefox 53 (Apr 2017), and Safari 15.4 (Mar 2022).
If a browser does not support `mask-image` or the prefixed version: