4 ms·
CSS has two magic values that would be useful in many configuration scenarios: - unset: ignore values of this property - initial: use the default value These
by afiori 3y ago
CSS has two magic values that would be useful in many configuration scenarios:
- unset: ignore values of this property
- initial: use the default value
These would be useful e.g. with overrides.
I agree that nulls in a config files are often not a good idea because it is not clear how they are going to be interpreted.
PS: Css also has inherit that could mean "use the local default" while initial could mean use system default.
- lexicality 3y agoUnfortunately that's not what `unset` does and I feel like the confusion it causes and the complication it adds to any CSS parser suggests it's a bad idea!
- afiori 3y agolol, I guess this might be an argument against null
- marcosdumay 3y agoStill, initial and inherit are good things to have. They are about as useful in a configuration language, where the cascading logic also applies.