Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <script src="../../resources/js-test.js"></script> | |
| 3 <!-- For tables. --> | |
| 4 <table id="table1" class="test" style="overflow-x: visible; overflow-y: auto"/> | |
| 5 <table id="table2" class="test" style="overflow-x: visible; overflow-y: scroll"/ > | |
| 6 <table id="table3" class="test" style="overflow-x: visible; overflow-y: hidden"/ > | |
| 7 <!-- For inline tables. --> | |
| 8 <table id="inline_table1" class="test" style="overflow-x: visible; overflow-y: a uto; display: inline"/> | |
|
mstensho (USE GERRIT)
2015/07/27 21:13:10
These are not inline tables. They are regular inli
| |
| 9 <table id="inline_table2" class="test" style="overflow-x: visible; overflow-y: s croll; display: inline"/> | |
| 10 <table id="inline_table3" class="test" style="overflow-x: visible; overflow-y: h idden; display: inline"/> | |
| 11 <!-- For table row groups. --> | |
| 12 <table> | |
| 13 <tbody id="tbody1" class="test" style="overflow-x: visible; overflow-y: auto "/> | |
| 14 <tbody id="tbody2" class="test" style="overflow-x: visible; overflow-y: scro ll"/> | |
| 15 <tbody id="tbody3" class="test" style="overflow-x: visible; overflow-y: hidd en"/> | |
| 16 </table> | |
| 17 <!-- For table rows. --> | |
| 18 <table> | |
| 19 <tr id="tr1" class="test" style="overflow-x: visible; overflow-y: auto"/> | |
| 20 <tr id="tr2" class="test" style="overflow-x: visible; overflow-y: scroll "/> | |
|
mstensho (USE GERRIT)
2015/07/27 21:13:11
Weird indentation.
| |
| 21 <tr id="tr3" class="test" style="overflow-x: visible; overflow-y: hi dden"/> | |
| 22 </table> | |
| 23 <script> | |
| 24 description("This test checks for overflow equality. If overflow-x is visible th en overflow-y should be visible as well."); | |
| 25 var elements = document.getElementsByClassName("test"); | |
| 26 for (i = 0; i < elements.length; ++i) | |
| 27 { | |
| 28 computedStyle = getComputedStyle(elements[i]); | |
| 29 overflowX = computedStyle.getPropertyValue('overflow-x'); | |
| 30 overflowY = computedStyle.getPropertyValue('overflow-y'); | |
| 31 if (overflowX == "visible" && overflowX != overflowY) | |
| 32 testFailed(elements[i].id + ": overflow-y should be visible. Was " + ove rflowY + "."); | |
| 33 else | |
| 34 testPassed(elements[i].id + ": overflow-x is either not visible or both overflow values are visible."); | |
| 35 } | |
| 36 </script> | |
| OLD | NEW |