Forcing a Webkit Repaint


Under certain conditions, Webkit will not repaint the browser window to reflect DOM additions or changes. This is a known bug.


Adding a transform or something else that will not otherwise alter the appearance of the element: = "scale(1)";  

Or in CSS:

.quickfix { transform: translateZ(0); }
.quickfix { outline: 0px; }

If the element is absolutely positioned: adding a z-index value to the element can force a repaint: = "2";  

Or add and remove a class for the element (the class doesn't need to contain anything).