Assert on background/foreground/attribute order.