Skip to content

Commit

Permalink
doc: add link to Constructible style sheets polyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
sastan committed Dec 31, 2020
1 parent 362a33b commit a23419c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/examples.md
Expand Up @@ -142,7 +142,7 @@ render(

This example shows how Custom Element can have its styles separated without having the side effect of polluting the root document's styles.

> This example is using [Constructable Stylesheet Objects](https://wicg.github.io/construct-stylesheets/) and `DocumentOrShadowRoot.adoptedStyleSheets` which have [limited browser support](https://caniuse.com/mdn-api_documentorshadowroot_adoptedstylesheets) at the moment (December 2020).
> This example is using [Constructable Stylesheet Objects](https://wicg.github.io/construct-stylesheets/) and `DocumentOrShadowRoot.adoptedStyleSheets` which have [limited browser support](https://caniuse.com/mdn-api_documentorshadowroot_adoptedstylesheets) at the moment (December 2020). The [Constructible style sheets polyfill](https://github.com/calebdwilliams/construct-style-sheets) offers a solution for all modern browsers and IE 11.
```js
import { create, cssomSheet } from 'twind'
Expand Down

0 comments on commit a23419c

Please sign in to comment.