Tagged articles
Shadow DOM
24 articles · Page 1 of 1
This article presents twelve practical methods—including BEM naming, CSS Modules, Shadow DOM, @scope, custom properties, and dynamic generation—to dramatically reduce CSS style collisions and achieve reliable style isolation in modern front‑end projects.
BEMCSSCSS Modules
0 likes · 4 min read

Discover twelve effective strategies—including BEM naming, CSS Modules, Shadow DOM, @scope rule, and dynamic style generation—to dramatically reduce CSS conflicts and achieve robust style isolation in complex front‑end projects, complete with code examples and visual illustrations.
BEMCSSCSS Modules
0 likes · 4 min read

Quark Design 2.0 introduces ::part support, enabling developers to style any internal part of a Web Component’s shadow DOM from outside—surpassing the previous reliance on limited CSS variables—while remaining fully backward‑compatible, cross‑framework, and demonstrated via a live StackBlitz example.
CSS ::partComponent StylingShadow DOM
0 likes · 5 min read

This article explains the evolution, core specifications, and practical usage of Web Components—including Custom Elements, HTML templates, and Shadow DOM—while comparing them to modern front‑end frameworks and demonstrating how to build reusable, encapsulated UI components.
Component EncapsulationFrontend DevelopmentHTML template
0 likes · 13 min read

This article introduces Web Components—a W3C‑standardized technology supported by all major browsers—explaining its core concepts (Custom Elements, Shadow DOM, Templates, Slots), providing step‑by‑step code examples, discussing lifecycle callbacks, compatibility, polyfills, and how it compares with frameworks like React and Vue.
Frontend DevelopmentShadow DOM__slots__
0 likes · 22 min read

This article provides a comprehensive overview of Web Components, covering their development timeline, core concepts such as Custom Elements, Shadow DOM, templates and slots, practical code examples, lifecycle callbacks, debugging tools, and real‑world usage scenarios for modern frontend development.
HTML TemplatesJavaScriptShadow DOM
0 likes · 12 min read

This article introduces Web Components, explains the three core technologies—custom elements, Shadow DOM, and templates with slots—provides detailed code examples for each, discusses lifecycle callbacks, demonstrates encapsulation benefits, and offers practical guidance on using them across modern front‑end frameworks.
Shadow DOM__slots__custom elements
0 likes · 12 min read


ByteFEDec 28, 2022 · Frontend Development
This article explains what Web Components are, details their core features such as Custom Elements, Shadow DOM, and HTML templates, demonstrates practical usage with React, Vue, and micro‑frontend scenarios, compares them to traditional frameworks, and discusses advantages, limitations, and related tools like Lit and Omi.
JavaScriptMicro FrontendsShadow DOM
0 likes · 57 min read

This article explains why class name and global element style conflicts occur in micro‑frontend architectures, and presents two main strategies—style naming with priority rules and host‑environment isolation using Shadow DOM or Garfish runtime plugins—to achieve reliable CSS isolation across parent and child applications.
CSSGarfishMicro Frontends
0 likes · 11 min read

This article explains how to build a CSS sandbox for Qiankun micro‑frontends by using Shadow DOM for strict style isolation and a Scoped CSS approach for experimental isolation, providing step‑by‑step code examples, underlying principles, and a final Web Component implementation.
CSS sandboxMicro FrontendsScoped CSS
0 likes · 11 min read

This article explains various web watermark methods—including simple visible logos, full‑page overlays, dynamic canvas‑generated marks, SVG‑based text watermarks, and robust invisible (blind) watermarks—while covering implementation details, security considerations, and protection mechanisms such as Shadow DOM and MutationObserver.
CanvasSVGShadow DOM
0 likes · 16 min read


政采云技术May 10, 2022 · Frontend Development
This article explains how to create reusable UI components using Web Components by covering the three core concepts—custom elements, Shadow DOM, and HTML templates—demonstrating a button example, discussing component communication, two‑way binding, library packaging, framework integrations, current limitations, and reference resources.
Shadow DOMcomponent librarycustom elements
0 likes · 18 min read

