I have added the following to one of my themable CSS files, which has been working absolutely fine until now:
.ICS_footer_side a:hover{
/* [ReplaceColor(themeColor:"Light2")] */ background:#ddd;
}
This rule is not being applied, and I've just figured out why: the corresponding themed output is:
.ICS_footer_side a:hover{
#E7EBD6:#E7EBD6;
}
As I said, the rest of the file is working fine, including several similar rules.
I've got quite good at using ILSpy to inspect SharePoint code and find out why it's doing something weird and work around it; does anyone know where I can find the theming code to do so in this case?
Update: I can work around this by putting a dummy entry abouve the background attribute. I've also found the code involved and it's pretty opaque. (See Microsoft.SharePoint.Utilities.ThemingParser, I think.)
Thus maybe the question should be "why is this happening" rather than "where is this happening so I can figure out why for myself" :)