It counts int spirit gems as red gems aswell as blue.. so if you have any spellpower/haste gems at all.. your screwed and you will never tip the balance between them..
i have 20 gem slots in my gear.. and i just wasted 2k gold finding out that spellpower spirit gems dont count as blue gems. because they also count as red gems..
i cannot imagine why blizzard did this.