gecko/layout/reftests/abs-pos/auto-offset-inline-block-1.html
L. David Baron be7a42e48c Make hypothetical box calculation consider types that are inline-outside rather than just inline. (Bug 505706) r=bzbarsky
Change the "hypothetical box" calculations that we do for 'auto'-offset
absolutely positioned elements take its inline codepath (using
horizontal position of placeholder, and placing even with the top of the
placeholder's line) rather than its block codepath (using the horizontal
edge of the containing block, and placing below the placeholder's line)
when display types are display-outside:inline types other than
display:inline.
2011-07-28 18:11:51 -07:00

11 lines
233 B
HTML

<!DOCTYPE HTML>
<title>'auto' offset properties on display:inline-block</title>
<style>
p { font-family: monospace /* avoid kerning */ }
span {
display: inline-block;
position: absolute;
}
</style>
<p>Hello<span>World</span></p>