Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / overflow / 007.html
blobbb7c7a8aa677cc86d015e9fd51f27ecf68534cf1
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
2 "http://www.w3.org/TR/html4/strict.dtd">
3 <html lang="en">
4 <head>
5 <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
6 <title>Positioned Content inside Overflow</title>
7 <style type='text/css'>
8 body { background:#ccc; margin:2em }
9 p { margin-top:0 }
10 .content { width:30em; margin:2em auto; background:white; border:1px solid #999; padding:1em; height:7em; overflow:auto }
11 .child { background:red; opacity:0.5; position:absolute; padding:0.5em; top:0; left:0 }
13 #content2 { position:relative }
14 p.ancillary { color:#999; font-style:italic; font-size:80% }
15 </style>
16 </head>
17 <body>
18 <div id="content1" class="content">
19 <p class="child">hi 1</p>
20 <p>This page is to test the behavior of <code>position:absolute</code> content which is a child of an overflowed parent object with <code>overflow:auto</code>, both when the parent element is <code>position:static</code> (top case) and <code>position:relative</code> (bottom case).</p>
21 <p class="ancillary">Following extra content exists to ensure that the parent box overflows properly. Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?</p>
22 </div>
24 <div id="content2" class="content">
25 <p class="child">hi 2</p>
26 <p>Safari v1.2.2 incorrectly scrolls the 'hi 1' div when its parent is scrolled. If you resize the page even a little, this bug fixes itself.</p>
27 <p>Safari v1.2.2 also (really odd) causes the entire second div to be <code>opacity:0.5</code>, despite the fact that this property is only applied to the child item. This problem fixes itself if you resize the window and then scroll the div.</p>
28 <p class="ancillary">Following extra content exists to ensure that the parent box overflows properly. Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?</p>
29 </div>
30 </body>
31 </html>