I'm writing a WebExtension that injects some HTML elements and CSS into a page. My problem is that it's cumbersome to control for the elements not to inherit styles from the main website stylesheets, especially rules that apply to certain elements, not classes or IDs.
For example, my button
elements tend to inherit styles from the main site if there's some .button {...}
rule defined for that site (and I don't explicitly override it).
How can I prevent this?