As of Chrome 131 you have more options to style `<details>` and `<summary>`.
You can now use the `display` property on these elements, and also use a `::details-content` pseudo-element to style the part that expands and collapses.
As of Chrome 131 you have more options to style `<details>` and `<summary>`. You can now use the `display` property on these elements, and also use a `::details-content` pseudo-element to style the part that expands and collapses. 4 comments
@bramus Am I the only one that can't get this URL to load via: Version 132.0.6834.6 (Official Build) beta (arm64) ------ Really cool stuff in all the other versions of Chrome I'm running right now, however!! 🥳 Can't wait for other browsers to pick this up. 🙏 @bramus While nowhere as fancy as your details demo, I did something clever with details that I have never seen before. I am building a file browser. It works surprisingly well. (codepen was my raw POC) https://codepen.io/joeworkman/pen/RwXdbGQ/c0348fa2d91df1e62d7f31297c67c9bf?editors=1100 |
Hopefully other browsers will implement these changes as well soon too, because these additions have been long overdue. 😊