Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(77)

Unified Diff: third_party/polymer/components-chromium/core-style/elements.html

Issue 592593002: Inline scripts were extracted from Polymer elements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: s/echo ""/echo/ Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/polymer/components-chromium/core-style/elements.html
diff --git a/third_party/polymer/components-chromium/core-style/elements.html b/third_party/polymer/components-chromium/core-style/elements.html
new file mode 100644
index 0000000000000000000000000000000000000000..7e6664a86a313a97167a9eb6fdbccc65431121fc
--- /dev/null
+++ b/third_party/polymer/components-chromium/core-style/elements.html
@@ -0,0 +1,44 @@
+<link rel="import" href="core-style.html">
+
+<core-style id="my-toolbar">
+ :host {
+ height: 54px;
+ font-size: 1.3rem;
+ background-color: steelblue;
+ color: white;
+ }
+
+ polyfill-next-selector {
+ content: &apos;:host &gt; *&apos;;
+ }
+ ::content &gt; * {
+ margin: 8px;
+ }
+</core-style>
+
+<polymer-element name="my-toolbar" horizontal="" center="" layout="" assetpath="">
+ <template>
+ <core-style ref="my-toolbar"></core-style>
+ <content></content>
+ </template>
+</polymer-element>
+
+<core-style id="my-panel">
+ :host {
+ display: inline-block;
+ height: 200px;
+ width: calc({{ 100 / g.columns }}% - 16px);
+ font-size: 50px;
+ background: gray;
+ margin: 8px;
+ }
+</core-style>
+
+
+
+<polymer-element name="my-panel" vertical="" center="" center-justified="" layout="" assetpath="">
+ <template>
+ <core-style ref="my-panel"></core-style>
+ <content></content>
+ </template>
+</polymer-element><script src="elements-extracted.js"></script>

Powered by Google App Engine
This is Rietveld 408576698