Where no one has gone before: The cuckoo-clock incident

A presentation at SELFHTML-Treffen in in Mannheim, Germany by Gunnar Bittersmann

About trips: a trip through the Black Forest and a trip through modern CSS.

Along the way: font-feature-settings, the ::marker pseudo-element, the counter() function, the list-item counter, @counter-style, custom properties, :has(), aspect-ratio, translate and rotate, quantity queries, sin() and cos(), container query units.

Building a cuckoo clock with CSS and only a tiny bit of JavaScript.

(The title was taken from the Star Trek: The Animated Series episode “The Counter-Clock Incident”.)

Resources

The following resources were mentioned during the presentation or are useful additional information.

Code

The following code examples from the presentation can be tried out live.