circagraph
Sign inSign up

openchronology/timeline-app on GitHub

The OpenChronology repository on GitHub, mirrored by och-import-github: issues and pull requests as durations (ongoing while open), what happened to them as moments, plus releases, milestones, commits and branches. The Branches view shows the most recently active branches each in a track of its own.

Source: https://github.com/openchronology/timeline-app

3,131 moments · 2026-10-05 CE 20:21:49 UTC – 2026-11-16 CE 12:10:45 UTC · by @athan · @athan

#221 Duration backgrounds lie behind the timeline, which gets a halo over them

–

  • github
  • github/openchronology/timeline-app
  • github/openchronology/timeline-app#221
  • pull request
  • state:merged

Closes #220. ### Backgrounds behind the timeline `#duration-backgrounds` had no z-index of its own, so it formed no stacking context. Each image's z-index (1…N, which puts smaller durations above larger ones) then competed with the axis, arcs and markers drawn after it, which have none, and the images covered them. The layer now has `z-index: 0`. The images still order among themselves, but only inside that layer, beneath everything else on the stage. ### A halo over them While a background shows, the stage takes the class `over-backgrounds`: - **Moment labels** sit on frosted white: a translucent pill with the image blurred behind it, and a white text halo. - **Tick labels and duration band text** get the halo only. Tick labels fade out as they get too fine, and a backing would stay behind as an empty box. - **The axis, relationship arcs, stems and markers** get a white drop-shadow halo. - **Headings** keep their backing, now blurring the image behind them. Without any background the timeline looks exactly as before. ### Tests - `test/duration-backgrounds-browser.mjs` now checks that a moment over two backgrounds is drawn above them. It makes the backgrounds hit-testable for a moment and checks they give way to the moment. It also checks the halo is on while backgrounds show and gone once the plugin is disabled. - With the old stylesheet the new check fails with "a background covers the moment"; with this change the Chromium browser suite and `npm test` (299) pass. - I also checked by eye on a history timeline with photographic backgrounds (Iwo Jima, Guadalcanal and others). 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_011fFY8eruEi1xAkkMBni13B https://github.com/openchronology/timeline-app/pull/221

Related

Open #221 Duration backgrounds lie behind the timeline, which gets a halo over them in the timeline

#221 Duration backgrounds lie behind the timeline, which…