Lurker News
Browsers natively handle a lot of what used to take 50 lines of JS (or a dependency): `CSS.highlights` for text range highlighting without s everywhere, `` and showModal() give you backdrops and ideal focus management, `field-sizing` to auto-grow textareas as the user types.. (Something yesterday's ftrain post touched on [0])

Models know about some of these by name, but consistently won't default to using the platform-native solution and instead prefer the incumbent +JS based pattern. We started an effort in Chrome to supplement coding agents with this key domain knowledge and we're shipping our 1.0 today, in collaboration with Firefox, MDN, and Edge.
200+ guides (~1.7MB) of curated, hand-crafted implementation best-practices from web experts, updated as the web evolves. (Open source, obv, so.. we'll welcome your bikeshedding ;) Readable versions here: [1]
I've spent the last 9 months obsessing over how to ship this as an agent skill + (Agentic RAG) CLI without blowing up your context window. (Or cedeing activation mechanics to MCP dynamic tool search). The skill description is minmaxed for activating on relevant frontend tasks. The RAG work I'm pretty proud of… originally a 500mb native stack down to a ~7MB pure-JS package, ~10ms search on your CPU.
We just introduced a deterministic 'legacy-scan' (trained on 30k github repos) to identify old 'n dusted patterns that your agent can modernize. (92% avg precision on held-out repos.)
People make a lot of claims about what coding agents are good/bad at. We wanted receipts, so we invested heavily in eval infra [2] to help us hill-climb, but also to identify when knowledge is common enough we can prune our guides. (Ofc, some of the things we thought AI didn't know turned out to be wrong :) We run codex/claude/agy against 200 tasks without the skill and then with.. In total ~1,700 playwright/AST-based assertions. Agents go from 55% pass unguided to 92% guided.
Try it out:

    DISABLE_TELEMETRY=1 npx modern-web-guidance@latest install
    DISABLE_TELEMETRY=1 npx modern-web-guidance@latest search "animate dialog modal"
    DISABLE_TELEMETRY=1 npx modern-web-guidance@latest legacy-scan ./src
If you spot something wrong or weird, give us a holler!

Longer write-up on the 1.0: https://developer.chrome.com/blog/modern-web-guidance-v1
---
0: https://news.ycombinator.com/item?id=50416456
1: https://developer.chrome.com/docs/modern-web-guidance/guides
2: https://googlechrome.github.io/modern-web-guidance-src/

Comments (146) 60 threads

Show all comments

Showing thread 3 of 60

advisedwang5 replies#
Chrome already has too much power in the browser standards world. The last thing we need is everyone's LLMs to follow Chrome team's guidance on how to do web development. This road leads back to "To view this site, please view in [DOMINANT BROWSER]"
philipwalton4 replies#
Mozilla Firefox and Microsoft Edge are also contributors to this project, so this is a cross-browser initiative to help improve how agents build for the web.
troupo1 reply#
That's why it seems to skip the most egregious of Chrome-only APIs and focuses on areas where there's large cross-browser agreement.
philipwalton1 reply#
Cross-browser compatibility has been a guiding principle for this project from the start. See: https://youtu.be/bo3i0FzDUYo?si=EqIgY_Kh_r_hSgdE&t=686

Also Mozilla only joined in the last few weeks, so they haven't yet had a big influence on the project (though I expect they will going forward).

Continue this thread — 1 reply

phendrenad2#
They back it because they have no choice. We have no real independent browsers in 2026. And it's sad that the fact that we don't have independent browsers is being twisted into proof that Google doesn't have much power.
philwelch1 reply#
Edge is just a rebranded Chrome. “Cross browser” except it’s different skins of Chrome, what a joke.
jefftk1 reply#
Firefox is not a skin of Chrome; it has the only browser engine in common use that's not descended from KHTML.

Continue this thread — 1 reply

LordDragonfang1 reply#
Edge is Chrom[ium], so that's not very meaningful. It's good that Firefox is at the table, but that table has three seats for Chromium to only one for Firefox, and a de-facto 3/5 majority[1]. And without Safari at the table, you're missing the single most important mobile browser engine (all browsers on iOS, including Chrome).

[1] https://github.com/GoogleChrome/modern-web-guidance-src/blob...

philipwalton#
We would love to have Safari join the project, and we're currently in discussion with them about that. There are also two additional owners seats for independent experts (one of whom is currently filled by Lea Verou).
LordDragonfang#
Edge is Chrom[ium], so that's not very meaningful. And without Safari at the table, you're missing the single most important mobile browser engine (all browsers on iOS, including Chrome).
0o7771 reply#
Both Mozilla and the Google Chrome team are part of the Web Baseline project and this project. They only recommend best practices supported by Chrome, Firefox, Edge, and Safari.

https://web-platform-dx.github.io/baseline/

simonjgillespie#
No Netsurf. I guess thats why you also switched off access on google search pages too because unless a browser is bigger than 1G its not a real browser?
xnx#
Not my opinion, but I do wonder if sharing from a different repo would feel more neutral.
tonymet1 reply#
Let the best API win. why hold them back?
girvo#
Because Google/Chrome should’ve been split up under antitrust grounds, instead of the “too hard let’s not bother” judgment they ended up with.