Why doesn't Discourse use position:sticky for the top header?

We have talked about this at one point, but we still need to support IE11. Sadly if you toggle to “usage relative” on caniuse IE11 is still more common than Edge and even desktop Safari… a lot of corporate environments are stuck with it.

Not sure if the switch would be worth it if we have to maintain the JS version for IE anyway… it’s alternatively possible to consider a sticky header as an enhancement rather than a must-have feature and just drop it entirely for old browsers… but it works right now, so that would be removing existing functionality.

7 לייקים