-
Notifications
You must be signed in to change notification settings - Fork 756
Description
In #6738, @MatsPalmgren brings up a perf issue they noticed where a document with a ton of summary elements becomes extremely slow, because each of them touches the list-item counter due to being display: list-item (because we're using ::marker to display the disclosure triangle).
The perf problem is tangential (it applies to any enormous list), but in that issue Mats correctly points out that the fact we're using display: list-item at all is pretty hacky. For context, this was decided on back in 2016/2017, in a conversation spanning implementors, WHATWG editors, and CSSWG editors. It didn't have a great motivation behind it other than it seemed to work reasonably well and didn't involve us inventing anything new.
That said, maybe we should invent something new? I do wonder if this is compat-bound by now, tho.