Basic example
example.css
details:open > summary { font-weight: 700; }
The :open pseudo-class matches elements that are in an open state, such as details[open] or an open dialog.
details:open > summary { font-weight: 700; }details:open > summary { font-weight: 700; }details:open > summary { font-weight: 700; }:open is a modern CSS feature.
Supported in current major browsers with progressive enhancement.
Bottom line: Keep a readable fallback when using newer syntax.
Continue with :playing.
CODETOFUN NEWS
Get the latest IT news, programming updates, and technology trends directly on your phone.
Your daily dose of tech, straight to your feed.
2 people found this page helpful