Avoid some root hazards in style parser.