Follow up to bug 816941 (r=etiennesegonzac)

Adding and removing the "no-opacity" class when needed.