OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <style> | 4 <style> |
5 #static { position: static; float: right; } | 5 #static { position: static; float: right; } |
6 #absolute { position: absolute; float: right; } | 6 #absolute { position: absolute; float: right; } |
7 #fixed { position: fixed; float: right; } | 7 #fixed { position: fixed; float: right; } |
8 </style> | 8 </style> |
9 <script src="../js/resources/js-test-pre.js"></script> | 9 <script src="../../resources/js-test.js"></script> |
10 <script> | 10 <script> |
11 if (window.testRunner) | 11 if (window.testRunner) |
12 testRunner.dumpAsText(); | 12 testRunner.dumpAsText(); |
13 </script> | 13 </script> |
14 </head> | 14 </head> |
15 <body> | 15 <body> |
16 <div id="static"></div> | 16 <div id="static"></div> |
17 <div id="absolute"></div> | 17 <div id="absolute"></div> |
18 <div id="fixed"></div> | 18 <div id="fixed"></div> |
19 </body> | 19 </body> |
20 <script> | 20 <script> |
21 description("Test for Bug: 105836 - computed value of float on positioned elemen
ts."); | 21 description("Test for Bug: 105836 - computed value of float on positioned elemen
ts."); |
22 shouldBe('getComputedStyle(document.getElementById("static")).float', '"right"')
; | 22 shouldBe('getComputedStyle(document.getElementById("static")).float', '"right"')
; |
23 shouldBe('getComputedStyle(document.getElementById("absolute")).float', '"none"'
); | 23 shouldBe('getComputedStyle(document.getElementById("absolute")).float', '"none"'
); |
24 shouldBe('getComputedStyle(document.getElementById("fixed")).float', '"none"'); | 24 shouldBe('getComputedStyle(document.getElementById("fixed")).float', '"none"'); |
25 </script> | 25 </script> |
26 </html> | 26 </html> |
OLD | NEW |