[csswg-drafts] Figure out some way to trigger ::marker without being a list item (#6781)

tabatkins has just created a new issue for https://github.com/w3c/csswg-drafts:

== Figure out some way to trigger ::marker without being a list item ==
In <https://github.com/w3c/csswg-drafts/issues/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](https://github.com/whatwg/html/issues/722), 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.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6781 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 29 October 2021 21:56:27 UTC