I'm trying to use text-align: center (Tailwind class, text-center) but would like to apply a vendor prefix to the value so it would be, text-align: -webkit-center. How can I apply it inline?
I've tried text-[-webkit-center] but it is interpreted as color: -webkit-center, which is incorrect.
I understand that Tailwind has an Autoprefixer option, but that applies the prefix to the property (ie. -webkit-box-align: center) and not the value.
Arbitrary value syntax only works for class utilities registered with
matchUtilities()internally, where their values can be "dynamic". For the class utilities fortext-align, they are registered in Tailwind core viaaddUtilities(), since there are only a few valid valuestext-aligncan have:Thus they are more "static". To apply
text-align: -webkit-center, you could: