Or more precisely it only works when set to true.
Here’s the spec: to have the details element close, the open attribute must be fully removed: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/details#open. Currently it is set to value false, which explicitly does not work.