Communities

(DEV) Codidact Meta
(DEV) Codidact Meta
(DEV) Writing
(DEV) Writing
Proposals
Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Post History

50%
+0 −0
Q&A Testing existing CSS spoiler implementation

Raw text A sentence with a spoiler hidden half way through <span class="spoiler">that says something top secret</span> to test how this works. Renders as A sentence with a spoiler ...

0 answers  ·  posted 2d ago by trichoplax‭  ·  edited 1d ago by trichoplax‭

Question lets-see-if-this-works
#2: Post edited by user avatar trichoplax‭ · 2025-12-28T15:26:50Z (1 day ago)
Add an extra layer of span so the spoiler works
  • A sentence with a spoiler hidden half way through <span class="spoiler">that says something top secret</span> to test how this works.
  • ### Raw text
  • ```html
  • A sentence with a spoiler hidden half way through <span class="spoiler">that says something top secret</span> to test how this works.
  • ```
  • ### Renders as
  • A sentence with a spoiler hidden half way through <span class="spoiler">that says something top secret</span> to test how this works.
  • ---
  • ### Raw text with an extra layer of `span` inside
  • ```html
  • A sentence with a spoiler hidden half way through <span class="spoiler"><span>that says something top secret</span></span> to test how this works.
  • ```
  • ### Renders as
  • A sentence with a spoiler hidden half way through <span class="spoiler"><span>that says something top secret</span></span> to test how this works.
#1: Initial revision by user avatar trichoplax‭ · 2025-12-28T08:46:25Z (2 days ago)
Testing existing CSS spoiler implementation
A sentence with a spoiler hidden half way through <span class="spoiler">that says something top secret</span> to test how this works.