Skip to content

Shadow DOM

Shadow DOM is a web standard that lets a component attach its own hidden, encapsulated tree of HTML elements to a page. Styles inside a shadow root don't leak out, and the page's styles don't leak in, so embedded components like widgets look the same on every site they're added to.

Example

A site's CSS rule that makes all buttons orange doesn't change the buttons inside a chat widget that renders in a shadow root.

Why it matters for a website chatbot

Without encapsulation, a site's CSS can break a chat widget's layout, and the widget's CSS can break the site. ChatBento renders its entire widget inside a shadow root, which is why it looks the same on Framer, Webflow, WordPress or any other site.

See it in practice: Agency client sites

Further reading

An AI chatbot that answers from your site. Free to start. Paid plans from $8 a month.

14-day free trial. No card required.