Skip to content

Instantly share code, notes, and snippets.

@sorvell
Created October 10, 2013 00:24
Show Gist options
  • Save sorvell/6910966 to your computer and use it in GitHub Desktop.
Save sorvell/6910966 to your computer and use it in GitHub Desktop.
chrome crash repro
<html>
<head>
<script src="../../polymer/polymer.js"></script>
</head>
<body>
<polymer-element name="x-test">
<template>
<style>
@host {
}
</style>
<style></style>
</template>
<script>
Polymer('x-test', {
ready: function() {
setTimeout(function() {
var s = document.createElement('style');
this.shadowRoot.insertBefore(s, this.shadowRoot.lastElementChild);
}.bind(this), 1000);
}
});
</script>
</polymer-element>
<x-test></x-test>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment