Skip to content

Commit 0fe6684

Browse files
committed
Add note about CSS encapsulation
1 parent 4b90068 commit 0fe6684

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

readme.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ document.addEventListener('image-crop-change', function (event){
4949
})
5050
```
5151

52+
## CSS encapsulation
53+
The elements HTML structure is initialized in a [Shadow DOM](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_shadow_DOM), so it is impossible to apply CSS to it. If you need to change the element's default style for any reason, you should open up a new issue (or a pull request!), describing your use case, and we'll work with you on solving the problem.
54+
5255
## Browser support
5356

5457
Browsers without native [custom element support][support] require a [polyfill][]. Legacy browsers require various other polyfills. See [`examples/index.html`][example] for details.

0 commit comments

Comments
 (0)