[test] Replace webfontloader with the CSS Font Loading API (#48995)