Rules Hub
Coding Rules Library
← 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 ruleP2project specificStack: SCSS/CSS
cssoverflowscrollux
Prefer overflow: auto over overflow: scroll
Use overflow: auto so scrollbars only appear when needed; overflow: scroll has caused issues (e.g. trackpad/mouse connect-disconnect) and shows scrollbars unconditionally.
PR: vinify-frontend · org-mining-hist-2026-06Created: Jun 19, 2026
Bad example
Old codescss
| 1 | .list { |
| 2 | overflow: scroll; |
| 3 | } |
Explanation (EN)
Objašnjenje (HR)
Good example
New codescss
| 1 | .list { |
| 2 | overflow: auto; |
| 3 | } |
Explanation (EN)
Objašnjenje (HR)