Rules Hub
Code Ruleset
Rule priority, scope & exceptions
Use this to align rules with the senior-level structure (P0/P1/P2, scope, exceptions/tradeoffs).
Verify browser compatibility before relying on a CSS feature
Before depending on a CSS feature (e.g. calc, certain pseudo-elements) check support against your target browsers, and consider a more compatible approach when support is thin.
Bad example
| 1 | .col { width: calc(100% - 20px); } // unchecked on target mobile browsers |
Explanation (EN)
An unverified dependency on unsupported CSS can break a required browser.
Objašnjenje (HR)
Good example
| 1 | // confirmed calc support on all target browsers, or use flex/grid as fallback |
| 2 | .col { width: calc(100% - 20px); } |
Explanation (EN)
Objašnjenje (HR)
Notes (EN)
Compare the actual feature and subfeature against the repository's browser baseline, then validate a fallback when an unsupported target matters.
Exceptions / Tradeoffs (EN)
Do not add speculative compatibility work for browsers outside the supported baseline. Support for a feature name does not guarantee support for every syntax or interaction.