concept
Text resize — CSS reference
Text resizing should leave content and functionality available. WCAG 2.2 AA 1.4.4 generally requires text to resize to 200 percent without loss of content or function, except captions and images of text. Relative font sizes can help, but fixed heights and clipping can still break an interface. Here a root-size change models larger text, not actual browser zoom.
Formal Syntax & Structure
css syntaxcss
font-size: 1rem; line-height: 1.5;Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>text-resize</title><style>body{margin:8px;font:16px/1.5 sans-serif;color:black;background:white}#a{box-sizing:border-box}#a{font-size:1rem;line-height:1.5;max-inline-size:18rem;overflow-wrap:anywhere}</style><body><p id="a">Your account information remains readable when text becomes larger.</p></body></html>