OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <script src="../../resources/js-test.js"></script> | |
3 <style> | |
4 .explicitlyNoColumns { -webkit-columns:auto; } | |
rune
2015/05/19 09:18:15
Inconsistent indentation. 2 spaces here and 4 spac
mstensho (USE GERRIT)
2015/05/19 09:37:17
Done.
| |
5 </style> | |
6 | |
7 <div id="elm"></div> | |
8 | |
9 <script> | |
10 description("Test that setting columns to auto is the same as not setting it at all."); | |
11 onload = function() { | |
12 document.body.offsetTop; | |
rune
2015/05/19 09:18:15
The offsetTop forced style/layout should suffice.
mstensho (USE GERRIT)
2015/05/19 09:37:17
Done.
| |
13 document.getElementById('elm').className = "explicitlyNoColumns"; | |
14 if (window.internals) { | |
15 // Need to call updateStyleAndReturnAffectedElementCount() first, to get style recalculated, | |
16 // so that the necessary objects get marked for layout (which, if th e test passes, should be 0). | |
17 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "1" ); | |
18 shouldBe("internals.needsLayoutCount()", "0"); | |
19 } else { | |
20 testFailed("There's no web exposed API usable for this test. The bug doesn't affect layout in a reliable way. Please rerun inside the layout test fr amework."); | |
21 } | |
22 } | |
23 </script> | |
OLD | NEW |