pseudo-element
::details-content — CSS reference
Targets the content region of details rather than its summary. It can be used to style or animate the disclosure body, but the open/closed behavior remains native; do not assume an unsupported browser will animate it.
Formal Syntax & Structure
css syntaxcss
details::details-content { color: teal; }Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS reference lab</title><style>details::details-content {color:#006050}</style><body><details id="a" open><summary>More</summary><p>Extra information</p></details></body></html>