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

would bootstrap support shadow dom? #14200

Closed
liudongmiao opened this issue Jul 21, 2014 · 7 comments
Closed

would bootstrap support shadow dom? #14200

liudongmiao opened this issue Jul 21, 2014 · 7 comments

Comments

@liudongmiao
Copy link

Shadow Dom has css scoping.

I have make a shadowdom version, but only test on my site: https://github.com/liudongmiao/bootstrap/compare/shadowdom

@liudongmiao
Copy link
Author

here is a compied version (v3.2.0): http://piebridge.me/bootstrap-shadowdom.css

@liudongmiao
Copy link
Author

For css scoping, please refer here: http://www.w3.org/TR/css-scoping-1

@cvrebert
Copy link
Collaborator

Given the current level of maturity of the spec ("First Public Working Draft", "early-stage", "not well-baked and may change dramatically or be removed"), I think it's unlikely that we'd support it until it advances further.

@mdo
Copy link
Member

mdo commented Jul 21, 2014

What @cvrebert said. No plans here.

@mdo mdo closed this as completed Jul 21, 2014
@liudongmiao
Copy link
Author

Thanks.

@dfreire
Copy link

dfreire commented Oct 14, 2014

@liudongmiao, your compiled css works. However there's still a problem with bootstrap.js. If for example you try to use a dropdown button inside a polymer element, it will be correctly styled, but with no dropdown behaviour. Any ideas for fixing this?

@liudongmiao
Copy link
Author

@dfreire as the shadow dom won't be chosen outside of the element, so there is no way.

In our project, we only use bootstrap's css, all the behavior are maintained by the element. Actually, it would be very easy, just add the css or remove the css. (classList would be easy to do this, any modern browser that support polymer support classList already).

@twbs twbs locked and limited conversation to collaborators Dec 18, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants