Chrome for Developers

Chrome for Developers

@developer.chrome.com

The Official Chromium Developers Account. Check out our developer portals: https://developer.chrome.com/ and https://web.dev/

4.4K followers57 following822 posts

Filtering thousands of items shouldn't freeze your UI ⏱️ When tasked with complex features, basic coding agents tend to miss performance opportunities. With Modern Web Guidance, agents find best practice guides on how to break up long tasks and yield control back to the browser β†’ goo.gle/mwg

No, WebMCP isn't replacing MCP. MCP connects agents to your services. WebMCP connects agents to your website while it's open and the user's in the loop. Here's how they fit together ‡️

Ever hovered over a button, switched to DevTools, and watched its :hover styles vanish? 🎨 Turn on inactive styles in Settings, and the Elements panel will keep showing rules that no longer apply, clearly marked with an inactive indicator β†’ goo.gle/4i2xbRL

Now you can render live, accessible HTML buttons inside a 3D scene without losing screen reader support 🀯 The HTML-in-Canvas API makes it possible! Natalia breaks down how to use the API to keep performance high and accessibility intact β†’ goo.gle/4dV0Km1

goo.gleHTML-in-canvas: Where interactive content and high performance graphics meetEnjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.

If ads are slowing down your site, DevTools can now identify the scripts responsible β†’ goo.gle/4i2xbRL In Chrome DevTools, open Application > Ads to check experimental CrUX ad metrics (including CPU and Network usage), browse a table of ad scripts, and highlight every ad on the page.

Your prompt: "Add a modal that smoothly slides into view and fades out when closed." Unguided coding agent: Custom <div>, z-index: 9999, and JS setTimeout unmount hacks. Guided coding agent: Native <dialog> with @starting-style, overlay, and allow-discrete transitions.

Correction: since this video was recorded, MWG has been updated to improve cross-browser compatibility. allow-discrete shouldn't be used in the transition shorthand; set it separately in transition-behavior so older browsers don't drop the whole transition.

That failing API call in the Network panel? Rewrite it in the Console in two clicks β†’ goo.gle/4i2xbRL Right-click any request and select "Edit and resend as fetch". DevTools opens the Console with the fetch() call ready to edit, parameter comments included, and a reference link.

Chrome for Developers reposted

πŸ§ͺ We've expanded Core Web Vitals to include support for soft navigation (SPA)! Since SPAs are handled differently in implementation, they have required bespoke custom measurement, making it hard to compare directly across sites. Measuring performance is a little art, a little science. 1/2

web.devExperimental soft navigation metrics now available in CrUX Β |Β  Blog Β |Β  web.devLearn about the new experimental soft navigation metrics in CrUX and how they will impact your Core Web Vital metrics.

Chrome 155 adds support for JPEG XL (.jxl) β†’ goo.gle/4yYpSjW Expect 30-50% smaller file sizes than traditional JPEGs, native HDR, progressive rendering, and lossless JPEG transcoding. Under the hood, Chrome uses jxl-rs, a pure Rust decoder built for maximum memory safety and performance.

Chrome for Developers reposted

I'm super excited to announce that today we've added experimental versions of Core Web Vitals metrics including soft navigations to the Chrome User Experience Report! You can see them in BigQuery, the APIs, and CrUX Vis. Check it out! web.dev/blog/crux-ex...

web.devExperimental soft navigation metrics now available in CrUX Β |Β  Blog Β |Β  web.devLearn about the new experimental soft navigation metrics in CrUX and how they will impact your Core Web Vital metrics.

Install two key updates to modernize extension builds with Antigravity: 1️⃣ Modern Web Guidance to share best practices directly with your coding agent 2️⃣ Chrome DevTools for agents, which allows your agent to install and test extensions in a real Chrome browser

The Split View API is here! Arriving in Chrome 155 and developed in close collaboration with Mozilla and browser vendors in the WebExtensions Community Group, this API integrates directly into the browser.tabs namespace without requiring any extra manifest permissions β†’ goo.gle/47fdSOW

Side-by-side test for building dialogs: standard agent vs. agent with Modern Web Guidance 🏁 Both generate similar UIs, but the guided version skips four separate event listeners in favor of `commandfor` and `command` attributes, with less code overall β†’ goo.gle/mwg

Some CSS features are notoriously hard to detect when they update underlying behaviors. But now you can with `@supports named-feature()` β†’ goo.gle/4AFfqiR This new function gives you a clean way to check for specific capabilities without complex JavaScript hacks.

Chrome for Developers reposted

Two Modern Web Guidance releases in one week?! v0.0.193 is out, teaching coding agents how to: β€’ restrict outbound network connections (Connection-Allowlist) β€’ validate origins without string parsing (Origin API) β€’ verify email address ownership without OTPs β€’ build draggable floating elements

goo.gleModern Web Guidance Β |Β  Chrome for DevelopersSkills that embed web platform expertise and best practices directly into your coding agents.

By installing this CLI tool, your agent searches a database of best practices before writing a single line of code. The result is forms complete with proper autocomplete values, enterkeyhint attributes, and autofill CSS pseudo-classes. Upgrade your agent today β†’ goo.gle/mwg

PayPal recently tested the WebMCP proposed standard to streamline agentic commerce. By replacing more than 30 complex interface-interaction steps with 3 structured tool calls, they delivered a significantly faster and more consistent E2E checkout experience for AI assistants β†’ goo.gle/4yXHc8E

Chrome for Developers reposted

Modern Web Guidance v0.0.192 is out. With it your coding agent now knows how to: β€’ build SMS one-time-code forms that autofill (WebOTP) β€’ make dark mode toggles that follow the OS β€’ honor the OS text size setting β€’ reduce INP and lazy-load video/audio β€’ feature-detect CSS at-rules with @supports

Chrome for Developers reposted

Ensure your coding agent creates more accessible, progressively enhanced web forms, with Modern Web Guidanceβ†’ goo.gle/mwg Discover how Modern Web Guidance skills help agents handle: ⌨️ Adding the Enter key hint attribute 🏷️ Correct autocomplete values 🎨 Autofill styling as a progressive enhancement

Chrome for Developers reposted

Well well, what do we have here? Try it Chrome Canary. #CSS #AnchorPositioning #DevTools

Entry and exit animations in a card-based UI can break if card or screen dimensions change. Newer CSS animation properties can help, but not all browsers support them. We gave a coding agent the same prompt twice: once unaided, once with Modern Web Guidance installed 🧡

With the guidance, the agent: βœ… Decoupled entry and exit animations βœ… Avoided fragile percentage calculations βœ… Implemented fallbacks for browsers that don't support needed animation properties

Speed up your web debugging workflow with the latest DevTools features β†’ goo.gle/4hApcKj 🧠 Debug memory issues with new tools in DevTools for agents 🧭 Track soft navigations in the Performance panel πŸ”„ Replay network requests instantly with new context menu options

Loved scroll-driven animations? Meet their scroll-triggered sibling. Instead of tying animation progress directly to the scrollbar, you can trigger full time-based CSS animations when crossing a scroll offset. See how to build them with pure CSS β†’ goo.gle/4dhcvmh

Build JS-free interactive carousels with new CSS APIs β†’ goo.gle/47reBwt Learn how to use scroll buttons, scroll markers, :target-current, and scroll-target-group to create built-in, responsive scrollers without writing a single line of JavaScript.

Teach your coding agent to write scroll-driven animations with Modern Web Guidance β†’ goo.gle/mwg See how Modern Web Guidance helps your coding agent build resilient scroll animations that won't break on different screen sizes.

Chrome for Developers reposted

Connection Allowlists announcement blog post has been published. developer.chrome.com/blog/connect...

developer.chrome.comConnection allowlists: Secure your web application's network access Β |Β  Blog Β |Β  Chrome for DevelopersChrome 152 introduces connection allowlists, a new security mechanism that lets you create a strict network sandbox for your documents and workers.

"Connection Allowlists," a browser-level security mechanism that blocks any outbound network communication not matching your permitted URL patterns, is now available starting in Chrome 152.

See how Modern Web Guidance helps your coding agent write a swipe-to-remove feature. Compare side-by-side with an unassisted agent. Modern Web Guidance provides best practices, smooth web animation patterns, and cross-browser fallbacks directly to your coding agent β†’ goo.gle/mwg

Build interactive components like sticky headers and overflow indicators with state-based container queries β†’ goo.gle/4d53htk In this episode, learn how to use scroll state queries for stuck, snapped, and scrollable UI elements to create dynamic web experiences without relying on extra JavaScript.

goo.gle93: State queries in 2025Una and Bramus dive into the latest advancements in CSS with state-based container queries. Learn how to create responsive and dynamic user experiences by qu...

Building dynamic touch gestures like swipe-to-remove often causes coding agents to generate overly complex JavaScript, leading to janky animations. Modern Web Guidance solves this by providing your agent with structured, up-to-date implementation guides β†’ goo.gle/mwg

hasStorageAccess() and requestStorageAccess() are now widely available baseline web platform features. The Storage Access API lets embedded content access cookies and unpartitioned state seamlessly, keeping user privacy intact while supporting modern standards. Learn more on MDN β†’ goo.gle/3TuiZYl