<!DOCTYPE html> | |
<style> | |
div > div { | |
border: thin solid black; | |
font-family: 'Courier New'; | |
-webkit-hyphens: auto; | |
hyphens: auto; | |
width: 5ch; | |
} | |
.nowrap { | |
white-space: nowrap; | |
} | |
</style> | |
<script> | |
if (window.internals) | |
internals.setMockHyphenation('en-us'); | |
</script> | |
<div lang="en-us"> | |
<div>hyphenation</div> | |
<div class="nowrap">hyphenation</div> | |
</div> |