Here’s a video of it in action: a callback gets executed when – and only when – any of the tracked CSS properties (`--variable1`, `--variable2`, `display`, or `border-width`) their computed value changes.
(Recorded in Safari because of that damn Chrome bug)
The code looks like this:
```
const properties = ['--variable1', '--variable2', 'display', 'border-width'];
const cssStyleObserver = new CSSStyleObserver(properties, console.log);
cssStyleObserver.attach(document.body);
```
That’s it 😊