Creating a Firefox extension that inserts HTML elements into web pages poses the challenge of ensuring consistent styling across various websites. The CSS rules must be robust enough to override any potential modifications introduced by developers. This task is further complicated by the limited selection of HTML elements used in the injected content: div, a, p, span, table, tr, td.
I am searching for a comprehensive CSS Reset stylesheet that can safeguard the injected markup from unwanted alterations by the host page. Is there a universal stylesheet available for this purpose?
To avoid conflicts with existing CSS rules, I need assurance that commands such as p { color: red }
or p { transform: rotate(7.5deg); }
will not disrupt the appearance of my inserted content.