Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / block / positioning / child-of-fixed-pos-after-movement.html
blob6029025f6b666f1ecc4ff6eb82b7c864d8af91e9
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <style>
5 #abs {
6 position: absolute;
8 #fixed {
9 position: fixed;
10 background: blue;
11 width: 80%;
13 #inner {
14 background: lime;
16 </style>
17 <script src="../../../resources/check-layout.js"></script>
18 </head>
20 <body id="body" style="width:800px;">
21 <p>webkit.org/b/115379: Ensure children of fixed pos objects get a layout when the fixed pos
22 object detects that it has to move with an absolute positioned ancestor.</p>
23 <div id="abs">
24 <div id="fixed">
25 fixed div
26 <div id="inner" data-expected-width=800>inner div</div>
27 </div>
28 </div>
29 <script>
30 document.getElementById('inner').offsetLeft;
31 document.getElementById('fixed').style.width='100%';
32 checkLayout('#fixed');
33 </script>
34 </body>
35 </html>