Skip to content

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

Release v0.0.175

github-actions[bot]13b2c44d266c
diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json
index 4e8fc2a..f7a3f2a 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.174"
+ "version": "0.0.175"
}
]
}
diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json
index dd2468e..e6adf7a 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.174",
+ "version": "0.0.175",
"author": {
"name": "Google Chrome"
}
diff --git a/.cursor-plugin/plugin.json b/.cursor-plugin/plugin.json
index 7a5ad39..1cfd940 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.174",
+ "version": "0.0.175",
"author": {
"name": "Google Chrome"
}
diff --git a/README.md b/README.md
index 7494b5c..76b6caf 100644
--- a/README.md
+++ b/README.md
@@ -98,12 +98,12 @@ _View an example:_ [the `navigation-drawer` guide](https://github.com/GoogleChro
| [@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/) | [sin(), cos(), tan(), asin(), acos(), atan(), and atan2() (CSS)](https://web-platform-dx.github.io/web-features-explorer/features/trig-functions/) |
-| [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/) |
-| [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/) | [text-wrap: pretty](https://web-platform-dx.github.io/web-features-explorer/features/text-wrap-pretty/) |
-| [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/) | [transition-behavior](https://web-platform-dx.github.io/web-features-explorer/features/transition-behavior/) |
+| [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/) |
| [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/) |
@@ -124,17 +124,17 @@ _View an example:_ [the `navigation-drawer` guide](https://github.com/GoogleChro
| | | |
| :--- | :--- | :--- |
-| [AbortController and AbortSignal](https://web-platform-dx.github.io/web-features-explorer/features/aborting/) | [LanguageModel](https://web-platform-dx.github.io/web-features-explorer/features/languagemodel/) | [Speculation rules](https://web-platform-dx.github.io/web-features-explorer/features/speculation-rules/) |
-| [enterkeyhint](https://web-platform-dx.github.io/web-features-explorer/features/enterkeyhint/) | [Long animation frames](https://web-platform-dx.github.io/web-features-explorer/features/long-animation-frames/) | [Summarizer](https://web-platform-dx.github.io/web-features-explorer/features/summarizer/) |
-| [Event timing](https://web-platform-dx.github.io/web-features-explorer/features/event-timing/) | [Navigation API](https://web-platform-dx.github.io/web-features-explorer/features/navigation/) | [SVG](https://web-platform-dx.github.io/web-features-explorer/features/svg/) |
-| [Federated credential management](https://web-platform-dx.github.io/web-features-explorer/features/fedcm/) | [navigator.modelContext](https://web-platform-dx.github.io/web-features-explorer/features/navigator-modelcontext/) | [Temporal](https://web-platform-dx.github.io/web-features-explorer/features/temporal/) |
-| [Fetch](https://web-platform-dx.github.io/web-features-explorer/features/fetch/) | [Page visibility](https://web-platform-dx.github.io/web-features-explorer/features/page-visibility/) | [Top-level await](https://web-platform-dx.github.io/web-features-explorer/features/top-level-await/) |
-| [fetchLater](https://web-platform-dx.github.io/web-features-explorer/features/fetchlater/) | [Page visibility state](https://web-platform-dx.github.io/web-features-explorer/features/page-visibility-state/) | [Translator](https://web-platform-dx.github.io/web-features-explorer/features/translator/) |
-| [Form-associated WebMCP attributes](https://web-platform-dx.github.io/web-features-explorer/features/declarative-webmcp/) | [Partitioned cookies](https://web-platform-dx.github.io/web-features-explorer/features/partitioned-cookies/) | [User agent client hints](https://web-platform-dx.github.io/web-features-explorer/features/ua-client-hints/) |
-| [inputmode](https://web-platform-dx.github.io/web-features-explorer/features/inputmode/) | [Permissions policy](https://web-platform-dx.github.io/web-features-explorer/features/permissions-policy/) | [Web authentication](https://web-platform-dx.github.io/web-features-explorer/features/webauthn/) |
-| [Intersection observer](https://web-platform-dx.github.io/web-features-explorer/features/intersection-observer/) | [Registered custom properties](https://web-platform-dx.github.io/web-features-explorer/features/registered-custom-properties/) | [Web authentication signal methods](https://web-platform-dx.github.io/web-features-explorer/features/webauthn-signals/) |
-| [Intl.DurationFormat](https://web-platform-dx.github.io/web-features-explorer/features/intl-duration-format/) | [Resize observer](https://web-platform-dx.github.io/web-features-explorer/features/resize-observer/) | |
-| [Language detector](https://web-platform-dx.github.io/web-features-explorer/features/languagedetector/) | [Scheduler API](https://web-platform-dx.github.io/web-features-explorer/features/scheduler/) | |
+| [AbortController and AbortSignal](https://web-platform-dx.github.io/web-features-explorer/features/aborting/) | [Language detector](https://web-platform-dx.github.io/web-features-explorer/features/languagedetector/) | [Speculation rules](https://web-platform-dx.github.io/web-features-explorer/features/speculation-rules/) |
+| [document.modelContext](https://web-platform-dx.github.io/web-features-explorer/features/document-modelcontext/) | [LanguageModel](https://web-platform-dx.github.io/web-features-explorer/features/languagemodel/) | [Summarizer](https://web-platform-dx.github.io/web-features-explorer/features/summarizer/) |
+| [enterkeyhint](https://web-platform-dx.github.io/web-features-explorer/features/enterkeyhint/) | [Long animation frames](https://web-platform-dx.github.io/web-features-explorer/features/long-animation-frames/) | [SVG](https://web-platform-dx.github.io/web-features-explorer/features/svg/) |
+| [Event timing](https://web-platform-dx.github.io/web-features-explorer/features/event-timing/) | [Navigation API](https://web-platform-dx.github.io/web-features-explorer/features/navigation/) | [Temporal](https://web-platform-dx.github.io/web-features-explorer/features/temporal/) |
+| [Federated credential management](https://web-platform-dx.github.io/web-features-explorer/features/fedcm/) | [Page visibility](https://web-platform-dx.github.io/web-features-explorer/features/page-visibility/) | [Top-level await](https://web-platform-dx.github.io/web-features-explorer/features/top-level-await/) |
+| [Fetch](https://web-platform-dx.github.io/web-features-explorer/features/fetch/) | [Page visibility state](https://web-platform-dx.github.io/web-features-explorer/features/page-visibility-state/) | [Translator](https://web-platform-dx.github.io/web-features-explorer/features/translator/) |
+| [fetchLater](https://web-platform-dx.github.io/web-features-explorer/features/fetchlater/) | [Partitioned cookies](https://web-platform-dx.github.io/web-features-explorer/features/partitioned-cookies/) | [User agent client hints](https://web-platform-dx.github.io/web-features-explorer/features/ua-client-hints/) |
+| [Form-associated WebMCP attributes](https://web-platform-dx.github.io/web-features-explorer/features/declarative-webmcp/) | [Permissions policy](https://web-platform-dx.github.io/web-features-explorer/features/permissions-policy/) | [Web authentication](https://web-platform-dx.github.io/web-features-explorer/features/webauthn/) |
+| [inputmode](https://web-platform-dx.github.io/web-features-explorer/features/inputmode/) | [Registered custom properties](https://web-platform-dx.github.io/web-features-explorer/features/registered-custom-properties/) | [Web authentication signal methods](https://web-platform-dx.github.io/web-features-explorer/features/webauthn-signals/) |
+| [Intersection observer](https://web-platform-dx.github.io/web-features-explorer/features/intersection-observer/) | [Resize observer](https://web-platform-dx.github.io/web-features-explorer/features/resize-observer/) | |
+| [Intl.DurationFormat](https://web-platform-dx.github.io/web-features-explorer/features/intl-duration-format/) | [Scheduler API](https://web-platform-dx.github.io/web-features-explorer/features/scheduler/) | |
</details>
diff --git a/gemini-extension.json b/gemini-extension.json
index dd2468e..e6adf7a 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.174",
+ "version": "0.0.175",
"author": {
"name": "Google Chrome"
}
diff --git a/package.json b/package.json
index 006c4b9..aa09181 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.174",
+ "version": "0.0.175",
"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 615c627..4e5c5fb 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_05_16-c5e7870
+npx -y modern-web-guidance@latest search "<query>" --skill-version 2026_05_16-c5e78707
```
**Example Output**:
diff --git a/skills/modern-web-guidance/guides/accessibility/accessibility.md b/skills/modern-web-guidance/guides/accessibility/accessibility.md
index 84292aa..ed2e168 100644
--- a/skills/modern-web-guidance/guides/accessibility/accessibility.md
+++ b/skills/modern-web-guidance/guides/accessibility/accessibility.md
@@ -12,7 +12,7 @@ Keep these principles in mind throughout:
### Actionable Guidelines
#### DOs
-- **Place all content within landmarks**: Wrap the page in `<header>`, `<nav>`, `<main>`, `<aside>`, and `<footer>` so assistive-tech users can jump between regions.
+- **Place all content within landmarks**: Wrap each relevant part of the page in `<header>`, `<nav>`, `<main>`, `<aside>`, and `<footer>` elements so assistive-tech users can jump between regions.
- **Structure main content with headings**: Use `<h1>`–`<h6>` sequentially (no jumping `<h1>` → `<h4>`) so screen-reader users get a navigable outline.
- **Use lists for repeated, contiguous content**: `<ul>`/`<ol>` give assistive tech a count up front and let users skip the entire group.
- **Provide skip links** prior to repeated content like site headers with navigation or long/infinite lists, so that keyboard users can easily bypass them. Make sure the target is focusable (e.g. `<main id="content" tabindex="-1">`).
diff --git a/skills/modern-web-guidance/guides/built-in-ai/language-detection.md b/skills/modern-web-guidance/guides/built-in-ai/language-detection.md
index ee7e14b..3670a3f 100644
--- a/skills/modern-web-guidance/guides/built-in-ai/language-detection.md
+++ b/skills/modern-web-guidance/guides/built-in-ai/language-detection.md
@@ -71,8 +71,8 @@ Avoid using the detector on very short phrases or single words, as accuracy drop
## Fallback Strategy
Language detector has limited availability.
-Supported by: Chrome 138 (Jun 2025).
-Unsupported in: Edge, Firefox, and Safari.
+Supported by: Chrome 138 (Jun 2025) and Edge 148 (May 2026).
+Unsupported in: Firefox and Safari.
Before use, check if the `LanguageDetector` object is available in the global scope:
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 70e9edf..bd1e914 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
@@ -170,8 +170,8 @@ By combining structured outputs with robust session management, developers can b
## 6. Fallback strategies
LanguageModel has limited availability.
-Supported by: Chrome 148 (May 2026) and Edge 148 (May 2026).
-Unsupported in: Firefox and Safari.
+Supported by: Chrome 148 (May 2026).
+Unsupported in: Edge, Firefox, and Safari.
Before use, check if the LanguageModel object is available in the global scope:
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
new file mode 100644
index 0000000..bd1e914
--- /dev/null
+++ b/skills/modern-web-guidance/guides/built-in-ai/prompt-api.md
@@ -0,0 +1,189 @@
+The Prompt API allows developers to run natural language processing tasks directly in the browser using **Gemini Nano**. This built-in AI approach ensures user privacy, reduces server costs, and enables offline functionality.
+
+## 1. Getting Started and Hardware Requirements
+
+The Prompt API is currently available in Chrome as of version 148 (Desktop) for Windows, macOS, Linux, and Chromebook Plus.
+
+### Hardware Prerequisites
+
+- **Storage**: 22 GB free space (for the initial profile and model).
+- **Memory/CPU**: 16 GB RAM and 4+ CPU cores.
+- **GPU**: 4 GB VRAM or more (Required for audio input).
+- **Network**: Required only for the initial model download.
+
+### Initializing the API
+
+Check model availability before triggering a download:
+
+```javascript
+const availability = await LanguageModel.availability();
+
+// Do not call create() when unavailable — the model cannot run on this device.
+if (availability !== 'unavailable') {
+ const session = await LanguageModel.create({
+ monitor(m) {
+ // Inform the user while the model downloads so the UI doesn't appear frozen.
+ m.addEventListener('downloadprogress', (e) => {
+ console.log(`Downloaded ${e.loaded * 100}%`);
+ });
+ },
+ });
+}
+```
+
+## 2. Core Prompting Capabilities
+
+Session examples in this section omit `session.destroy()` for brevity. Always call `session.destroy()` when a session is no longer needed to free device memory (see Section 5).
+
+### Basic and Streamed Output
+
+For short responses, use `prompt()`. For longer content, use `promptStreaming()` to provide a more responsive UI.
+
+**MANDATORY**: Never assign model output to `innerHTML`. Model output is untrusted and can contain injected markup. Always use `textContent` or a sanitizer.
+
+```javascript
+const session = await LanguageModel.create();
+
+// prompt() accumulates the full response before resolving — use for short, one-shot output.
+const result = await session.prompt('Write a haiku about coding.');
+// textContent, not innerHTML — model output is untrusted and must not be parsed as markup.
+outputEl.textContent = result;
+
+// promptStreaming() yields independent chunks that must be concatenated;
+// use for longer content so each chunk can be rendered progressively.
+const stream = session.promptStreaming('Write a long story about a robot.');
+let completeResult = '';
+for await (const chunk of stream) {
+ completeResult += chunk;
+ outputEl.append(chunk);
+}
+console.log('Full story:', completeResult);
+```
+
+### Multimodal Input
+
+The Prompt API supports text, audio, and visual inputs (images, canvas, video frames).
+
+```javascript
+const session = await LanguageModel.create({
+ // Declaring expected input types lets the browser optimize model loading.
+ expectedInputs: [{ type: 'text' }, { type: 'image' }],
+ expectedOutputs: [{ type: 'text' }],
+});
+
+const response = await session.prompt([
+ {
+ role: 'user',
+ content: [
+ { type: 'text', value: 'What is in this image?' },
+ { type: 'image', value: document.querySelector('canvas') },
+ ],
+ },
+]);
+```
+
+## 3. Advanced Session Management
+
+Sessions allow the model to maintain context across multiple interactions.
+
+### Context and Quota
+
+Each session has a maximum token limit. You can monitor usage via `session.contextUsage` and `session.contextWindow`. If the window overflows, the oldest messages (except the system prompt) are dropped.
+
+### Cloning Sessions
+
+Cloning is efficient for starting parallel conversations that share the same initial context (like a "system" personality) without re-initializing.
+
+```javascript
+const mainSession = await LanguageModel.create({
+ initialPrompts: [{ role: 'system', content: 'You speak like a pirate.' }],
+});
+
+const branchA = await mainSession.clone();
+const branchB = await mainSession.clone();
+// Destroy the base after cloning — the clones own their own context from here.
+mainSession.destroy();
+```
+
+### Restoring Past Sessions
+
+While a native "restore" feature is in development, you can recreate a session by feeding previous history into `initialPrompts`.
+
+**Note**: `localStorage` is unencrypted and persistent. Stored conversation history may include user PII — consider the privacy implications before persisting chat history.
+
+```javascript
+// || '[]' ensures JSON.parse never receives null when the key doesn't exist yet.
+const history = JSON.parse(localStorage.getItem('chat_history') || '[]');
+const session = await LanguageModel.create({
+ initialPrompts: history, // Array of {role, content} objects
+});
+```
+
+## 4. Structured Output with JSON Schema
+
+To prevent the model from adding "chatter" (e.g., "Sure, here is your JSON:"), use a **JSON Schema** via the `responseConstraint` field. This ensures the output is valid JSON that can be parsed immediately.
+
+### Example: Sentiment Classification
+
+```javascript
+// Pass the schema as a plain object — do not JSON.stringify() it first.
+const schema = {
+ type: 'object',
+ properties: {
+ rating: { type: 'number', minimum: 1, maximum: 5 },
+ is_positive: { type: 'boolean' },
+ },
+ required: ['rating', 'is_positive'],
+};
+
+const result = await session.prompt(
+ "Rate the following feedback: 'The food was great!'",
+ { responseConstraint: schema },
+);
+
+const data = JSON.parse(result);
+console.log(data.rating); // 5
+```
+
+### Constraints and Prefixes
+
+You can guide the model further by prefilling the assistant's response using `prefix: true`.
+
+````javascript
+const character = await session.prompt([
+ { role: 'user', content: 'Create a character sheet' },
+ { role: 'assistant', content: '```json\n', prefix: true },
+]);
+````
+
+## 5. Best Practices and Safety
+
+- **Resource Cleanup**: Always call `session.destroy()` when a conversation is finished to free up memory.
+- **Output Safety**: Model output is untrusted. Always write results to `textContent`, not `innerHTML`, to prevent XSS injection from malicious model output.
+- Use a sanitizer like the native Sanitizer API or DOMPurify if you need to allow limited HTML.
+- **Aborting Tasks**: Use `AbortController` to allow users to stop long-running generations. Pass the `signal` to `prompt()` or `promptStreaming()`, not to `LanguageModel.create()`.
+- **Security**: Use Permission Policies to control access in iframes: `<iframe src="..." allow="language-model"></iframe>`.
+- **Design**: Review the [People + AI Guidebook](https://pair.withgoogle.com/guidebook/) to ensure responsible AI implementation.
+
+By combining structured outputs with robust session management, developers can build complex, stateful AI applications that run entirely on the user's device.
+
+## 6. Fallback strategies
+
+LanguageModel has limited availability.
+Supported by: Chrome 148 (May 2026).
+Unsupported in: Edge, Firefox, and Safari.
+
+Before use, check if the LanguageModel object is available in the global scope:
+
+```js
+if ('LanguageModel' in self) {
+ // The Prompt API is supported.
+} else {
+ // Execute fallback strategy
+}
+```
+
+If the Prompt API is unsupported or availability checks return 'unavailable', you must gracefully fall back:
+
+* Remote API Fallback: Redirect the detection request to a server endpoint or a cloud API (such as the Vertex AI Gemini API).
+* Local API Fallback: Redirect the detection request to a local endpoint, for example, using Transformers.js.
diff --git a/skills/modern-web-guidance/guides/built-in-ai/summarizer.md b/skills/modern-web-guidance/guides/built-in-ai/summarizer.md
index 6b9de98..ce5a019 100644
--- a/skills/modern-web-guidance/guides/built-in-ai/summarizer.md
+++ b/skills/modern-web-guidance/guides/built-in-ai/summarizer.md
@@ -131,8 +131,8 @@ for await (const chunk of stream) {
## Fallback Strategy
Summarizer has limited availability.
-Supported by: Chrome 138 (Jun 2025).
-Unsupported in: Edge, Firefox, and Safari.
+Supported by: Chrome 138 (Jun 2025) and Edge 138 (Jun 2025).
+Unsupported in: Firefox and Safari.
Before initializing or querying availability, check if the browser supports the `Summarizer` API:
diff --git a/skills/modern-web-guidance/guides/built-in-ai/translator.md b/skills/modern-web-guidance/guides/built-in-ai/translator.md
index 4eea762..683d679 100644
--- a/skills/modern-web-guidance/guides/built-in-ai/translator.md
+++ b/skills/modern-web-guidance/guides/built-in-ai/translator.md
@@ -101,7 +101,7 @@ The API supports a wide range of BCP 47 language codes: Here are the languages s
- **hu**: Hungarian
- **id**: Indonesian
- **it**: Italian
-- **iw**: Hebrew
+- **he**: Hebrew
- **ja**: Japanese
- **kn**: Kannada
- **ko**: Korean
@@ -139,8 +139,8 @@ The API supports a wide range of BCP 47 language codes: Here are the languages s
## Fallback Strategy
Translator has limited availability.
-Supported by: Chrome 138 (Jun 2025).
-Unsupported in: Edge, Firefox, and Safari.
+Supported by: Chrome 138 (Jun 2025) and Edge 148 (May 2026).
+Unsupported in: Firefox and Safari.
Before use, check if the `Translator` object is available in the global scope:
diff --git a/skills/modern-web-guidance/guides/forms/brand-consistent-forms.md b/skills/modern-web-guidance/guides/forms/brand-consistent-forms.md
index df845a4..912c2ef 100644
--- a/skills/modern-web-guidance/guides/forms/brand-consistent-forms.md
+++ b/skills/modern-web-guidance/guides/forms/brand-consistent-forms.md
@@ -71,8 +71,7 @@ body {
## Fallback Strategy
accent-color has limited availability.
-Supported by: Chrome 93 (Aug 2021), Edge 93 (Sep 2021), and Firefox 92 (Sep 2021).
-Unsupported in: Safari.
+Supported by: Chrome 93 (Aug 2021), Edge 93 (Sep 2021), Firefox 92 (Sep 2021), and Safari 26.2 (Dec 2025).
For browsers that do not support `accent-color`, the form controls fall back to the browser's default appearance. To ensure full brand consistency and high reliability across all environments, you MUST implement a custom fallback strategy using the established "visually hidden input" technique.
diff --git a/skills/modern-web-guidance/guides/user-experience/dark-mode.md b/skills/modern-web-guidance/guides/user-experience/dark-mode.md
index 15aee24..4924b1d 100644
--- a/skills/modern-web-guidance/guides/user-experience/dark-mode.md
+++ b/skills/modern-web-guidance/guides/user-experience/dark-mode.md
@@ -289,8 +289,7 @@ If you are using custom properties to define colors, these will cascade to the l
### Fallbacks & browser support for accent-color
accent-color has limited availability.
-Supported by: Chrome 93 (Aug 2021), Edge 93 (Sep 2021), and Firefox 92 (Sep 2021).
-Unsupported in: Safari.
+Supported by: Chrome 93 (Aug 2021), Edge 93 (Sep 2021), Firefox 92 (Sep 2021), and Safari 26.2 (Dec 2025).
The `accent-color` property is progressive enhancement.
Browsers that do not support this property will ignore it and use their default UI colors.
diff --git a/skills/modern-web-guidance/guides/user-experience/design-token-reactivity.md b/skills/modern-web-guidance/guides/user-experience/design-token-reactivity.md
index 0056a70..4ce7f9a 100644
--- a/skills/modern-web-guidance/guides/user-experience/design-token-reactivity.md
+++ b/skills/modern-web-guidance/guides/user-experience/design-token-reactivity.md
@@ -56,9 +56,8 @@ The following is a basic example of the above implementation steps.
## Fallback strategies
-Container style queries has limited availability.
-Supported by: Chrome 111 (Mar 2023), Edge 111 (Mar 2023), and Safari 18 (Sep 2024).
-Unsupported in: Firefox.
+Baseline status for Container style queries: Newly available. It's been Baseline since 2026-05-19.
+Supported by: Chrome 111 (Mar 2023), Edge 111 (Mar 2023), Firefox 151 (May 2026), and Safari 18 (Sep 2024).
Until there is Baseline support for container style queries it is NOT RECOMMENDED that they be used for core features that must be available across all browsers, since it is not simple to create a fallback for them that does not take away from their benefits or that have their own limitations. For example, if a UI density user preference is not deemed to be a core feature that must be available across all experiences, then container style queries can be use to implement the feature without a fallback.
diff --git a/skills/modern-web-guidance/guides/webmcp/agentic-javascript-tools.md b/skills/modern-web-guidance/guides/webmcp/agentic-javascript-tools.md
index 6dd73ba..94e0273 100644
--- a/skills/modern-web-guidance/guides/webmcp/agentic-javascript-tools.md
+++ b/skills/modern-web-guidance/guides/webmcp/agentic-javascript-tools.md
@@ -11,7 +11,7 @@ WebMCP does not provide an `unregisterTool()` method. To unregister a tool, you
```javascript
const controller = new AbortController();
-document.modelContext.registerTool({
+await document.modelContext.registerTool({
name: "get_user_preferences",
description: "Retrieves the user's saved preferences.",
inputSchema: { type: "object", properties: {} },
@@ -31,7 +31,7 @@ controller.abort();
Parameters (params) are defined using the `inputSchema` property. This must be a **JSON Schema** object that describes the structured data the tool expects.
```javascript
-document.modelContext.registerTool({
+await document.modelContext.registerTool({
name: "calculate_area",
description: "Calculates the area of a rectangle.",
inputSchema: {
@@ -104,7 +104,7 @@ export function createInventoryTool(inventoryManager) {
## Fallback strategies
-navigator.modelContext is not natively supported by any major browser yet.
+document.modelContext is not natively supported by any major browser yet.
The WebMCP Imperative API should be used with feature detection to ensure compatibility with browsers that do not yet support WebMCP.