Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / block / float / float-reinsertion-failure.html
blob1dd11a92641e9c7a02e49aec6e1d67d51ebe4e3a
1 <!DOCTYPE html>
2 <style>
3 body {
4 width: 50px;
6 #test {
7 float: left;
8 display: none;
10 .block {
11 display: block !important;
13 </style>
14 <script>
15 window.onload = function () {
16 var test = document.getElementById('test');
17 test.classList.remove('block');
18 test.offsetTop;
19 test.classList.add('block');
20 test.offsetTop;
21 test.classList.remove('block');
22 test.offsetTop;
23 test.classList.add('block');
24 test.offsetTop;
25 if (window.testRunner)
26 testRunner.dumpAsText();
28 </script>
29 <body><img src="../resources/50x50.gif"/>
30 <div id="test" class="block">Test passes if no assertion.</div>