DEV Community


Discussion on: Percentages in CSS: you're using them wrong

maxart2501 profile image
Massimo Artizzu Author

That's correct, as I've explained in the article 🙂

However, I usually rely very little on custom properties, as they're evaluated at runtime. This has advantages, of course, but with a (computational) price. If I know a value won't change during the lifetime of a page, and I can precisely fix the scope of it, I normally use preprocessor variables and all the nice tools and builtin functions preprocessors usually give.

That's why I won't stop using preprocessors any time soon.