It's very risky play, and if it doesn't work it leaves China in a much worse place than before, so ideally you don't make the play unless you're already facing some big downside, sort of as a "hail Mary" move. At this point I'm sure they're assuming Trump is glad handing them while preparing for military action, they might even view invasion of Taiwan as defensive if they think military action could be imminent anyhow.
And you know we'd be potting their transport ships, et cetera, from a distance the whole time, all to terrific fanfare. The Taiwan Strait would become the new training ground for naval drones, with the targets being almost exclusively Chinese.
Taiwan fields strong air defenses backed up by American long-range fortifications.
The threat is covert decapitation. A series of terrorist attacks carried out to sow confusion while the attack launches.
Nevertheless, unless China pulls off a Kabul, they’d still be subject to constant cross-Strait harassment.