Dimmed dialog overlay
dialog::backdrop {
background: rgb(15 23 42 / 0.55);
}
The ::backdrop pseudo-element styles the full-screen layer rendered behind a top-layer element such as a modal dialog or open popover.
dialog::backdrop {
background: rgb(15 23 42 / 0.55);
}dialog::backdrop {
background: rgb(15 23 42 / 0.55);
}::backdrop is a CSS selector.
Supported in modern browsers.
Bottom line: Safe for modern sites. Keep readable defaults without the selector.
Continue with ::file-selector-button.
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