fix #1000
change how offscreen css is defined. finxes #1011