19
Pretext.js: text measurement that never touches the DOM.
(pretextjs.dev)
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Follow the wormhole through a path of communities !webdev@programming.dev
How does Pretext work?
Unfortunately, that doesn't really explain the final integration. And it seems I misunderstood/-assumed at first.
Looking at the example at the top right, it renders numerous div elements?
So, presumably, you lose text wrap behavior and clean markup like
<p>for a paragraph? I also can't select text from it in a normal or consistent way.This example isn't very convincing either.
Seems like a cool visual gimmick more than practically useful and accessible for primary content.