Skip to content

Instantly share code, notes, and snippets.

@dlockhart
Created April 17, 2018 15:09
Show Gist options
  • Save dlockhart/a044505509a9d923a05d255d849469e0 to your computer and use it in GitHub Desktop.
Save dlockhart/a044505509a9d923a05d255d849469e0 to your computer and use it in GitHub Desktop.
Example of a bug in Polymer 2 style modules
<dom-module id="foo-element">
<template strip-whitespace>
<style>
:host {
display: inline-block;
}
</style>
<button>foo</button>
</template>
<script>
Polymer({
is: 'foo-element'
});
</script>
</dom-module>
<dom-module id="foo-module">
<template>
<style>
.foo {
background-color: red;
}
</style>
</template>
</dom-module>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment