Chromium Code Reviews| 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: both; | |
|
Timothy Loh
2014/10/21 15:14:00
Did you mean resize: inherit;?
rune
2014/10/21 15:26:04
Done.
| |
| 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 |