From 52a7328e0fb2845f2fb4aeb9f673ab5c17c54762 Mon Sep 17 00:00:00 2001 From: Arthur Evans Date: Mon, 24 Jul 2017 15:45:05 -0700 Subject: [PATCH 1/2] Update custom-style API doc Fixes https://github.com/Polymer/docs/issues/2266. I didn't test this through the docs generation. Handle with care. --- lib/elements/custom-style.html | 38 ++++++++++++++++++++++++++++------ 1 file changed, 32 insertions(+), 6 deletions(-) diff --git a/lib/elements/custom-style.html b/lib/elements/custom-style.html index 7c95822fd8..c4ceef3334 100644 --- a/lib/elements/custom-style.html +++ b/lib/elements/custom-style.html @@ -19,17 +19,43 @@ /** * Custom element for defining styles in the main document that can take - * advantage of several special features of Polymer's styling system: + * advantage of [shady DOM](https://github.com/webcomponents/shadycss) shims + * for style encapsulation, custom properties, and custom mixins. * * - Document styles defined in a custom-style are shimmed to ensure they * do not leak into local DOM when running on browsers without native * Shadow DOM. - * - Custom properties used by Polymer's shim for cross-scope styling may - * be defined in an custom-style. Use the :root selector to define custom - * properties that apply to all custom elements. + * - Custom properties can be defined in an custom-style. Use the `html` selector + * to define custom properties that apply to all custom elements. + * - Custom mixins can be defined in a custom-style, if you import the optional + * [apply shim](https://github.com/webcomponents/shadycss#about-applyshim)(`shadycss/apply-shim.html`). * - * To use, simply wrap an inline ` + * + * ``` * * @customElement * @extends HTMLElement From 48fac922335047a760b0496d47fa2c9a89eca643 Mon Sep 17 00:00:00 2001 From: Arthur Evans Date: Fri, 4 Aug 2017 15:20:53 -0700 Subject: [PATCH 2/2] Fixed formatting. --- lib/elements/custom-style.html | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/elements/custom-style.html b/lib/elements/custom-style.html index c4ceef3334..c0af8738d7 100644 --- a/lib/elements/custom-style.html +++ b/lib/elements/custom-style.html @@ -22,17 +22,18 @@ * advantage of [shady DOM](https://github.com/webcomponents/shadycss) shims * for style encapsulation, custom properties, and custom mixins. * - * - Document styles defined in a custom-style are shimmed to ensure they + * - Document styles defined in a `` are shimmed to ensure they * do not leak into local DOM when running on browsers without native * Shadow DOM. - * - Custom properties can be defined in an custom-style. Use the `html` selector + * - Custom properties can be defined in a ``. Use the `html` selector * to define custom properties that apply to all custom elements. - * - Custom mixins can be defined in a custom-style, if you import the optional - * [apply shim](https://github.com/webcomponents/shadycss#about-applyshim)(`shadycss/apply-shim.html`). + * - Custom mixins can be defined in a ``, if you import the optional + * [apply shim](https://github.com/webcomponents/shadycss#about-applyshim) + * (`shadycss/apply-shim.html`). * * To use: * - * - Import the custom-style element. + * - Import `custom-style.html`. * - Place a `` element in the main document, wrapping an inline `