It seems foreground changes the text color, but background is just ignored. Did this ever work, or is it not implemented yet? Haven't seen anything in the forum.
It does work - several of the themes in the box use it. Perhaps the rule you're editing is overridden by another one elsewhere.
Ah, it was because a plugin was doing it.
Is there a way to dynamically change the scope of some text using the python API?