Browser support
Prismora is built on what current browsers do themselves, and says exactly which versions that means.
Supported versions
| Browser | From version | Released |
|---|---|---|
| Chrome, Edge and other Chromium browsers | 123 | March 2024 |
| Firefox | 128 | July 2024 |
| Safari (macOS, iOS, iPadOS) | 17.5 | May 2024 |
The automated suites (behaviour, accessibility, right-to-left, phone layouts, templates and this site) run in
Chrome on every push, and in Firefox and in WebKit, the engine of Safari, before a release
(BROWSER=firefox bun test tests/components.test.ts). The WebKit runs are on Linux: they find what
differs in the engine, but they are not Safari on a Mac or an iPhone, which is checked by hand. If something differs
in one browser, that is a bug: please report it.
What those versions are for
These features are used everywhere and have no fallback. The newest of them sets the versions above.
| Feature | Used for | Chrome | Firefox | Safari |
|---|---|---|---|---|
light-dark() | Every colour token, in light and dark | 123 | 120 | 17.5 |
| Popover API | Menus, selects, tooltips, toasts | 114 | 125 | 17 |
@property | Typed tokens, animated values | 85 | 128 | 16.4 |
:has() | States that depend on content | 105 | 121 | 15.4 |
| CSS nesting, cascade layers, container queries | All component CSS | 120 | 117 | 17.2 |
oklch() and color-mix() | Theme colours | 111 | 113 | 16.2 |
| Form-associated custom elements | Every form control | 77 | 98 | 16.4 |
<dialog> | Dialogs and drawers | 37 | 98 | 15.4 |
Used when the browser has it
Newer features only improve what already works. Each has a fallback, so a browser without it loses polish, not function.
| Feature | With it | Without it |
|---|---|---|
@starting-style, transition-behavior | Overlays animate in and out | They appear and disappear at once |
| Anchor positioning | The marker of the selected tab slides between tabs | Each tab draws its own underline |
Customizable select (appearance: base-select) | The native select is styled | pm-select draws its own list |
| View transitions | Pages and app screens slide or fade | They change at once |
| Scroll-driven animations | Reveals and progress follow the scroll | Content is shown without the effect |
interpolate-size, ::details-content | Accordions animate their height | They open at once |
field-sizing | Text areas grow with their text | They keep their rows and scroll |
corner-shape, sibling-index() | Squircle corners; lists of any length stagger | Round corners; the first items stagger |
CloseWatcher | The Android back gesture closes overlays | Esc and the close button do |
ariaNotify() | Toasts are announced directly | A live region announces them |
EyeDropper | The colour picker can pick from the screen | The button is not shown |
User and device settings
- Reduced motion: movement stops; loading indicators slow down instead.
- More contrast and forced colours (Windows high contrast): borders and focus rings get stronger; tokens map to system colours.
- Reduced transparency: glass surfaces become opaque.
- Touch: targets are at least 44 px, and text fields are 16 px on touch screens so iOS does not zoom.
- Right-to-left: every component uses logical properties; all templates are tested with
dir="rtl". - Without JavaScript:
@prismora/cssstyles plain HTML (buttons, inputs, tables, cards) by class; the elements need their script.
How the versions move
A feature becomes required once it is Baseline Widely available (in every engine for about two and a half years) or when all three engines have had it for over a year. Raising a version in the first table is a breaking change: it is announced in the changelog and follows the versioning policy.
Servers and build tools
- Server rendering: every package can be imported in Node without a DOM. See server rendering.
- CLI and MCP server: Node 20 or newer, or Bun.
- Bundlers: anything that reads package
exports(Vite, webpack 5, Rollup, esbuild, Turbopack, Parcel). No plugin is needed. - TypeScript: 5.0 or newer, with
moduleResolutionset tobundler,node16ornodenext.