| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <style> | 4 <style> |
| 5 .block { | 5 .block { |
| 6 overflow-x: hidden; | 6 overflow-x: hidden; |
| 7 width: 100px; | 7 width: 100px; |
| 8 } | 8 } |
| 9 .icon { | 9 .icon { |
| 10 display: inline-block; | 10 display: inline-block; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 <script> | 29 <script> |
| 30 var element = document.getElementById('test-block'); | 30 var element = document.getElementById('test-block'); |
| 31 | 31 |
| 32 if (element.offsetHeight == element.scrollHeight) | 32 if (element.offsetHeight == element.scrollHeight) |
| 33 testPassed('Does not overflow.'); | 33 testPassed('Does not overflow.'); |
| 34 else | 34 else |
| 35 testFailed('Overflows, offsetHeight ' + element.offsetHeight + '
px, scrollHeight ' + element.scrollHeight + 'px'); | 35 testFailed('Overflows, offsetHeight ' + element.offsetHeight + '
px, scrollHeight ' + element.scrollHeight + 'px'); |
| 36 </script> | 36 </script> |
| 37 </body> | 37 </body> |
| 38 </html> | 38 </html> |
| OLD | NEW |