Output ancestor styles first