California has long prided itself as an environmental trailblazer. It was the first state to set its own vehicle emission rules and the first to outlaw plastic shopping bags.