Day 22: the ::backdrop pseudo-element

from blog Manuel Matuzović - Blog, | ↗ original
↗ original
You can use the ::backdrop pseudo-element to style the backdrop of modal dialogs and elements which have been placed in fullscreen mode using the Fullscreen API. ::backdrop { background-color: rgb(0 0 155 / 0.5); } .dialog2::backdrop { background: conic-gradient(red, orange, yellow, green, red); outline: 20px solid white; ...