I'm new to css and I'm experimenting with css injections, where I change attributes of a homepage on my browser.
I have an element b which has an ancestor a ( not directly, there a few steps between).
I read multiple times that by using a space between classes e.g. .a .b{}
you select all objects of class b that are an descendant of an object of class a.
So injecting.a .b{color: #ffffff;}
is changing the color of my object to white as expected. But only using .b{color: #ffffff;}
is not, which I don't understand, as it should affect all objects of class b, no matter of their ancestors?