-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ci skip] add smoke test for scope caching with custom-style
- Loading branch information
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |