I have been attempting to apply font-variant: initial;
to some CSS selectors, but every time it is compiled, it reverts back to font-variant: normal;
. This issue arises in my Next.js project with default settings, without any modifications made to the build process. Running the next dev
script works fine, but upon running next build
followed by next start
(in a production environment), the styling gets overridden.
Consulting the Next.js documentation, I discovered that they incorporate default postcss
processing which includes handling of the font-variant
property:
This excerpt is particularly relevant:
With no customization, Next.js compiles CSS with certain transformations:
3. New CSS features are converted for Internet Explorer 11 compatibility
font-variant
Property
Is there a way to disable this feature so that the value remains unchanged after compilation?