I can confirm you can have the basic allowance of 24 hours for visa-less international transit, as can all nationalities. I can also confirm you cannot have 48 hours for transit, since UK passport holders are not on the "List of Favourites" at PVG/SHA.