I’ve noticed that spoilers can’t be toggled off when they’re inside a <details> tag.
This spoiler can be toggled on and off (works as expected).
However, this doesn’t:
Click to open 'details'
This spoiler can only be toggled on once (it can’t be toggled off).
I think the issue is that, in the second case, the isInteractive function returns true because details is included in INTERACTIVE_SELECTOR.
Removing it should be enough, but I’m not really sure what the side effects will be (maybe @CvX knows).
EDIT: I see this change was motivated by wanting to make GIFs stop on click. In our community, we make heavy use of spoilers and details, so it would be useful to make the blurring behavior more consistent.