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