OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src="../../resources/js-test.js"></script> |
| 3 <style> |
| 4 .overflow { |
| 5 overflow: scroll; |
| 6 width: 200px; |
| 7 height: 200px; |
| 8 } |
| 9 .resize { |
| 10 resize: both; |
| 11 } |
| 12 .resize-inherit { |
| 13 resize: inherit; |
| 14 } |
| 15 </style> |
| 16 <div class="overflow resize"> |
| 17 <div class="overflow no-resize"></div> |
| 18 <div class="overflow resize-inherit"></div> |
| 19 </div> |
| 20 <script> |
| 21 description("CSS resize property is inherited:no"); |
| 22 |
| 23 shouldBe("getComputedStyle(document.querySelector('.overflow.resize')).resize",
"'both'"); |
| 24 shouldBe("getComputedStyle(document.querySelector('.overflow.no-resize')).resize
", "'none'"); |
| 25 shouldBe("getComputedStyle(document.querySelector('.overflow.resize-inherit')).r
esize", "'both'"); |
| 26 </script> |
OLD | NEW |