Apparently, if you have an element with a CSS transform applied to it, and try to put an element inside of it with
position: fixed;, that element acts like an element with
position: absolute; instead of fixed.
This only took me like an hour to figure out...
Hope I can save someone the trouble!