Probably because some child element is overriding it with its own styling. You can find out easily with chrome debugger / firebug / etc.When I try to set the background color on the parent (the header XElement) nothing happens.
I am not saying that you should set it on the parent. You can use the parent to query for the correct element. Take a look at the current sources on how to select a child.