Rules Hub
Code Ruleset
← Back to all rules
Rule priority, scope & exceptions
Use this to align rules with the senior-level structure (P0/P1/P2, scope, exceptions/tradeoffs).
frontend ruleP2stack specificStack: CSS
csscross-browserfontsverification
Cover all browsers (and verify) when applying font smoothing
Verify vendor font-smoothing hints on supported platforms; they cannot guarantee identical typography across browsers.
PR: hegnar-components · org-mining-hist-2026-06Created: Jun 18, 2026
Bad example
Old codescss
| 1 | .text { -webkit-font-smoothing: antialiased; } /* only WebKit covered */ |
Explanation (EN)
Testing one browser cannot establish the intended result of platform-specific font rasterization hints.
Objašnjenje (HR)
Good example
New codescss
| 1 | .text { |
| 2 | -webkit-font-smoothing: antialiased; |
| 3 | -moz-osx-font-smoothing: grayscale; |
| 4 | } |
| 5 | /* and verify the result in Firefox/Safari */ |
Explanation (EN)
Objašnjenje (HR)
Notes (EN)
Treat font-smoothing declarations as optional vendor/platform hints and visually check supported browser/OS combinations when typography relies on them.
Exceptions / Tradeoffs (EN)
These nonstandard hints do not guarantee matching rendering across all browsers or operating systems; native rendering may be preferable.