Layer tree when the fixed elements are out-of-view (should have just a root layer):

  Layer tree when the fixed elements are in-view (both fixed elements should have layers):
  

  Layer tree when the fixed elements are out-of-view again (should have just a root layer):