Most of the older floats that I have seen were made from very thin brass pressed and soldered. Think in terms of shim stock, and not too much solder. Petrol is less dense than water so if it won’t float in water it is certainly no go in petrol.
Modern ones are often plastic, and not always very suitable plastic either. One of the Universities here looked into methanol fuels back in the seventies, and checked out the effect on carburators. Turned out some of the plastic bits would not stand up long term to petrol, let alone methanol. My memory of Amal carbs is from the seventies, when, shall we say, they were not what they had once been. The concentric had a float that was too small, so it would fail to close the needle valve properly, It is somewhat disconcerting to look down and see a little jet of petrol flowing out the overflow and onto ones boot. The cure was a viton tip needle valve, but even that was not 100% reliable.
There was someone, I think in ME a few years back, who said he was idly wondering about floats, and though of polystyrene foam, so dropped a chunk into some petrol. He said he had never seen anything disappear so fast….