<!DOCTYPE html> | |
<meta name="fuzzy" content="maxDifference=0-1;totalPixels=0-10" /> | |
<style> | |
div { | |
font-size: 200px; | |
} | |
</style> | |
<script> | |
onload = () => { | |
const textNode = document.querySelector('div').childNodes[0]; | |
const selection = window.getSelection(); | |
const range = document.createRange(); | |
range.setStart(textNode, 0); | |
range.setEnd(textNode, 4); | |
selection.removeAllRanges(); | |
selection.addRange(range); | |
} | |
</script> | |
<div>ب-بّ-ب</div> |