Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / position-absolute-float.html
blobb2bfb44e4ac13d8c67607151f304b9ae4a07b136
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style>
5 #static { position: static; float: right; }
6 #absolute { position: absolute; float: right; }
7 #fixed { position: fixed; float: right; }
8 </style>
9 <script src="../../resources/js-test.js"></script>
10 <script>
11 if (window.testRunner)
12 testRunner.dumpAsText();
13 </script>
14 </head>
15 <body>
16 <div id="static"></div>
17 <div id="absolute"></div>
18 <div id="fixed"></div>
19 </body>
20 <script>
21 description("Test for Bug: 105836 - computed value of float on positioned elements.");
22 shouldBe('getComputedStyle(document.getElementById("static")).float', '"right"');
23 shouldBe('getComputedStyle(document.getElementById("absolute")).float', '"none"');
24 shouldBe('getComputedStyle(document.getElementById("fixed")).float', '"none"');
25 </script>
26 </html>