From 398d9f7c424d5975fe252a3fa8bd011157de688f Mon Sep 17 00:00:00 2001 From: Steven Orvell Date: Thu, 6 Aug 2015 11:16:39 -0700 Subject: [PATCH] Document custom-style module property. --- src/lib/custom-style.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/lib/custom-style.html b/src/lib/custom-style.html index 1a9a338b4c..9621cfd103 100644 --- a/src/lib/custom-style.html +++ b/src/lib/custom-style.html @@ -23,6 +23,9 @@ browsers without non-native Shadow DOM. * Custom properties used by Polymer's shim for cross-scope styling may be defined in an `custom-style`. +* A module attribute may be specified to pull in style data from a `dom-module` +matching the module attribute. By using `module`, style data +can be shared between multiple `custom-style` elements. Example: @@ -82,6 +85,11 @@ properties: { // module is a property so that it deserializes + /** + * Specify module to identify a `dom-module` containing style data which + * should be used within the `custom-style`. By using `module` style data + * may be shared between multiple different `custom-style` elements. + */ module: String },