Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

113
Visualizações
how to access embedded svg's elements via DOM

I want to change the path of a svg that I've placed into a page like this:

    <div class="sx">
        <svg  width="250px" height="250px">
            <style>
                @import url(style.css);
            </style>

            <use id="anID"  href="test.svg#svg5" />
        </svg>
    </div>

the style is applied fine onto the test.svg, but the use is creating a shadow root which is not public.

I'm wondering if I can get the same styling results in another way (maybe via an <object> declaration) and at the same time getting access to the used svg nodes via the DOM.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda