NS-003
observedcascade-override
A later cascade rule silently revokes position: fixed
- reads as
- The element is declared `position: fixed` in the stylesheet. Conclusion drawn: the browser or the viewport is at fault.
- actually
- A rule added later for an unrelated purpose (`main, .nav, .colophon { position: relative }`) matched the same element and won on document order.
- blind because
- Reading the intended declaration confirms the intent, never the outcome. The stylesheet says fixed; the element is relative.
- the check
- getComputedStyle(el).position — the resolved value, never the authored one.
- cost of missing
- The property is re-declared, re-prefixed and re-tested while the overriding rule stays untouched.
- generalises to
- Any last-writer-wins system: CSS, environment variables, layered configuration, merged dictionaries.