discourse/plugins/discourse-details/test/javascripts
David Taylor a55ce02cb9
PERF: Remove <details> polyfill (#33020)
When we first introduced the `discourse-details` plugin, the `<details>`
element was not supported in all browsers, so this `display: none`-based
polyfill had to be used.

Nowadays, there is no need for this. And in fact, the `details[open] >
summary:first-of-type ~ *` selector is showing as our most expensive CSS
selector during repaints.

Removing this `display: none` also means that browser find-in-page will
now be able to correctly find content inside `<details>` in discourse.


![image](https://github.com/user-attachments/assets/e3d943f3-ec63-4c16-9096-44340a4f7df0)
2025-05-30 21:47:09 +01:00
..
acceptance DEV: Replace remaining uses of query helper (#30019) 2025-01-22 00:25:03 +01:00
integration/prosemirror-editor PERF: Remove <details> polyfill (#33020) 2025-05-30 21:47:09 +01:00
lib FIX: allow quote-less details BBCode 2024-06-24 14:16:36 +02:00