Hey, so it seems like I have no issues injecting the CSS file mostly thank to the manifest. It's only that... I think something may be wrong with specificity and stuff. For now I'm just trying to build a POC, so I just inject my css with only one class and a few styles in it.
And I apply them by manually editing the DOM, adding my class to the elements I need to highlight. Once everything works, I'll do the same class application via an injected JS.
Now the problem.
When I apply my class to the html, it works fine:
See? everything seems cool. You can see the border there, and the class in the computed styles correctly indicating that it's an injected stylesheet.
So it seems like the style works. Now I'm trying to apply it to the actual element I want to change. Say, a button:
See? The class is not in the styles, and none of the effects applied. I don't understand why the class is not in the styles. Maybe styles don't display blocks when nothing in a block changed the content? But then... Uh... Specificity? I'm struggling overriding it. You see that even the !importants don't work. I know at this point it becomes quite a CSS question, but I'm not sure if the fact that I'm injecting it has anything to do to influence the specificity...