property
Bookmark state — CSS reference
Experimental draft: Proposes the initial expansion state of a hierarchical document outline: closed hides deeper entries until an equal or higher level is reached. Native HTML details offers a separate collapsible web navigation group, not a PDF bookmark implementation.
Formal Syntax & Structure
css syntaxcss
bookmark-state: closed;Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>bookmark-state</title><style>body{margin:0;background:white}#a{box-sizing:border-box}#a{bookmark-state:closed}</style><body><details id="a"><summary>Contents</summary><a href="#details">Details</a></details><h2 id="details">Details</h2></body></html>