Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / block / positioning / positioned-layout-in-block-flow-when-margin-changes-2.html
blob37110a728cc026302c90f6cf585c616acfda35b1
1 <!DOCTYPE html>
2 <style>
3 body {
4 margin: 0px;
6 #first {
7 height:100px;
9 #next {
10 position:absolute;
12 </style>
13 <script src="../../../resources/check-layout.js"></script>
14 <div id="container">
15 <div id="first">a</div>
16 <div id="next" data-total-y=0>crbug.com/501353: Tests positioned movement layout when margins change.</div>
17 </div>
18 <div id="test-output"></div>
19 <script>
20 document.body.offsetTop;
21 container = document.getElementById("container");
22 container.style['margin-top'] = '-100px';
23 window.checkLayout("#next", document.getElementById("test-output"));
24 </script>