Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / abs-pos-child-inside-rel-pos-inline-offset-001.html
bloba45bcffbd247b6cb2b6a0e6c4eccfc2b8255dd69
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-positioning">
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 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">
10 <meta content="ahem" name="flags">
12 <style>
13 div#wrapper
15 font: 100px/1 Ahem;
17 span#first-inline
19 color: green;
20 border-bottom: 100px solid green;
22 span#second-inline
24 color: green;
25 border-bottom: 100px solid red;
27 div#rel-pos-inline
29 display: inline;
30 position: relative;
31 left: 100px;
33 div#abs-pos
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;
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</span>
43 <div id="rel-pos-inline">
44 <div id="abs-pos">x</div>
45 </div>
46 </div>