Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document browser support #30

Open
jamesmfriedman opened this issue May 2, 2017 · 5 comments
Open

Document browser support #30

jamesmfriedman opened this issue May 2, 2017 · 5 comments

Comments

@jamesmfriedman
Copy link

I'm excited to try out the lib, but I know shadow dom is not widely supported yet.

Are you polyfilling older versions, or does this only work in Chrome and Safari?

@Wildhoney
Copy link
Owner

The library itself doesn't polyfill anything, but there's a really good polyfill for Web Components that will provide basic support for Shadow DOM in other browsers.

I've updated the example to use the polyfill, so you can see how it behaves in other browsers.

@jamesmfriedman
Copy link
Author

Thanks for the quick reply, and for updating the example!

Yeah I was looking at that polyfill this morning, I wasn't sure if it would just work out of the box or would require any sort of retooling. I know the ShadowDom specifically can be really really hard to polyfill.

@Wildhoney
Copy link
Owner

Wildhoney commented May 2, 2017

It definitely is, but the polyfill does a fairly good job. However there are certainly outstanding difficulties, especially when it comes to embedding CSS in your shadow boundary.

We're not quite at the stage where Shadow DOM is ready for the main stage, but we're heading in the right direction at least. For the moment I'd consider Shadow DOM — and ReactShadow — purely experimental.

@esteban-uo
Copy link

For the moment I'd consider Shadow DOM — and ReactShadow — purely experimental.

Would be great to have that in the main README.md @Wildhoney

@CodingDive
Copy link

You can check the browser support of shadow dom here. It keeps getting better 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants