Every carrier publishes its maximum carry-on dimensions, so easy to just check them.
"Tapering" is irrelevant because the greatest parameter for a dimension will apply.
Don't forget to include wheels & handles when measuring as many manufacturers do not, but the air carriers do.