<!DOCTYPE html>
<!-- use monospace to eliminate kerning issues -->
<html style="font-family: monospace;">
<div style="width: 100em">
AB
</div>
<div style="width: 0">
A B
</html>