pseudo-class

:popover-open — CSS reference

Matches a popover while it is showing. It does not imply modality or inert background content. Use the native API for state changes and preserve keyboard dismissal.

Formal Syntax & Structure

css syntaxcss
:popover-open

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS reference lab</title><style>#a,#b {color:#202020} #a:popover-open {color:#006050}</style><body><button popovertarget="a">Show</button><div id="a" popover>Info</div><div id="b" popover>Other</div><script>a.showPopover();</script></body></html>
CSS Reference