elements
This makes the closing behavior more deterministic, which makes it easier to be e2e-tested. PR Close #24840