Skip to content

Commit

Permalink
[ci skip] add smoke test for scope caching with custom-style
Browse files Browse the repository at this point in the history
  • Loading branch information
dfreedm committed Jul 23, 2016
1 parent ae8510c commit 43955ea
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions test/smoke/custom-style-cache.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!doctype html>
<script src="../../../webcomponentsjs/webcomponents.js"></script>
<link rel="import" href="../../polymer.html">
<dom-module id="test-element">
<template>
<style>
:host {
display: block;
font-size: var(--test-element-font-size, 12px);
}
</style>
test-element
</template>
<script>
Polymer({
is: 'test-element'
});
</script>
</dom-module>

<style is="custom-style">
.c {
--test-element-font-size: 32px;
}
</style>
<test-element class="c"></test-element>
<test-element></test-element>
</body>

0 comments on commit 43955ea

Please sign in to comment.