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 ruleP1project specificStack: css
cssadstrackingiframesrevenue
Don't collapse ad iframes that need height for viewability tracking
CSS that hides/shrinks native ad iframes can break impression-viewable tracking; keep the project's hide-but-trackable pattern instead of setting height to 0.
PR: frontpage-web · org-mining-hist-2026-06Created: Jun 18, 2026
Bad example
Old codescss
| 1 | .isVarE iframe { |
| 2 | height: 0; /* fix Safari empty iframe stretch */ |
| 3 | } |
Explanation (EN)
Objašnjenje (HR)
Good example
New codescss
| 1 | .isVarE iframe { |
| 2 | /* reuse the hide-but-trackable pattern that preserves measurable height */ |
| 3 | } |
Explanation (EN)
Objašnjenje (HR)