This is an interesting #HTML proposal from @Seirdy
Should there be a `<spoiler>` element?
seirdy.one/posts/2023/11/12/sp…
My heart says yes. HTML should reflect what people are actually doing on the web. How they write. The features they invent.
But my head says it is a duplicate of `<details>` albeit non-block level.
Proposal: an HTML element for spoilers
An informal proposal for dedicated elements for spoiler tags in HTML: use-cases, syntax, semantics, recommended UA behavior, and comparisons with “details”Seirdy’s Home
🖕
in reply to Terence Eden • • •Seirdy
in reply to 🖕 • • •A spoiler element · Issue #9926 · whatwg/html
GitHubRoma Komarov
in reply to Terence Eden • • •A related Open UI issue: github.com/openui/open-ui/issu…
There are many nuances to spoiler-type things, aside from the inline-block level difference from details.
A standard spoiler / content-warning mechanism · Issue #772 · openui/open-ui
GitHub