/* Backdrop is only displayed when dialog is opened with dialog.showModal() */ dialog::backdrop { background: rgba(255,0,0,.25); }