In this brilliant article, Ahmad Shadeed shares a long list of defensive CSS techniques to avoid possible issues
Defensive CSS is a collection of snippets that can help you in writing CSS that is protected. In other words, you will have fewer issues in the future.
Think of things such as not using fixed values for heights, thinking about word wrapping, including fallback values for CSS Custom Properties, etc.