--- url: "https://web.dev/articles/shadowdom-301" titulek: "Shadow DOM 301 | Articles | web.dev" h1: "Shadow DOM 301 Stay organized with collections Save and categorize content based on your preferences." popis: "" jazyk: "en" kanonicka: "https://web.dev/articles/shadowdom-301" drobecky: ["Articles", "Shadow DOM 301"] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-14 01:47:18" znaku: 9995 slov: 1414 kodovani: "iso-8859-2" sha256: "fb90eac0f280b9ce879cff640d293e0193323a0776d014adbb026b7329d8a8a7" --- Shadow DOM 301 Stay organized with collections Save and categorize content based on your preferences. Advanced concepts & DOM APIs Eric Bidelman This article discusses more of the amazing things you can do with Shadow DOM! It builds on the concepts discussed in [Shadow DOM 101](/articles/shadowdom) and [Shadow DOM 201](/articles/shadowdom-201). Using multiple shadow roots If you're hosting a party, it gets stuffy if everyone is crammed into the same room. You want the option of distributing groups of people across multiple rooms. Elements hosting Shadow DOM can do this too, that is to say, they can host more than one shadow root at a time. Let's see what happens if we try to attach multiple shadow roots to a host: `