Every third-party widget carries the same risk: its CSS leaks into your page, or your CSS leaks into it, and someone spends an afternoon with devtools. Provedly renders inside a Shadow DOM, which means the browser itself draws a boundary that normal CSS selectors cannot cross in either direction. This post explains what that boundary does, what it protects you from, and the handful of things it deliberately does not isolate.
What Shadow DOM is
Shadow DOM is a browser standard that lets a script attach a separate, encapsulated DOM tree to an element. Styles defined inside the shadow tree apply only inside it; styles defined in the page do not reach in. It is the mechanism behind native elements like <video> controls, and it is available in every current browser.
When the Provedly loader runs, it creates a host element, attaches a shadow root, and renders the toast, counter or bar inside that root with its own stylesheet. From your page's point of view there is one empty-looking element at the end of <body>.
<!-- what your page sees -->
<provedly-widget></provedly-widget>
#shadow-root
<style>
…widget styles…
</style>
<div class="toast">…</div>
What it protects you from
Your resets do not flatten the widget. A global * { box-sizing: border-box; margin: 0 } or a Tailwind preflight does not apply inside the shadow root. The toast looks the same on a site with aggressive resets as on one with none.
The widget's classes do not collide with yours. The widget can use a class named .toast or .badge and it will never match an element in your page, and your .badge rule will never match the widget's.
Your !important rules stay yours. A theme that declares p { font-size: 18px !important } would normally override any widget paragraph. Inside a shadow root it is simply not in scope.
Framework CSS stays put. CSS Modules, styled-components, Vue scoped styles, Svelte scoped styles: none of them interact with the widget, and the widget does not interact with them. This is why the install on Next.js, Webflow, WordPress and Shopify is the same one script tag; there is no per-platform stylesheet work. See Adding social proof to a Next.js app.
Fonts stay predictable. The widget's own stylesheet controls its typography, so a display typeface declared on your body does not turn a notification into a headline.
What it does not isolate, on purpose
Shadow DOM scopes styles. It does not scope the viewport, the stacking context, or user interaction, and there are a few places where your page and the widget still share space.
| Shared | Why it matters | What to do |
|---|---|---|
| Viewport position | The toast is position: fixed and competes with your other fixed elements |
Choose a corner that is free; use device targeting if mobile is crowded |
| Stacking order | The host element has a z-index; a page element with a higher one can cover it | Rare; usually a full-screen overlay, which should cover it anyway |
body { overflow: hidden } |
Does not affect the widget, but your own modals may expect the corner to be empty | Nothing, unless you want the toast hidden during modals; use URL targeting for distinct routes |
| Inherited CSS custom properties | Custom properties do cross the shadow boundary by design | The widget does not rely on page variables, so this has no visible effect |
| Pointer events | Clicking the badge opens the verification page, like any link | None |
The one practical collision is other fixed-position elements: chat launchers, cookie banners, sticky add-to-cart buttons. Shadow DOM cannot make two things occupy the same corner. Pick positions so they do not.