JSFiddle - React, Tailwind, and code Playground
by mgiuffrida
HTML
<script>Polymer = {dom: 'shadow', lazyRegister: true, useNativeCustomProperties: true};</script>
<base href="https://polygit.org/polymer+:v1.6.1/*+:master/components/">
<link rel="import" href="polymer/polymer.html">
<link rel="import" href="paper-dialog-behavior/paper-dialog-behavior.html">
<link rel="import" href="paper-dialog-behavior/paper-dialog-shared-styles.html.html">
<dom-module id="x-foo">
<template>
<style>
:host {
--paper-dialog: {
line-height: initial;
};
}
</style>
<div id="div">
hello world
<br>hello world
</div>
</template>
</dom-module>
<x-foo opened></x-foo>
CSS
body {
line-height: 200px;
}
JavaScript
Polymer({
is: 'x-foo',
behaviors: [Polymer.PaperDialogBehavior],
});
console.log(Polymer.version);
setTimeout(function() {
console.log(getComputedStyle(document.querySelector('* /deep/ paper-dialog /deep/ #div')).lineHeight);
})