Polystyrene? Yes. That bucket is probably HDPE or something like that though which wouldn’t react to gas. Most modern car gas tanks are some form of high density plastic.
Yeah, I was surprised the first time I saw a plastic gas tank (it was on the ground outside an auto repair shop). I just assumed they were usually made out of metal.