shadycss icon indicating copy to clipboard operation
shadycss copied to clipboard

Is the usage sample accurate?

Open arthurevans opened this issue 7 years ago • 2 comments

In https://github.com/Polymer/lit-html/issues/655, there was a discussion about timing constraints (elements should shim custom properties in tree order). That doesn't seem to be mentioned in the official usage sample: https://github.com/webcomponents/shadycss#usage

arthurevans avatar Dec 20 '18 23:12 arthurevans

cc: @sorvell @azakus

arthurevans avatar Dec 20 '18 23:12 arthurevans

Also, note that it's not clear whether you should call styleSubtree for dynamic updates, as described in the README, or styleElement, as described in the shady-render API docs: https://lit-html.polymer-project.org/api/modules/shady_render.html#render

arthurevans avatar Dec 21 '18 00:12 arthurevans