Scientists say new fossils found in China are of a crocodile-like creature that was the first known plant-eating marine reptile.