Handle gracefully bad nesting of styles