I'm working on a project which injects JS+CSS+HTML over web pages which I do not have control over.
I am concerned about the host page styling my injected code -- I want my injected code to only obey my styling, and not theirs.
At the moment the only method to do this I can think of involves explicitly specifying every possible tag for the container <div>'s class (using pre-defined, known browser defaults) and relying on inheritance for those rules to propagate down to the rest of my injected HTML. This CSS would need to appear at the bottom of the page's <head> tag.
I don't think that's the best solution, though, and I don't look forward to implementing it. Surely there are better ways.