Wouldn’t it be nice if we could use a clamp()-like syntax for more granular typesetting on the web? Add the proposed hyphenation properties to the mix and you’ve got hyphenation and justification control that could rival InDesign / Quark:

p {
text-align: justify;
letter-spacing: clamp(-0.02em, 0, 0.02em);
word-spacing: clamp(-0.02em, 0, 0.02em);
hyphens: auto;
hyphenate-limit-chars: 5 3 3;
hyphenate-limit-last: always;
hyphenate-limit-lines: 2;
hyphenate-limit-zone: 10%;
font-stretch: clamp(97.5%, 100%, 102.5%);

Next post

Previous post