The article explains Web Components and their three core technologies—Template, Shadow DOM for CSS isolation, and Custom Elements—demonstrates building a dynamic HTML5 video component with lifecycle callbacks, and discusses use cases such as component libraries, cross‑platform development, micro‑frontends, and the feature‑rich Quark library.
Component ArchitectureFront-endShadow DOM
0 likes · 5 min read

This article examines why Web Components are gaining traction—covering industry adoption trends, native technical benefits like performance and isolation, reduced business costs, and how they complement rather than replace existing frontend frameworks.
Browser APIsFrontend DevelopmentShadow DOM
0 likes · 13 min read

This article explains why Web Components are gaining traction, outlines their technical and performance advantages over frameworks like React, and highlights the business and security benefits of adopting native, framework‑agnostic components for modern web development.
Browser APIsComponent IsolationShadow DOM
0 likes · 14 min read


ByteFENov 22, 2021 · Frontend Development
This document details the EE NEXT SDK team's technical decisions to adopt Web Components for front‑end component development, explains the benefits and drawbacks of Custom Elements and Shadow DOM, outlines challenges such as cross‑stack compatibility, bundle size, style isolation, and provides practical implementation guidance and best‑practice recommendations.
JavaScriptSDKShadow DOM
0 likes · 15 min read


ByteFEMar 9, 2021 · Frontend Development
This article explores methods to prevent user-injected JavaScript from manipulating DOM objects, including using Shadow DOM and Web Workers to create secure sandboxed environments.
DOMFrontend DevelopmentJavaScript
0 likes · 6 min read

This article explains why Shadow DOM exists, introduces its core concepts and features, and provides step‑by‑step code examples for creating, styling, and defining custom elements with Shadow DOM, while also covering compatibility and best practices for modern frontend development.
CSSShadow DOMcustom elements
0 likes · 11 min read

This article explains how modern Web Components—custom elements, Shadow DOM, slots, and native element extensions—provide a framework‑free way to build reusable UI, offering better performance, true CSS scoping, and progressive enhancement while discussing when abandoning traditional frameworks makes sense.
Frontend DevelopmentJavaScriptShadow DOM
0 likes · 26 min read

Learn how to create reusable, encapsulated UI components using Web Components by building a simple counter element with Custom Elements, Templates, Shadow DOM, properties, events, and attributes, and see how to integrate it into any framework, handle data binding, and dispatch custom events.
JavaScriptShadow DOMcustom elements
0 likes · 10 min read

This article introduces the fundamentals of Shadow DOM, explains its core concepts, usage patterns, key features, and API, compares it with Virtual DOM, demonstrates practical code examples for creating and styling shadow roots, handling slots and events, and discusses browser support and related tooling.
CSS ScopingJavaScriptShadow DOM
0 likes · 9 min read

This article explains how Progressive Web Apps (PWAs) and Accelerated Mobile Pages (AMP) can be combined, compares their strengths and limitations, and provides practical integration patterns such as AMP-as-PWA, AMP-to-PWA, and AMP-in-PWA, including service‑worker setup and shadow‑DOM techniques.
AMPPWAService Worker
0 likes · 9 min read


Aotu LabJun 14, 2016 · Frontend Development
Safari 10.0 brings comprehensive support for IndexedDB, Shadow DOM, ES6, WebGL, advanced CSS properties, media autoplay, picture‑in‑picture, WebDriver, and native Apple Pay integration, enabling developers to build richer offline‑capable, secure, and high‑performance web applications on macOS and iOS.
IndexedDBSafariShadow DOM
0 likes · 12 min read

This article introduces Shadow DOM, explains its purpose for encapsulating HTML elements into reusable sub‑trees, compares its benefits over traditional approaches like Bootstrap, and provides a practical example with code demonstrating how to create and use a Shadow DOM in modern browsers.
HTMLJavaScriptShadow DOM
0 likes · 3 min read
