Skip to content

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

Release v0.0.149

github-actions[bot]b811818a1024
diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json
index f23b6d5..069a119 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.148"
+ "version": "0.0.149"
}
]
}
diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json
index 0ce6d9c..7ab8ae7 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.148",
+ "version": "0.0.149",
"author": {
"name": "Google Chrome"
}
diff --git a/.cursor-plugin/plugin.json b/.cursor-plugin/plugin.json
index 0ce6d9c..7ab8ae7 100644
--- a/.cursor-plugin/plugin.json
+++ b/.cursor-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.148",
+ "version": "0.0.149",
"author": {
"name": "Google Chrome"
}
diff --git a/README.md b/README.md
index f994e3c..c2c66cf 100644
--- a/README.md
+++ b/README.md
@@ -36,7 +36,7 @@ Here's a tiny sampling of the **123 use-case-centric guides**:
* **Accessibility & Security**: accessible error announcements, keyboard focus management.
* **Built-in AI**: Leveraging local, on-device client models (native Language Detection, Summarization, and Translation APIs).
-#### Full Skill Coverage (v0.0.148)
+#### Full Skill Coverage (v0.0.149)
<details>
<summary>Includes expert guidance across <strong>98 modern web features</strong></summary>
diff --git a/gemini-extension.json b/gemini-extension.json
index 0ce6d9c..7ab8ae7 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.148",
+ "version": "0.0.149",
"author": {
"name": "Google Chrome"
}
diff --git a/package.json b/package.json
index 28d6e6b..53209cd 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.148",
+ "version": "0.0.149",
"publisher": "GoogleChrome",
"engines": {
"vscode": "^1.90.0",
diff --git a/skills/modern-web-guidance/SKILL.md b/skills/modern-web-guidance/SKILL.md
index edd2466..b826981 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 --skill-version 2026_05_15-a0e55fb0 search "<query>"
+npx -y modern-web-guidance@latest --skill-version 2026_05_15-a0e55fb search "<query>"
```
**Example Output**:
diff --git a/skills/modern-web-guidance/guides/css/css.md b/skills/modern-web-guidance/guides/css/css.md
index 66867c6..90afd9c 100644
--- a/skills/modern-web-guidance/guides/css/css.md
+++ b/skills/modern-web-guidance/guides/css/css.md
@@ -442,6 +442,7 @@ Rendering performance is critical for smooth user experiences, especially in hea
- Prefer to animate `opacity` and `transform` (including individual transform properties, e.g. `translate` instead of `left/right/top/bottom`) to ensure animations stay on the compositor thread.
- Use `transition-behavior: allow-discrete` + `@starting-style` to animate layout properties like `display` or `<dialog>` state natively.
- Always pair `content-visibility` with `contain-intrinsic-size` to prevent scrollbar jumps (CLS).
+- When setting `contain-intrinsic-size` use the `auto` keyword and a value that’s derived from what is known about the contents (i.e. text size, spacing, size of graphics, character count). Preferably use units such as `rem`, `lh`, `cap`, or `ch` that match values used for the elements within the contents rather than `px`. If the content for items in a group is not consistently sized, then use an average size.
- Use `contain: layout style paint` to isolate component rendering updates.
#### Code Example: Render Optimization
@@ -449,7 +450,19 @@ Rendering performance is critical for smooth user experiences, especially in hea
```css
.large-section {
content-visibility: auto;
- contain-intrinsic-size: auto 800px;
+ contain-intrinsic-block-size: auto 800px;
+}
+
+.row {
+ --row-gap: .4rem;
+ --title-height: 1lh;
+ --description-height: 0.85lh;
+
+ display: grid;
+ row-gap: var(--row-gap);
+ content-visibility: auto;
+ /* The sum of the title height, row gap, and description height should be the size of the contents when skipped for rendering. */
+ contain-intrinsic-block-size: auto calc(var(--title-height) + var(--row-gap) + var(--description-height));
}
.popover-reveal {
diff --git a/skills/modern-web-guidance/guides/forms/required-field-feedback.md b/skills/modern-web-guidance/guides/forms/required-field-feedback.md
index ffbf652..4678004 100644
--- a/skills/modern-web-guidance/guides/forms/required-field-feedback.md
+++ b/skills/modern-web-guidance/guides/forms/required-field-feedback.md
@@ -166,7 +166,7 @@ UserInvalidFallback.init(form);
```javascript
// Sync aria-invalid with the CSS :user-invalid state
const syncAria = (el) => {
- el.toggleAttribute?.('aria-invalid', el.matches(':user-invalid'));
+ el.setAttribute?.('aria-invalid', el.matches(':user-invalid') ? 'true' : 'false');
};
// Update on blur (to show error) and input (to clear it)
diff --git a/skills/modern-web-guidance/guides/forms/select-menu-interaction.md b/skills/modern-web-guidance/guides/forms/select-menu-interaction.md
index 03dfc36..8e82e5d 100644
--- a/skills/modern-web-guidance/guides/forms/select-menu-interaction.md
+++ b/skills/modern-web-guidance/guides/forms/select-menu-interaction.md
@@ -169,7 +169,7 @@ UserInvalidFallback.init(form);
```javascript
// Sync aria-invalid with the CSS :user-invalid state
const syncAria = (el) => {
- el.toggleAttribute?.('aria-invalid', el.matches(':user-invalid'));
+ el.setAttribute?.('aria-invalid', el.matches(':user-invalid') ? 'true' : 'false');
};
// Update on blur (to show error) and input (to clear it)
diff --git a/skills/modern-web-guidance/guides/forms/validate-input-after-interaction.md b/skills/modern-web-guidance/guides/forms/validate-input-after-interaction.md
index b51fdf1..a638f98 100644
--- a/skills/modern-web-guidance/guides/forms/validate-input-after-interaction.md
+++ b/skills/modern-web-guidance/guides/forms/validate-input-after-interaction.md
@@ -238,7 +238,7 @@ UserInvalidFallback.init(form);
```javascript
// Sync aria-invalid with the CSS :user-invalid state
const syncAria = (el) => {
- el.toggleAttribute?.('aria-invalid', el.matches(':user-invalid'));
+ el.setAttribute?.('aria-invalid', el.matches(':user-invalid') ? 'true' : 'false');
};
// Update on blur (to show error) and input (to clear it)
diff --git a/skills/modern-web-guidance/guides/user-experience/style-parent-with-has.md b/skills/modern-web-guidance/guides/user-experience/style-parent-with-has.md
index 93a20a8..ec5fedd 100644
--- a/skills/modern-web-guidance/guides/user-experience/style-parent-with-has.md
+++ b/skills/modern-web-guidance/guides/user-experience/style-parent-with-has.md
@@ -188,7 +188,7 @@ form.addEventListener('reset', () => {
```javascript
// Sync aria-invalid with the CSS :user-invalid state
const syncAria = (el) => {
- el.toggleAttribute?.('aria-invalid', el.matches(':user-invalid'));
+ el.setAttribute?.('aria-invalid', el.matches(':user-invalid') ? 'true' : 'false');
};
// Update on blur (to show error) and input (to clear it)