I am trying to create a component that does not have a Shadow DOM. Yes, I know, Shadow DOM works great and is one of the main areas of web components. But let's say I wanted component styles to inherit from the parent.
With Shadow DOM
<dom-module id="my-view1">
<template>
<div class="card">
<div class="circle">1</div>
<h1>View One</h1>
<p>Ut labores minimum atomorum pro. Laudem tibique ut has.</p>
<p>Lorem ipsum dolor sit amet, per in nusquam nominavi periculis, sit elit oportere ea.Lorem ipsum dolor sit amet, per in nusquam nominavi periculis, sit elit oportere ea.Cu mei vide viris gloriatur, at populo eripuit sit.</p>
</div>
</template>
<script>
class MyView1 extends Polymer.Element {
static get is() { return 'my-view1'; }
}
window.customElements.define(MyView1.is, MyView1);
</script>
</dom-module>
I applied the instructions provided by the Polymer group to not use the Shadow DOM at: https://developers.google.com/web/fundamentals/getting-started/primers/shadowdom
But if I should not point templateor point static get template() { return false; }, the DOM does not even load elements in the user component.
source
share