How can I isolate the css classes of my embeddable Web component -


i have written embeddable web component data visualization. there of course associated css classes in addition js , html. need isolate css classes not override and/or clobber css class names of larger web app context gets embedded in.

what best practice achieving this?

a possible way fix problem use scoped css. don't prefer solution , use when nothing else possible.

i found out scoping not supported, @ least not browsers support it, only firefox does

another solution use prefix css classes , id's, take lot of time if files large.

by way, if embedding means in iframe, there no problem, because not apply css of site imbedded in.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -