Hasty Briefsbeta

Bilingual

Maybe Don't Rely on Google's "Modern Web Guidance"

3 hours ago
  • #web development
  • #accessibility
  • #AI coding
  • Google's Modern Web Guidance (MWG) aims to provide evergreen, expert-vetted skills for AI coding agents to build accessible, performant, and secure web experiences.
  • MWG's accessibility guidance is insufficient, lacking tailored patterns for common elements like toasts and failing to ensure WCAG AA compliance.
  • An example prompt for an accordion component generated non-DRY code with accessibility errors, Firefox compatibility issues, and unwanted extras like theme switchers.
  • MWG acknowledges that LLMs are non-deterministic, meaning guidelines may be ignored or incompletely applied, undermining trust in generated code.
  • Developers should rely on deterministic, vetted pattern libraries for consistent, error-free code, rather than trusting MWG and LLMs, unless token usage is mandatory.