Hello,
I used toxic in Pokemon showdown and the opponent used REST.
according to bullpedia rest will "remove the bad poison, but will not reset the damage counter. If a Pokémon gets badly poisoned again, its damage taken will carry on from where it was when using Rest."
However, in the battle...