That second link is great, and this sentence caught my attention: "At the risk of being a broken record; HTML really needs <accordion> , <tabs>, <dialog>, <dropdown>, and <tooltip> elements." At first glance, that sure would simplify a lot of the work I've done in the past.
I’m fairly certain it’s a shadow DOM implementation detail. While it technically toggles a binary state and is probably more semantically similar to a checkbox, I think the way it’s exposed to web APIs makes that either impractical or non-obvious.
Conceptually the summary is a toggle button: you click it to toggle the display state of the details element.
There are some other cases where certain newer features like display: contents also hide content from assistive tools. I’m pretty sure some of these are being worked on, but don’t have great recall of whether that includes details/summary.
To quote the article:
>tl;dr - <summary> is a button and buttons eat semantics
[0]: https://shoptalkshow.com
[1]: https://daverupert.com/2019/12/why-details-is-not-an-accordi...