<!DOCTYPE HTML>
<meta charset="utf-8">
<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#containing-block-details">
<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width">
<link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#relative-positioning">
<link rel="author" title="Alan Gresley" href="alan[at]css-class.com">
<link rel="author" title="Boris Zbarsky" href="bzbarsky[at]MIT.EDU">
<link rel="author" title="Greg Whitworth" href="gwhit[at]microsoft.com">
<link rel="author" title="GĂ©rard Talbot" href="www-style[at]gtalbot.org">
<meta content="If the element has 'position: absolute' and in the case that the ancestor is an inline element, the containing block is the bounding box around the padding boxes of the first and the last inline boxes generated for that element. For relatively positioned elements, 'left' and 'right' move the box(es) horizontally, without changing their size. 'Left' moves the boxes to the right, and 'right' moves them to the left." name="assert">
<meta content="ahem" name="flags">
<style>
div#wrapper
{
font: 100px/1 Ahem;
}
span#first-inline
{
color: green;
border-bottom: 100px solid green;
}
span#second-inline
{
color: green;
border-bottom: 100px solid red;
}
div#rel-pos-inline
{
display: inline;
position: relative;
left: 100px;
}
div#abs-pos
{
color: green; /* change color to see what happens with position static */
position: absolute; /* If I'm position static, then a reference file is of no use */
height: 100px;
width: 100px;
}
</style>
<p>Test passes if there is no red.</p>
<div id="wrapper"><span id="first-inline">X</span><span id="second-inline">X</span>
<div id="rel-pos-inline">
<div id="abs-pos">x</div>
</div>
</div>