| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src="../../../resources/ahem.js"></script> |
| 3 <script src="../../../resources/testharness.js"></script> |
| 4 <script src="../../../resources/testharnessreport.js"></script> |
| 5 <style> |
| 6 p { |
| 7 width: 150px; |
| 8 border: 1px solid black; |
| 9 font: 10px Ahem; |
| 10 } |
| 11 span { |
| 12 float: left; |
| 13 width: 100%; |
| 14 height: 10px; |
| 15 background: papayawhip; |
| 16 } |
| 17 </style> |
| 18 <div id="log"></div> |
| 19 <div id="container"> |
| 20 <div style="word-wrap: normal; word-break: normal"> |
| 21 <p><span></span>Video source</p> |
| 22 </div> |
| 23 <div style="word-wrap: break-word"> |
| 24 <p><span></span>Video source</p> |
| 25 </div> |
| 26 <div style="word-break: break-all"> |
| 27 <p><span></span>Video source</p> |
| 28 </div> |
| 29 </div> |
| 30 |
| 31 <script> |
| 32 Array.prototype.forEach.call(container.children, function (e) { |
| 33 test(function () { |
| 34 assert_equals(e.offsetHeight, 22, "height"); |
| 35 }, e.style.cssText); |
| 36 }); |
| 37 </script> |
| OLD | NEW |