paint-brush
Using the Shadow DOM to Isolate Styles on a DOM That Is Not Yoursby@courier
153 reads

Using the Shadow DOM to Isolate Styles on a DOM That Is Not Yours

by Courier5mDecember 22nd, 2021
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Shadow DOM is an API for encapsulation and encapsulation. Shadow DOM allows the Shadow DOM tree to be attached to the regular DOM tree tree in this Shadow tree. The Shadow DOM can be used to embed widgets in a DOM that you don't own or have access to. The difficulty with embedding a widget into a DOM is that every DOM is going to reference different default fonts and colors. The most common approach is to just be super specific with my CSS. This can be tedious and will most likely need to be tweaked for each new client.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Using the Shadow DOM to Isolate Styles on a DOM That Is Not Yours
Courier HackerNoon profile picture
Courier

Courier

@courier

Courier simplifies triggering and sending notifications from your app with one API and drag and drop UI.

About @courier
LEARN MORE ABOUT @COURIER'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Courier HackerNoon profile picture
Courier@courier
Courier simplifies triggering and sending notifications from your app with one API and drag and drop UI.

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Also published here
Newsbreak
Joyk
Nitter