Shadow DOM vs iframe for browser extension tooltips: a build note

dev.to

I built rabbitholes to keep Wikipedia-style context one highlight away, inline, without opening a new tab. The hard part wasn't the API integration — it was injecting a tooltip into arbitrary host pages without the tooltip looking wrong or breaking the page. Two options: iframe overlay or shadow DOM. Iframes are isolated by design, which sounds right, but that isolation cuts both ways. Fonts loaded by the host page aren't available inside an iframe unless you explicitly load them again — and l

Read Full Article open_in_new
arrow_back Back to News