modern-web-guidance
Google Chrome's modern web platform guides (HTML, CSS, client JS, a11y, forms, performance, security), read locally. Use when writing or changing web frontend UI code; not backend, infra, or tooling. /modern-web-guidance
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-15
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- modern-web-guidance
- description
- Google Chrome's modern web platform guides (HTML, CSS, client JS, a11y, forms, performance, security), read locally. Use when writing or changing web frontend UI code; not backend, infra, or tooling. /modern-web-guidance
02 资源文件 214
- 参考文档guides/accessibility/accessibility.md50.5 KB
- 参考文档guides/accessibility/accessible-error-announcement.md13.3 KB
- 参考文档guides/accessibility/accessible-generated-content.md2.2 KB
- 参考文档guides/accessibility/respect-os-text-scale.md7.1 KB
- 参考文档guides/built-in-ai/language-detection.md3.6 KB
- 参考文档guides/built-in-ai/language-model.md19.0 KB
- 参考文档guides/built-in-ai/prompt-api.md19.0 KB
- 参考文档guides/built-in-ai/summarizer.md6.2 KB
- 参考文档guides/built-in-ai/translator.md7.2 KB
- 参考文档guides/css/animate-to-intrinsic-sizes.md5.7 KB
- 参考文档guides/css/atrule-support-conditionals.md5.6 KB
- 参考文档guides/css/calculate-with-intrinsic-sizes.md10.4 KB
- 参考文档guides/css/child-state-based-styling.md4.9 KB
- 参考文档guides/css/content-based-styling.md5.2 KB
- 参考文档guides/css/css-layout.md21.2 KB
- 参考文档guides/css/css.md12.3 KB
- 参考文档guides/css/design-token-reactivity.md5.8 KB
- 参考文档guides/css/dynamic-sibling-styling.md3.6 KB
- 参考文档guides/css/fluid-scaling.md3.2 KB
- 参考文档guides/css/individual-transform-properties.md3.6 KB
- 参考文档guides/css/overflow-clipping-control.md8.1 KB
- 参考文档guides/css/reduce-style-repetition.md3.9 KB
- 参考文档guides/css/responsive-design.md1.8 KB
- 参考文档guides/css/selector-atrule-combinations.md3.6 KB
- 参考文档guides/css/size-aware-styling.md2.9 KB
- 参考文档guides/css/style-parent-with-has.md13.6 KB
- 参考文档guides/css/usage-aware-component-variations.md5.1 KB
- 参考文档guides/forms/animated-select-picker.md8.5 KB
- 参考文档guides/forms/autofill-address-form.md4.9 KB
- 参考文档guides/forms/autofill-highlight-inputs.md3.5 KB
- 参考文档guides/forms/autofill-payment-form.md9.7 KB
- 参考文档guides/forms/autofill-sign-in-form.md10.5 KB
- 参考文档guides/forms/autofill-sign-up-form.md11.6 KB
- 参考文档guides/forms/brand-consistent-forms.md8.4 KB
- 参考文档guides/forms/branded-select-styling.md5.6 KB
- 参考文档guides/forms/custom-select-picker-layouts.md7.8 KB
- 参考文档guides/forms/form-fields-automatically-fit-contents.md5.9 KB
- 参考文档guides/forms/forms.md18.9 KB
- 参考文档guides/forms/ime-safe-enter-submit.md6.3 KB
- 参考文档guides/forms/required-field-feedback.md13.9 KB
- 参考文档guides/forms/rich-media-picker.md10.5 KB
- 参考文档guides/forms/select-menu-interaction.md12.9 KB
- 参考文档guides/forms/slider.md6.5 KB
- 参考文档guides/forms/sms-otp-form.md12.5 KB
- 参考文档guides/forms/switch.md2.5 KB
- 参考文档guides/forms/validate-input-after-interaction.md17.2 KB
- 参考文档guides/html/accessible-web-components.md5.1 KB
- 参考文档guides/html/custom-elements.md9.3 KB
- 参考文档guides/html/form-associated-custom-elements.md4.9 KB
- 参考文档guides/html/html.md20.8 KB
- 参考文档guides/html/prerendering-custom-elements.md3.6 KB
- 参考文档guides/html/shadow-dom.md3.8 KB
- 参考文档guides/html/styling-web-components.md8.7 KB
- 参考文档guides/html/web-components.md6.6 KB
- 参考文档guides/js/calculate-event-differentials.md8.3 KB
- 参考文档guides/js/capture-location-agnostic-data.md9.7 KB
- 参考文档guides/js/coordinate-global-events.md4.0 KB
- 参考文档guides/js/sort-high-precision-timestamps.md6.6 KB
- 参考文档guides/js/support-global-calendar-systems.md5.8 KB
- 参考文档guides/performance/batch-analytics-events.md6.4 KB
- 参考文档guides/performance/break-up-long-tasks.md2.2 KB
- 参考文档guides/performance/calculate-total-foreground-time.md2.9 KB
- 参考文档guides/performance/conditional-async-dependencies.md5.3 KB
- 参考文档guides/performance/defer-rendering-heavy-content.md6.3 KB
- 参考文档guides/performance/defer-work-until-scroll-ends.md3.3 KB
- 参考文档guides/performance/deliver-optimized-decorative-images.md2.8 KB
- 参考文档guides/performance/deprioritize-background-fetches.md1.8 KB
- 参考文档guides/performance/detect-initial-visibility-state.md4.6 KB
- 参考文档guides/performance/efficient-background-processing.md5.0 KB
- 参考文档guides/performance/faster-spa-view-transitions.md3.6 KB
- 参考文档guides/performance/flicker-free-client-side-ab-testing.md8.5 KB
- 参考文档guides/performance/full-session-analytics.md5.7 KB
- 参考文档guides/performance/identify-heavy-scripts.md4.2 KB
- 参考文档guides/performance/identify-inp-causes.md8.7 KB
- 参考文档guides/performance/improve-next-page-load-performance.md7.2 KB
- 参考文档guides/performance/interaction-paint-timing.md11.2 KB
- 参考文档guides/performance/interactions-in-complex-layouts.md3.4 KB
- 参考文档guides/performance/lazy-load-video-and-audio.md9.3 KB
- 参考文档guides/performance/optimize-image-priority.md4.5 KB
- 参考文档guides/performance/optimize-preload-priority.md3.3 KB
- 参考文档guides/performance/optimize-script-priority.md2.6 KB
- 参考文档guides/performance/out-of-order-html-streaming.md12.1 KB
- 参考文档guides/performance/performance.md20.6 KB
- 参考文档guides/performance/resolution-optimized-pseudo-elements.md2.3 KB
- 参考文档guides/performance/schedule-tasks-by-priority.md2.3 KB
- 参考文档guides/privacy/privacy.md11.0 KB
- 参考文档guides/pwa/install-web-app.md15.0 KB
- 参考文档guides/pwa/migrate-web-app-origin.md3.6 KB
- 参考文档guides/security/client-side-encryption.md14.8 KB
- 参考文档guides/security/digital-signatures.md9.9 KB
- 参考文档guides/security/local-network-access.md12.3 KB
- 参考文档guides/security/passkey-authentication.md11.5 KB
- 参考文档guides/security/passkey-conditional-create.md7.9 KB
- 参考文档guides/security/passkey-management.md17.3 KB
- 参考文档guides/security/passkey-reauthentication.md6.4 KB
- 参考文档guides/security/passkey-registration.md10.3 KB
- 参考文档guides/security/passkeys.md4.9 KB
- 参考文档guides/security/quick-sign-ins.md17.5 KB
- 参考文档guides/security/restrict-outbound-connections.md13.2 KB
- 参考文档guides/security/sanitize-untrusted-html.md5.6 KB
- 参考文档guides/security/secure-external-subresources.md14.5 KB
- 参考文档guides/security/security.md29.3 KB
- 参考文档guides/security/trusted-types.md7.3 KB
- 参考文档guides/security/validate-origins.md12.7 KB
- 参考文档guides/security/verify-email-ownership.md14.5 KB
- 参考文档guides/ui-atoms/carousel-slide-effects.md10.1 KB
- 参考文档guides/ui-atoms/component-specific-light-dark-theme.md9.5 KB
- 参考文档guides/ui-atoms/icons.md17.9 KB
- 参考文档guides/ui-atoms/position-aware-tooltips.md8.3 KB
- 参考文档guides/ui-atoms/pull-to-reveal.md5.0 KB
- 参考文档guides/ui-atoms/responsive-table.md4.4 KB
- 参考文档guides/ui-atoms/scroll-position-aware-elements.md3.6 KB
- 参考文档guides/ui-atoms/scroll-progress-indicator.md6.6 KB
- 参考文档guides/ui-atoms/scrollability-affordance-hints.md11.9 KB
- 参考文档guides/ui-atoms/shrinking-header-on-scroll.md7.0 KB
- 参考文档guides/ui-atoms/single-line-overflow.md16.1 KB
- 参考文档guides/ui-atoms/state-aware-sticky-headers.md6.7 KB
- 参考文档guides/ui-atoms/viewport-aware-dropdowns.md9.9 KB
- 参考文档guides/ui-behaviors/2d-panning.md9.2 KB
- 参考文档guides/ui-behaviors/anchor-positioning-tab-underline.md3.1 KB
- 参考文档guides/ui-behaviors/animate-element-entry-exit.md7.7 KB
- 参考文档guides/ui-behaviors/animate-to-from-top-layer.md10.7 KB
- 参考文档guides/ui-behaviors/carousel-snap-highlights.md7.5 KB
- 参考文档guides/ui-behaviors/consistent-cross-document-transitions.md13.9 KB
- 参考文档guides/ui-behaviors/cross-document-transitions.md4.4 KB
- 参考文档guides/ui-behaviors/custom-button-actions.md8.2 KB
- 参考文档guides/ui-behaviors/declarative-dialog-popover-control.md7.6 KB
- 参考文档guides/ui-behaviors/directional-navigation-transitions.md5.1 KB
- 参考文档guides/ui-behaviors/drag-and-drop.md16.4 KB
- 参考文档guides/ui-behaviors/drag.md6.8 KB
- 参考文档guides/ui-behaviors/dynamic-sibling-animations.md2.6 KB
- 参考文档guides/ui-behaviors/dynamic-sort.md6.9 KB
- 参考文档guides/ui-behaviors/group-element-transitions.md6.2 KB
- 参考文档guides/ui-behaviors/highlight-text-ranges.md6.4 KB
- 参考文档guides/ui-behaviors/interactive-content-reveal.md5.7 KB
- 参考文档guides/ui-behaviors/interest-triggered-action-previews.md4.9 KB
- 参考文档guides/ui-behaviors/interest-triggered-tooltips.md19.8 KB
- 参考文档guides/ui-behaviors/light-dismiss-a-dialog.md4.1 KB
- 参考文档guides/ui-behaviors/motion.md7.6 KB
- 参考文档guides/ui-behaviors/move-dom-element-without-losing-state.md3.8 KB
- 参考文档guides/ui-behaviors/parallax-scroll-effects.md9.5 KB
- 参考文档guides/ui-behaviors/persistent-top-layer-ui.md2.3 KB
- 参考文档guides/ui-behaviors/physics-based-easing.md5.8 KB
- 参考文档guides/ui-behaviors/platform-controls-dismiss-dialog.md2.6 KB
- 参考文档guides/ui-behaviors/prevent-page-scroll-under-modal-dialog.md5.0 KB
- 参考文档guides/ui-behaviors/same-document-transitions.md8.3 KB
- 参考文档guides/ui-behaviors/scoped-component-transitions.md11.7 KB
- 参考文档guides/ui-behaviors/scroll-completion-effects.md7.5 KB
- 参考文档guides/ui-behaviors/scroll-entry-exit-effects.md9.8 KB
- 参考文档guides/ui-behaviors/scroll-snap-realtime-feedback.md10.7 KB
- 参考文档guides/ui-behaviors/scroll-snap-state-sync.md4.8 KB
- 参考文档guides/ui-behaviors/scroll-target-on-load.md3.4 KB
- 参考文档guides/ui-behaviors/scrollytelling.md8.8 KB
- 参考文档guides/ui-behaviors/search-hidden-content.md6.8 KB
- 参考文档guides/ui-behaviors/sortable-table.md7.7 KB
- 参考文档guides/ui-behaviors/spatial-navigation.md6.8 KB
- 参考文档guides/ui-behaviors/swipe-to-remove.md33.9 KB
- 参考文档guides/ui-behaviors/swipe-to-reveal.md14.2 KB
- 参考文档guides/ui-components/accordion.md14.7 KB
- 参考文档guides/ui-components/app-menus.md15.7 KB
- 参考文档guides/ui-components/breadcrumbs.md12.3 KB
- 参考文档guides/ui-components/card.md8.2 KB
- 参考文档guides/ui-components/carousel.md15.1 KB
- 参考文档guides/ui-components/checkbox.md5.7 KB
- 参考文档guides/ui-components/copy-button.md14.5 KB
- 参考文档guides/ui-components/dark-mode-toggle.md9.2 KB
- 参考文档guides/ui-components/dialog.md12.1 KB
- 参考文档guides/ui-components/hovercard.md20.9 KB
- 参考文档guides/ui-components/menu.md31.1 KB
- 参考文档guides/ui-components/navbar.md17.8 KB
- 参考文档guides/ui-components/navigation-drawer.md20.3 KB
- 参考文档guides/ui-components/persistent-app-tours.md11.2 KB
- 参考文档guides/ui-components/persistent-toast-notifications.md13.8 KB
- 参考文档guides/ui-components/progress-ring.md6.9 KB
- 参考文档guides/ui-components/progress.md10.6 KB
- 参考文档guides/ui-components/scrollspy.md6.9 KB
- 参考文档guides/ui-components/spinner.md5.9 KB
- 参考文档guides/ui-components/stack-drill-down.md36.5 KB
- 参考文档guides/ui-components/tabs.md21.7 KB
- 参考文档guides/ui-components/toolbar.md21.5 KB
- 参考文档guides/user-experience/content-first-noise-reduction.md8.3 KB
- 参考文档guides/user-experience/form-factor-adaptation.md6.0 KB
- 参考文档guides/user-experience/natural-interactions.md9.7 KB
- 参考文档guides/visual-design/adapt-scrollbar-to-contrast-preferences.md3.6 KB
- 参考文档guides/visual-design/apply-webgl-shaders.md13.1 KB
- 参考文档guides/visual-design/browser-ui-theming.md4.1 KB
- 参考文档guides/visual-design/color.md4.4 KB
- 参考文档guides/visual-design/complex-shapes.md3.5 KB
- 参考文档guides/visual-design/contrast-color.md7.1 KB
- 参考文档guides/visual-design/custom-text-decorations.md16.4 KB
- 参考文档guides/visual-design/customize-scrollbar-color-and-thickness.md2.7 KB
- 参考文档guides/visual-design/dark-mode.md16.8 KB
- 参考文档guides/visual-design/equal-width-text-lines.md6.4 KB
- 参考文档guides/visual-design/export-html-media-from-canvas.md17.1 KB
- 参考文档guides/visual-design/expose-canvas-content-to-browser-features.md19.6 KB
- 参考文档guides/visual-design/improve-text-layout-and-legibility.md5.1 KB
- 参考文档guides/visual-design/interactive-content-in-3d-scenes.md19.2 KB
- 参考文档guides/visual-design/precise-text-alignment.md4.8 KB
- 参考文档guides/visual-design/shaped-cutouts.md7.1 KB
- 参考文档guides/visual-design/soft-edge-content-fade.md2.6 KB
- 参考文档guides/visual-design/typography.md3.6 KB
- 参考文档guides/visual-design/visual-effects.md3.5 KB
- 参考文档guides/visual-design/visually-stable-font-fallbacks.md2.9 KB
- 参考文档guides/visual-design/visually-stable-mixed-fonts.md2.8 KB
- 参考文档guides/visual-design/visually-texture-content.md3.7 KB
- 参考文档guides/wasm/cpp-on-the-web.md8.0 KB
- 参考文档guides/webmcp/agentic-forms.md6.2 KB
- 参考文档guides/webmcp/agentic-javascript-tools.md22.1 KB
- 参考文档guides/webmcp/webmcp.md4.3 KB
- 参考文档INDEX.md21.9 KB
- 许可证LICENSE11.1 KB
- 参考文档NOTICE.md945 B
- 参考文档UPSTREAM_SKILL.md9.6 KB
- 参考文档VENDORED.json24.4 KB
03 SKILL.md 正文
Modern Web Guidance
Google Chrome's guides, vendored at a pinned release (VENDORED.json). Apache-2.0 (LICENSE, NOTICE.md).
Offline only. Never run npx/pnpx modern-web-guidance (no @latest, no install, no legacy-scan): it fetches unpinned code and sends telemetry. If something insists, set DISABLE_TELEMETRY=1 and pin 1.0.0.
Lookup
- Search:
grep -i "<2-5 words>" INDEX.md(ids, files, titles), orgrep -rilunderguides/. Name the UI primitive (dialog,popover,date input), not the framework. - Read the matching
guides/<area>/<id>.mdin full, plus the area's overview guide (css,html,forms,accessibility,performance,security) when it applies. - A guide's
retrieve "<id>"means readguides/*/<id>.md. - Apply it; check the code against the guide and its fallbacks. Baseline Widely available needs no fallback unless the project sets a browser policy.
- When a guide shaped the change, name its id and the rule in your summary.
UPSTREAM_SKILL.md is Google's original text (framework tips, browser support); its npx steps are replaced by this lookup. Resync: docs/modern-web-guidance.md.
04 同仓库更多 Skills
stageshow
Build faux product UI that looks like a real product, as a still or an animated cursor demo. Browser and app windows, dashboards, phones, notifications, terminals, bento grids and walkthroughs, framed for a marketing page, feature card or docs hero. Use for any fake or mocked UI, product demo animation, hero or feature-card illustration, or animated cursor in an interface. React and plain CSS. /stageshow.
chrome-extensions
Google Chrome's Manifest V3 guide for building, debugging, and publishing Chrome extensions (manifest, service worker, content scripts, side panel, chrome.* APIs, Web Store review). Use only for Chrome extension work. /chrome-extensions