This easily qualifies as a "gotcha" in CSS and is a good reminder that the cascade doesn't know everything all at the same time.