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.
What's the difference between Polymer's shady DOM vs shadow DOM?
4.4k Views Asked by JJJ At
1
There are 1 best solutions below
Related Questions in POLYMER
- Is there any other way to add unit test for Polymer 1.x component apart from Web component tester?
- How can I check if a Lit or Web Component element has connected/mounted from another component, as well as listen to when it does?
- How to overwrite a Polymer content scripts function
- How to polymerize repeating units of polymers into dimers
- Why is input element retaining the value? Data binding is not applying the second time
- Why does Flexbox break PolymerElements/paper-tabs?
- Custom polymer component not triggering sweetalert
- How to obtain all n atom fragments (substructures) from a mol file using RDKIT?
- Vaadin Moving from 23 to 24 fails to find ironListConnector.js
- How to use Polymer's Iron-Selector in plain JS?
- Polymer, adding new item in nested Array in not getting rendered by dom-repeat
- Webpage using polymer library suddenly broken
- Lit web component not updating Polymer element attribute
- Polymer1: addEventListener for Notify Not Working as Expected
- Get Element out of Shadow DOM or use styles of main site
Related Questions in POLYMER-1.0
- Is there any other way to add unit test for Polymer 1.x component apart from Web component tester?
- Polymer1: addEventListener for Notify Not Working as Expected
- Get Element out of Shadow DOM or use styles of main site
- How to add asterisk symbol in required Field
- Polymer 1.x: Incompatible with native web-components?
- Splitting HTML imports into two separate files , imports on 2nd file are not loading
- How to call attached() callback in polymer programmatically?
- Custom created toggle switch in Polymer1.0 doesn't work for more than one instance
- Polymer1.0 app-router not working. Routing is not happening
- Chrome 80 polymer TypeError: Cannot read property '__proto__' of null
- How to write if conditions in .attr using d3 js
- Focus outline breaking on right side - not wrapping element fully
- Polymer ignores mouseclick after typing during 3 seconds
- How to read this.$$('#startdate').value on WCT using polymer
- Uploading images via dynamic input element not working on iOS
Related Questions in SHADOW-DOM
- How to listen for LightDOM Label "FOR=" events via ShadowDOM Custom Element
- Userscript to style Shadow DOM elements of arbitrary website
- Unable to locate parent of shadowded DOM element on https://www.bahn.de
- Why can't I click on button within a embed element using Selenium C#?
- Can fonts be imported from within the shadow DOM with a `<style>` tag?
- How to style a custom HTML element based on child node selector(s), using a shadow DOM attached stylesheet?
- How correct import styles
- Styling swiper web component navigation buttons
- Removing an enclosing div class with jQuery when matching within open shadow-root
- How to change the "cancel(erase)" X icon in the Guide Search input field with another one from my imported library
- How can we make external stylesheets load in the shadow DOM?
- Style an element inside a shadow dom
- FireFox events do not bubble or propagate from shadow to light DOM
- Inside shadow dom ag-grid column filter key events like escape and tab keys are not working
- How can I programmatically click on elements using custom event listeners?
Related Questions in SHADY-DOM
- Polymer 2.0 using Shady DOM document.getElementByID()
- Change '--accent-color' in Polymer though whole page under SHADY DOM
- jQuery selector doesn't work very well for Polymer2 shady dom template
- shadow.appendChild is slower in shadyDom
- What's the difference between Polymer's shady DOM vs shadow DOM?
- Document styling affecting local DOM when using Polymer 1.0 Shady DOM
- Make css variables bleed to children components
- Why doesn't width: 100% apply to local dom hosting element?
- Polymer @keyframes leak out
- Expose specific element in ShadowDom to external JS using document.getElementById
- Firefox: Polyfill/Shadydom not making the shadow root (style inside still affects rest of the page)
- Shadow DOM v1 CSS polyfill
- Polymer 0.8 Shady DOM
- How do I enable Shady DOM in Polymer 2.0?
- Traversing into Local DOM from Outside of the Component Using JavaScript
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Here's a good explanation of why.
Tl;DR:
Shadow DOM:
What this means is that it hides a layer of complexity from you. One of the examples I found online was about the
<video></video>tag. It explains how within it there are the video controls, but those are abstracted away and you cannot see them. This is what the Shadow DOM does, but for all the web components.Shadow DOM sounds nice, but there are limitations
This is where shady DOM comes in.
Shady DOM:
By using the Shady DOM, you now don't have an abstracted view of the components. You can see everything. However with Shady DOM, you can examine how the tree would look like if Shadow DOM was being used instead by running this:
So, taking all this information into consideration on how the different DOMs work, it seems like the paper-stepper web-component requires access to the whole tree to work properly. Since the Shadow DOM abstracts the inner elements, you have to use Shady DOM or refactor the code in such a way that the inner elements don't need to be accessed from outside the abstraction.