Skip to content

Truly independent web browser

315 B
Raw Blame
<!DOCTYPE html>
<style>
    div {
        width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
</style>
<div>
    This text is long enough to overflow <img src="" width="20" height="20">
</div>
<script>
    document.querySelector("div").clientWidth;
</script>