Open popover panel
.menu:popover-open {
padding: .75rem;
border-radius: 10px;
box-shadow: 0 8px 24px rgb(0 0 0 / 0.12);
}
The :popover-open pseudo-class matches a popover element while it is showing. Use it with the HTML popover attribute to style open menus and tooltips.
[popover]:popover-open {
border: 1px solid #cbd5e1;
}.menu:popover-open {
padding: .75rem;
border-radius: 10px;
box-shadow: 0 8px 24px rgb(0 0 0 / 0.12);
}:popover-open is a CSS selector.
Supported in modern browsers.
Bottom line: Safe for modern sites. Keep readable defaults without the selector.
Continue with ::backdrop.
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