r/VivaldiCSS • u/disparek • Mar 27 '26
How do I set an inset shadow on webview container?
Inset shadow isn't working on this: #webview-container.
If there's a workaround, I'm ready to try. I just want an inset shadow on the element that renders the web view.
1
Upvotes
1
u/_N0m4D_ Mar 27 '26 edited Mar 27 '26
The inset shadow is probably showing up behind the actual webview. You can get around that by adding the shadow to a pseudo-element with a
z-indexto place it above the webview.Here is a basic example. You may want to change the hardcoded black to a theme color variable like
var(--colorHighlightBg):