Browser Support Policy — Baseline
RULES.md
HAX supports the current and previous release of each evergreen browser (Chrome, Edge, Firefox, Safari). In Baseline terms: **Widely available** features are used freely; **Newly available** features are allowed behind feature detection (`'x' in obj`, `CSS.supports()`, `@supports`) with a plainer path that still works without them; **Limited availability** needs a reason in the PR plus the same detection. No polyfills, and no dependency added only to fake a platform feature. This replaces Modern Web Guidance's default, which treats only Widely available as safe and adds fallbacks for the rest. Repos state it in `AGENTS.md` as: `**Browser Support:** Current and previous evergreen browsers. Baseline Widely available features without fallbacks; Baseline Newly available features behind feature detection with a working plain path; no polyfills.` The `baseline-js` lint is the PR-time check. Tracking: <https://github.com/haxtheweb/issues/issues/3298>. In PRAW RULES.md (scope: webcomponents). Enforced by ESLint. ESLint baseline-js/use-baseline in webcomponents flags JavaScript features that are not Baseline Widely available unless the line says why; an error in CI and in yarn precheck. CSS and HTML features are not checked.
Connects to
- Build & Development Workflow includes this
- ESLint enforces this
- Serves Accessible
- Serves Sustainable
- Applies to Web components