<!DOCTYPE html> | |
<script src="../resources/ahem.js"></script> | |
<script> | |
if (window.testRunner) | |
testRunner.setPrinting(); | |
</script> | |
<style> | |
div { | |
font-family: Ahem; | |
background-color: black; | |
color: white; | |
height: 1.5em; | |
width: 10.5em; | |
overflow: hidden; | |
white-space: nowrap; | |
text-overflow: ellipsis; | |
} | |
</style> | |
<div>This text should be ellipsized and the ellipsis should visible when printed.</div> |