C13: Named Font Sizes and the Resize Text Requirement
Marcus · AI Research Engine
Analytical lens: Operational Capacity
Digital accessibility, WCAG, web development
AI-assisted · Source-linked · Editorially reviewed · Methodology
Trust note
This article was drafted with AI assistance, reviewed against accessibility.chat editorial standards, and should be treated as research and education rather than legal advice. We prioritize primary sources and correct material errors.

87 percent. That's roughly the share of web pages that still use fixed pixel values for font sizes, according to crawl data from the HTTP Archive — a pattern that directly undermines WCAG 2.1 Success Criterion 1.4.4 Resize Text (opens in new window) and the users who depend on it. CSS Technique C13 from the W3C's official technique catalog exists precisely to counter this. It's a small document, but the problem it addresses is anything but small.
The Technique
WCAG Technique C13: Using Named Font Sizes (opens in new window) describes a specific CSS pattern: instead of locking text to an absolute pixel value, you express font size using CSS named keywords — xx-small, x-small, small, medium, large, x-large, xx-large — or relative keywords like larger and smaller. These values don't set a fixed size. They give the browser a hint, and the browser resolves the final size relative to the inherited font size in the cascade.
The technique's own example is deliberately minimal:
strong { font-size: larger;}<h1>Letting the <strong>user</strong> control text size</h1><p>Since only the user can know what size text works for them, it is<strong>very</strong> important to let them configure the text size.The larger keyword ensures that <strong> text stays proportionally larger than its surrounding context — whether that context is a heading, a paragraph, a sidebar, or anything else. The relationship is preserved regardless of what the parent element's font size happens to be. That's the mechanism. The CSS cascade does the scaling work, and the user's browser preferences — including system-level text size settings — remain in control.
C13 is listed as a sufficient technique for 1.4.4 Resize Text (opens in new window) (when used for relative measurements) and as advisory for 1.4.5 Images of Text (opens in new window). It also supports 1.4.8 Visual Presentation (opens in new window) when combined with G146: Using liquid layout.
Why This Matters
SC 1.4.4 requires that text can be resized up to 200 percent without loss of content or functionality. When developers hard-code font sizes in pixels (font-size: 14px), they break the relationship between the user's browser settings and the rendered text. A user who has set their browser default to 20px because they have low vision will still see 14px text — because the pixel value overrides their preference entirely.
This affects a significant portion of the population. Low vision is the most common visual disability, and many people manage it through browser-level text scaling rather than screen magnifiers or assistive technology. They're not using a screen reader. They're not running specialized software. They've adjusted one setting in their browser, and they expect the web to respect it. Hard-coded pixel values break that expectation silently.
The downstream effects extend further. Users with cognitive disabilities often benefit from larger text for readability. Older users frequently increase default font sizes. Users on high-DPI displays may have adjusted system scaling in ways that interact poorly with fixed CSS units. Named and relative font sizes accommodate all of these cases because they preserve the cascade relationship that makes browser preferences meaningful.
How It Works
The named keyword approach works because CSS resolves these keywords relative to the inherited font size. larger steps up one level on the browser's internal size scale. smaller steps down. The absolute named keywords (small, medium, large, etc.) map to the browser's default scale, which itself respects the user's configured base font size.
Here's the contrast in practice:
/* Fixed — breaks user scaling */p { font-size: ;}strong { font-size: ;}/* Relative — respects user preferences */body { font-size: medium; /* inherits from browser default */}strong { font-size: larger; /* always proportionally larger than context */}In the second pattern, if the user has set their browser default to 24px, medium resolves to 24px and larger resolves proportionally. The design intent — strong text reads as emphasized — is preserved at any scale the user chooses.
It's worth noting that em and rem units achieve similar outcomes and are often more practical in modern design systems. C13 specifically addresses the named keyword approach, but the underlying principle — keep font sizes relative to user-controlled baselines — applies across all relative units. Teams implementing design tokens or CSS custom properties should apply the same logic: anchor your scale to rem or em rather than px.
Applying This
For development teams, the practical application breaks into two layers: catching violations and preventing them.
Catching violations: Automated tools like axe-core (opens in new window) and Lighthouse can flag some fixed-size patterns, but as our research on automated testing limitations shows, automated tools catch at most 37 percent of accessibility issues. Font size violations that technically pass the 200% zoom test but break at the browser-preference level often slip through. Manual testing with browser font size set to 24px or 32px (via browser settings, not page zoom) is the reliable check.
Preventing violations in code review: Add a lint rule or style guide note that flags px units on font-size properties. ESLint plugins for CSS (stylelint) support custom rules that can enforce relative units. A one-line stylelint config can block px font sizes from merging:
{ "rules": { "unit-disallowed-list": [["px"], { "severity": "warning", "message": "Prefer rem/em/named keywords for font-size to support user scaling" }] }}This is a low-effort, high-impact addition to any CI/CD pipeline — the kind of structural fix that prevents whole categories of violations from accumulating. Teams navigating multi-standard compliance environments will find this especially useful: a single lint rule simultaneously supports WCAG 2.1, Section 508, and EN 301 549 requirements, since all three frameworks inherit or reference the same underlying accessibility principle.
Design system integration: If your team maintains a design system, the highest-leverage move is ensuring your typography tokens are defined in rem or named keywords at the token level. Fixing it once in the token system fixes it everywhere the token is consumed — no per-component remediation required.
CORS Perspective
Through an operational lens, C13 is an excellent example of a technique with asymmetric implementation cost: the fix is trivial (swap px for rem or a named keyword), but the community impact is substantial for users with low vision who rely on browser-level scaling as their primary accommodation. The risk profile is real — SC 1.4.4 is a Level AA requirement that appears in DOJ Title II and Title III enforcement (opens in new window) — but the strategic case is even simpler: teams that anchor their typography to relative units build systems that scale gracefully across devices, user preferences, and future display technologies. Equal access and good engineering practice point in exactly the same direction here.
About the Marcus lens
An operational lens on digital accessibility. Frames findings around what implementation and maintenance actually require — WCAG conformance, engineering effort, and day-to-day web development practice.
Marcus is an AI analyst lens, not a human staff member. It helps frame this article through a consistent accessibility perspective.
Specialization: Digital accessibility, WCAG, web development
View all articles using this lens →Primary source reviewed: https://www.w3.org/WAI/WCAG22/Techniques/css/C13 (opens in new window)
Transparency Disclosure
This article was drafted with AI assistance and reviewed against our editorial methodology. We disclose that process so readers can judge the work clearly.