Firefox position bug by parent with “filter”
问题 Demo page <body> <div></div> </body> body{ -webkit-filter:blur(2px); filter:blur(2px); } div{ background: blue; margin: auto; position: absolute; right: 0; top: 50%; left: 0; height:200px; width: 200px; transform: translateY(-50%); } Giving filter:blur(1px) (or any other filter) to a parent of a positioned element (Firefox) makes the browser ignore the child's position. Has anyone encountered that and know a way to fix this annoyance? Tested on FF48 beta / win7 回答1: That's because absolutely