{"id":10240,"date":"2026-06-25T10:14:08","date_gmt":"2026-06-25T15:14:08","guid":{"rendered":"https:\/\/master.dev\/blog\/?p=10240"},"modified":"2026-06-25T10:14:09","modified_gmt":"2026-06-25T15:14:09","slug":"modern-web-guidance","status":"publish","type":"post","link":"https:\/\/master.dev\/blog\/modern-web-guidance\/","title":{"rendered":"Modern Web Guidance"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Google released an AI &#8220;skill&#8221; at Google I\/O last month called <a href=\"https:\/\/developer.chrome.com\/docs\/modern-web-guidance\">Modern Web Guidance<\/a>. It&#8217;s essentially a folder of nested Markdown files that AI agents know how to read and use as part of their context window when they deem appropriate. This skill has a bunch of HTML\/CSS\/JavaScript information that guides AI to, hopefully, do a much better job at these languages than even high-power models do alone (because there is always a time-and-training gap between platform releases and model updates). <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Honestly I&#8217;ve found it to do a pretty good job, handling things like fallbacks and user preferences (e.g. <code>prefers-reduced-motion<\/code>) well, which is too easily forgotten. Check out <a href=\"https:\/\/github.com\/GoogleChrome\/modern-web-guidance\/blob\/main\/skills\/modern-web-guidance\/guides\/user-experience\/animate-to-from-top-layer.md\">this Markdown file<\/a>, which essentially explains (in AI-speak) how to do what I taught you to do (in Human-speak) in my series <a href=\"https:\/\/master.dev\/blog\/in-n-out-animations-dialogs-part-1-3\/\">In-N-Out Animations<\/a>. I&#8217;m not going to vouch for it producing perfect and accessible code every time or anything foolish like that. You should know what you&#8217;re doing.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p class=\"wp-block-paragraph\">Here&#8217;s an example of the AI-speak:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<ul class=\"wp-block-list\">\n<li><strong>MANDATORY<\/strong>: Include\u00a0<code>overlay<\/code>\u00a0in your\u00a0<code>transition<\/code>\u00a0list for any element moving into or out of the top layer.<\/li>\n\n\n\n<li><strong>MANDATORY<\/strong>: Use\u00a0<code>allow-discrete<\/code>\u00a0for the\u00a0<code>display<\/code>\u00a0property transition.<\/li>\n\n\n\n<li><strong>MANDATORY<\/strong>: Respect user preferences for reduced motion using\u00a0<code>prefers-reduced-motion<\/code>\u00a0by simplifying transitions (e.g., removing transforms and shortening duration).<\/li>\n\n\n\n<li><strong>DO<\/strong>: Place the\u00a0<code>@starting-style<\/code>\u00a0block inside or after the &#8220;open&#8221; state selector to ensure proper cascading.<\/li>\n\n\n\n<li><strong>DO NOT<\/strong>: Use\u00a0<code>@starting-style<\/code>\u00a0for exit animations; exit animations are defined by the transition to the base (closed) state.<\/li>\n<\/ul>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Google released an AI &#8220;skill&#8221; at Google I\/O last month called Modern Web Guidance. It&#8217;s essentially a folder of nested Markdown files that AI agents know how to read and use as part of their context window when they deem appropriate. This skill has a bunch of HTML\/CSS\/JavaScript information that guides AI to, hopefully, do [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":10241,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"sig_custom_text":"","sig_image_type":"featured-image","sig_custom_image":0,"sig_is_disabled":false,"inline_featured_image":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[29],"tags":[104,100,500],"class_list":["post-10240","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-the-beat","tag-ai","tag-animation","tag-modern-web-guidance"],"acf":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/master.dev\/blog\/wp-content\/uploads\/2026\/06\/Screenshot-2026-06-25-at-8.12.31-AM.png?fit=1116%2C646&ssl=1","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/master.dev\/blog\/wp-json\/wp\/v2\/posts\/10240","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/master.dev\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/master.dev\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/master.dev\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/master.dev\/blog\/wp-json\/wp\/v2\/comments?post=10240"}],"version-history":[{"count":2,"href":"https:\/\/master.dev\/blog\/wp-json\/wp\/v2\/posts\/10240\/revisions"}],"predecessor-version":[{"id":10243,"href":"https:\/\/master.dev\/blog\/wp-json\/wp\/v2\/posts\/10240\/revisions\/10243"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/master.dev\/blog\/wp-json\/wp\/v2\/media\/10241"}],"wp:attachment":[{"href":"https:\/\/master.dev\/blog\/wp-json\/wp\/v2\/media?parent=10240"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/master.dev\/blog\/wp-json\/wp\/v2\/categories?post=10240"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/master.dev\/blog\/wp-json\/wp\/v2\/tags?post=10240"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}