OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE HTML> |
| 2 <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#containing-block-
details"> |
| 3 <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-
width"> |
| 4 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#relative-position
ing"> |
| 5 <link rel="author" title="Alan Gresley" href="alan[at]css-class.com"> |
| 6 <link rel="author" title="Boris Zbarsky" href="bzbarsky[at]MIT.EDU"> |
| 7 <link rel="author" title="Greg Whitworth" href="gwhit[at]microsoft.com"> |
| 8 <link rel="author" title="GĂ©rard Talbot" href="www-style[at]gtalbot.org"> |
| 9 <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 t
he padding boxes of the first and the last inline boxes generated for that eleme
nt. For relatively positioned elements, 'left' and 'right' move the box(es) hori
zontally, without changing their size. 'Left' moves the boxes to the right, and
'right' moves them to the left." name="assert"> |
| 10 <meta content="ahem" name="flags"> |
| 11 |
| 12 <style> |
| 13 div#wrapper |
| 14 { |
| 15 font: 100px/1 Ahem; |
| 16 } |
| 17 span#first-inline |
| 18 { |
| 19 color: green; |
| 20 border-bottom: 100px solid green; |
| 21 } |
| 22 span#second-inline |
| 23 { |
| 24 color: green; |
| 25 border-bottom: 100px solid red; |
| 26 } |
| 27 div#rel-pos-inline |
| 28 { |
| 29 display: inline; |
| 30 position: relative; |
| 31 left: 100px; |
| 32 } |
| 33 div#abs-pos |
| 34 { |
| 35 color: green; /* change color to see what happens with position static *
/ |
| 36 position: absolute; /* If I'm position static, then a reference file is
of no use */ |
| 37 height: 100px; |
| 38 width: 100px; |
| 39 } |
| 40 </style> |
| 41 <p>Test passes if there is no red.</p> |
| 42 <div id="wrapper"><span id="first-inline">X</span><span id="second-inline">X</sp
an> |
| 43 <div id="rel-pos-inline"> |
| 44 <div id="abs-pos">x</div> |
| 45 </div> |
| 46 </div> |
OLD | NEW |