Questions tagged [shady-dom]

Shady DOM is a lightweight shim of the Google Polymer project that provides some of the benefits of Shadow DOM to non-compliant browsers without the expensive resource cost of full Shadow DOM support.

Not to be confused with the Shadow DOM (), Shady DOM is a lightweight shim of the Google Polymer project that provides some of the benefits of Shadow DOM to non-compliant browsers without the more expensive resource cost that full Shadow DOM support would incur. This is particularly useful for lightweight or mobile browsers.

Shady DOM, formerly part of , requires webcomponents.js as of Polymer 2.x, so if you are not using Polymer or webcomponents.js, then you should avoid using the tag. Consider using instead.

26 questions
8
votes
1 answer

ShadyCSS polyfill not properly handling CSS in Edge

I am building a widget for third-party websites, using shadow DOM to prevent their CSS from interfering with ours. I am using the ShadyDOM and ShadyCSS polyfills to make it work in Edge and IE, but it is not transforming the CSS for the shadow DOM…
Elias Zamaria
  • 96,623
  • 33
  • 114
  • 148
8
votes
1 answer

How do I enable Shady DOM in Polymer 2.0?

Polymer 1.x uses Shady DOM by default, but that could be changed at initialization by setting the window.Polymer object before importing polymer.html as follows:
tony19
  • 125,647
  • 18
  • 229
  • 307
8
votes
1 answer

What's the difference between Polymer's shady DOM vs shadow DOM?

I'm having issues using shadow DOM for one of the web-components (paper-stepper) and it requires the use of the shady DOM instead. I'm not sure what the differences are and why that is the case.
JJJ
  • 2,889
  • 3
  • 25
  • 43
6
votes
5 answers

How to get all comments in youtube with selenium?

The webpage shows that there are 702 Comments. target youtube sample I write a function get_total_youtube_comments(url) ,many codes copied from the project on github. project on github def get_total_youtube_comments(url): from selenium import…
showkey
  • 482
  • 42
  • 140
  • 295
5
votes
1 answer

Shadow DOM v1 CSS polyfill

https://developers.google.com/web/fundamentals/getting-started/primers/shadowdom This got me all excited I could write my own custom webpage from scratch without polymer. Only to find out css :host for example is not working in Edge and FireFox. I…
Gert Cuykens
  • 6,845
  • 13
  • 50
  • 84
3
votes
1 answer

Polymer paper-dialog - set size to full viewport in shady dom? Also, does this old article apply to shady dom?

I am using Poylmer 1.0, but I still read https://www.polymer-project.org/0.5/articles/styling-elements.html#cat. Does anyone know if the same logic applies to Shady dom? I really like the way https://events.google.com/io2015/ did their video. It…
dman
  • 10,406
  • 18
  • 102
  • 201
3
votes
2 answers

Traversing into Local DOM from Outside of the Component Using JavaScript

I am trying to access the local DOM elements from outside of the Polymer components using JavaScript. In the past I could use the document.querySelector and select the shadowDOM elements using the ::shadow selector. Currently, I understand that the…
zen
  • 257
  • 3
  • 16
2
votes
1 answer

Why doesn't width: 100% apply to local dom hosting element?

In this custom element, the width: 90% will not apply when used in :host, but the width: 90% will apply if I apply it to section. Why is this? Isn't portfolio-display a shady dom element in which the width: 90% should apply as it's the hosting…
dman
  • 10,406
  • 18
  • 102
  • 201
2
votes
1 answer

Updating local dom won't reflect shady dom

In x-num.html