Vanilla Breeze v0.7.4

Vanilla Breeze v0.7.4 released

0.7.4 gives the Ambient pack weather. A page names one feed URL on its own site, and the pack sets data-weather from it, uses its sunrise and sunset for dawn and dusk, and never shows a stale observation. Helpers for producing the feed from Open-Meteo are included. Ambient p…

Read the release notes

change-set

Interactive change tracking group that wraps related ins and del elements with toggle controls for tracking, final, and original views.

Overview

The <change-set> element groups related <ins> and <del> elements into a reviewable unit. Users can toggle between three views: tracked changes (both visible), final text (only insertions), or original text (only deletions).

The view states are CSS-only via the view attribute. JavaScript adds a caption built from author / datetime (“Changes by tpowell, Feb 20, 2026”) and Tracking / Final / Original toggle buttons.

View States

StateWhat's VisibleHow to Set
Tracking (default) Both <ins> and <del> No view attribute
Final Only <ins> content view="final"
Original Only <del> content view="original"

Static View (No JS)

Set view directly in markup for server-rendered or static pages. No JavaScript is needed for the visual states. Add controls="none" when readers should not switch views; the toggle buttons are then not rendered.

Multiple Changes

A single <change-set> can group changes across multiple sections. All <ins> and <del> descendants are toggled together.

Attributes

AttributeValuesDefaultDescription
view final, original Omitted (tracking) Controls which content is visible. Observed: changing it updates the toggles' pressed state.
datetime ISO 8601 date — Date of the change set. Rendered in the caption and in the toggle group's accessible name.
author String — Author of the changes. Rendered in the caption and in the toggle group's accessible name.
controls none Omitted (toggles shown) none renders no toggle buttons (fixed view)

JavaScript API

Events

EventDetailDescription
change-set:view { view: 'tracking' | 'final' | 'original', source?: 'api' } Fired when the view mode changes. Bubbles. source: 'api' when set through the view property; absent for toggle clicks.

Accessibility

  • Toggle buttons use aria-pressed to indicate the active view, starting from the view attribute
  • The toggles sit in a role="group" (not a landmark — a page can hold many change sets) named “Change view” plus the caption, e.g. “Change view, Changes by tpowell, Feb 20, 2026”
  • In tracking view each <ins> / <del> gets visually-hidden start / end markers (“[insertion start]” … “[insertion end]”) as generated content, because screen readers do not reliably announce those elements. Localize them with --change-set-ins-start, --change-set-ins-end, --change-set-del-start, --change-set-del-end (CSS strings).
  • In final and original views, hidden content uses display: none — it is removed from both the visual and accessibility trees
  • Without JavaScript, all content is visible in tracking view
↑