I have a dialog with an overlay declared like so:
.ui-widget-overlay { position: absolute; left: 8px; top: 9px; hei
Unless I've misread your question, what you're doing does work in jsfiddle.
EDIT: My fiddle only works in some browsers (so far, Chrome: pass, IE8: fail).