Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

118
Views
How to access multiple nested shadow root element for css

I am trying to apply the style to the nested shadow root element. but I do not know how to add for the nested shadow root element. So, How to access nested shadow root elements to apply CSS.

CSS:

 :host component1[details] > #maincontainer > component6[name=leftcontent] > .cover {
    padding:14px solid green;
    margin: 2px;
 }

HTML:

<component1 details> 
  #shadow-root(open)
   <style> ... </style>
   <div class="container>
           <component2>
               #shadow-root(open)
                 <style>...</style>
                    <div> 
                    <component3>
                          #shadow-root(open)
                             <style> ... </style>
                                <component4>   
                                  #shadow-root(open)
                                    <style>...</style>
                                    <component5> 
                                     <div id="maincontainer">
                                        <component6 name="leftcontent"> 
                                         #shadow-root(open)
                                           <style> ... </style>
                                           <div class="cover"></div>
                                           <div class="cover"></div>
                                           <div class="cover"></div> 
                                        </component6>
                                     </div>
                                    </component5>
                                </component4>
                    </component3> 
                   </div>
            </component2> 
    </div> 
</component1>
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!