Activity Forums Salesforce® Discussions What is shadow DOM in lightning in Salesforce?

  • Deepak

    Member
    April 22, 2020 at 2:46 pm

    Shadow DOM is a web standard that encapsulates the elements of a component to keep styling and behavior consistent in any context. Since not all browsers that Salesforce supports implement Shadow DOM, LWC uses a shadow DOM polyfill. A polyfill is code that allows a feature to work in a web browser.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos