inert
Makes Now Playing a real modal: nothing behind it can take focus.

How Riff uses it
Opening Now Playing sets inert on every direct child of <body> except the player, and on a phone also on the bar and the toast, which the dialog covers. Each node touched is marked so closing restores only those. On a wide screen the bar stays live because the dialog opens above it.
Why
Without it the page behind a role="dialog" would still take keyboard and screen reader focus.
Without it
The page stays focusable behind the dialog.
Where
- plugins/riff/assets/player/now-playing.js, line 204
node.inert = true; - plugins/riff/assets/player/now-playing.js, line 188
node.inert = false;
Links open the source at the commit this page was published from.
Specification: HTML Standard. Reference: inert on MDN.