Tagged articles
24 articles
Page 1 of 1
JavaScript
JavaScript
Sep 6, 2025 · Frontend Development

12 Proven Techniques to Eliminate CSS Style Conflicts

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
12 Proven Techniques to Eliminate CSS Style Conflicts
JavaScript
JavaScript
Jan 23, 2025 · Frontend Development

12 Proven Techniques to Eliminate CSS Style Conflicts

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
12 Proven Techniques to Eliminate CSS Style Conflicts
HelloTech
HelloTech
Jul 16, 2024 · Frontend Development

Quark Design 2.0 Release: Extending Web Component Styling with ::part

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
Quark Design 2.0 Release: Extending Web Component Styling with ::part
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jun 10, 2024 · Frontend Development

Understanding Web Components: Core Concepts, Custom Elements, Shadow DOM, Slots, and Templates

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.

Shadow DOM__slots__custom elements
0 likes · 22 min read
Understanding Web Components: Core Concepts, Custom Elements, Shadow DOM, Slots, and Templates
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Dec 10, 2023 · Frontend Development

Introduction to Web Components: History, Concepts, Custom Elements, Shadow DOM, Template and Slot

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
Introduction to Web Components: History, Concepts, Custom Elements, Shadow DOM, Template and Slot
TAL Education Technology
TAL Education Technology
Jul 6, 2023 · Frontend Development

Introduction to Web Components: Custom Elements, Shadow DOM, Templates, and Slots

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
Introduction to Web Components: Custom Elements, Shadow DOM, Templates, and Slots
ByteFE
ByteFE
Dec 28, 2022 · Frontend Development

Understanding Web Components: Features, Lifecycle, and Integration with Modern Frameworks

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
Understanding Web Components: Features, Lifecycle, and Integration with Modern Frameworks
ELab Team
ELab Team
Oct 14, 2022 · Frontend Development

How to Prevent CSS Conflicts in Micro‑Frontends with Garfish and Shadow DOM

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
How to Prevent CSS Conflicts in Micro‑Frontends with Garfish and Shadow DOM
DataFunSummit
DataFunSummit
Sep 27, 2022 · Frontend Development

Web Watermark Techniques: Visible, Dynamic, and Invisible Watermarks

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
Web Watermark Techniques: Visible, Dynamic, and Invisible Watermarks
政采云技术
政采云技术
May 10, 2022 · Frontend Development

Building a UI Component Library with Web Components

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.

Component LibraryShadow DOMcustom elements
0 likes · 18 min read
Building a UI Component Library with Web Components
HelloTech
HelloTech
Jan 25, 2022 · Frontend Development

Introduction and Practice of Web Components and Shadow DOM

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
Introduction and Practice of Web Components and Shadow DOM
ByteFE
ByteFE
Nov 22, 2021 · Frontend Development

Technical Decision and Practices of Using Web Components in EE NEXT SDK

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
Technical Decision and Practices of Using Web Components in EE NEXT SDK
Qunar Tech Salon
Qunar Tech Salon
Aug 23, 2019 · Frontend Development

Web Components: Can Native Custom Elements Replace Frontend Frameworks?

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.

JavaScriptShadow DOMcustom elements
0 likes · 26 min read
Web Components: Can Native Custom Elements Replace Frontend Frameworks?
QQ Music Frontend Team
QQ Music Frontend Team
Oct 27, 2018 · Frontend Development

Build Reusable UI with Web Components: A Step‑by‑Step Counter Example

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
Build Reusable UI with Web Components: A Step‑by‑Step Counter Example
Tongcheng Travel Technology Center
Tongcheng Travel Technology Center
Jun 2, 2017 · Frontend Development

Understanding Shadow DOM: Concepts, Usage, and Comparison with Virtual DOM

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
Understanding Shadow DOM: Concepts, Usage, and Comparison with Virtual DOM
Hujiang Technology
Hujiang Technology
Dec 27, 2016 · Frontend Development

Combining AMP and Progressive Web Apps: Strategies and Implementation

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
Combining AMP and Progressive Web Apps: Strategies and Implementation
Aotu Lab
Aotu Lab
Jun 14, 2016 · Frontend Development

Safari 10.0: Full‑Stack Web API and Front‑End Feature Guide

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
Safari 10.0: Full‑Stack Web API and Front‑End Feature Guide