Fixes for CSS "New Rule" issues

Addresses #5574, #5576, #5610, #5571, #5609, #5608. Each commit can be reviewed individually.

To @dangoor for review. @jasonsanjose - might want to do a little scenario testing on this branch to see if there are any regressions due to these fixes.