Yes, it is still generally necessary to preface certain CSS styles with -webkit and -moz prefixes for browser compatibility. This is because different browsers may interpret certain CSS styles differently, and the prefixes help to ensure that your styles are displayed consistently across different browsers.
However, it is becoming less common to use vendor prefixes as newer versions of browsers are adopting standard CSS features, so it's important to keep up with the latest changes and best practices.
A good practice is to always test your CSS styles across multiple modern browsers to ensure compatibility.
Here are some of the special cases where you might need to use -webkit and -moz column prefixes for better browser compatibility:
- For column gap, the prefix is required in Safari and Chrome (-webkit)
and Firefox (-moz).
- For column width and count, the prefix is required in older versions of Chrome (-webkit) and Firefox (-moz).
- For column fill and rule, the prefix is required in Safari (-webkit).
- For break-inside and break-before, the prefix is required in older versions of Chrome and Firefox (-webkit and -moz).
- For column-span, the prefix is required in older versions of Firefox (-moz).
- For column-rule-color, the prefix is required in older versions of Safari and Firefox (-webkit and -moz).
- For column-rule-style and column-rule-width, the prefix is required in older versions of Safari (-webkit).
- For column-break-after, the prefix is required in older versions of Firefox (-moz).
- For column-fill, the prefix is required in older versions of Chrome (-webkit).
It is important to note that as browsers continue to update and evolve, some of these special cases may no longer require prefixes.