Tools & Platforms
Does your web story still read at 400% zoom? The reflow and contrast numbers behind WCAG
A checklist for browser-based interactive fiction built from three WCAG 2.2 criteria, with the zoom arithmetic for five screen widths and a contrast table.
A story that is mostly text should be the easiest kind of web page to make readable. In practice, interactive fiction published for browsers can wrap its text in a styled box with a fixed width, a sidebar or a row of buttons, and those are the first things to break when a reader makes the text bigger. Three success criteria in the Web Content Accessibility Guidelines 2.2 cover exactly this: Resize Text, Reflow and Contrast (Minimum). This article turns them into numbers you can check yourself in a few minutes.
The three criteria in plain terms
Resize Text (1.4.4). Apart from captions and images of text, text must stay usable when enlarged to 200 percent with the browser’s own tools and no assistive software. The page’s stated purpose is that people with milder visual impairments can read more easily without special software.
Reflow (1.4.10). Vertically scrolling content must work at a width equivalent to 320 CSS pixels without two-dimensional scrolling and without losing information or functionality. The exception covers parts of the content that need a two-dimensional layout for usage or meaning. The page lists images required for understanding, video, games, presentations and data tables among the examples of such content. We read that as covering a game board or a map, not the running text of a story, but this is our interpretation and not a statement in the criterion.
Contrast (Minimum) (1.4.3). Text and images of text need a contrast ratio of at least 4.5:1, with 3:1 for large-scale text, and a few exceptions. The page adds that computed values should not be rounded, so 4.499:1 would not meet 4.5:1.
Why 320 pixels means 400% zoom, sometimes
The Reflow page explains that 320 CSS pixels is equivalent to a starting viewport of 1280 CSS pixels at 400% zoom. The relationship is just division: the width in CSS pixels is the screen’s width divided by the zoom factor. That means the zoom needed to reach 320 depends on the screen.
| Window width (CSS px) | At 100% | At 200% | At 300% | At 400% | At 500% | Zoom needed for 320 |
|---|---|---|---|---|---|---|
| 1280 | 1280 | 640 | 427 | 320 | 256 | 400% |
| 1366 | 1366 | 683 | 455 | 342 | 273 | 427% |
| 1440 | 1440 | 720 | 480 | 360 | 288 | 450% |
| 1920 | 1920 | 960 | 640 | 480 | 384 | 600% |
| 2560 | 2560 | 1280 | 853 | 640 | 512 | 800% |
If you test on a wide monitor, the text will not reach 320 CSS pixels at 400%; at a width of 1920 it is still 480. Either resize your browser window to 1280 CSS pixels before zooming, or use a phone or a narrow window. The widths in the table are our examples, not a survey of devices.
Resize Text is simpler: a 16-pixel line of text at 200% appears at 32 pixels, an 18-pixel one at 36.
Contrast: some greys that are not enough
Soft grey text is a common styling choice. We computed WCAG contrast ratios for several grey values using the relative-luminance formula, without rounding:
| Text | Background | Ratio | Meets 4.5:1 |
|---|---|---|---|
| #767676 | #FFFFFF | 4.542 | yes |
| #777777 | #FFFFFF | 4.478 | no |
| #595959 | #FFFFFF | 7.005 | yes |
| #999999 | #FFFFFF | 2.849 | no |
| #BBBBBB | #FFFFFF | 1.920 | no |
| #CCCCCC | #1E1E1E | 10.381 | yes |
| #888888 | #1E1E1E | 4.703 | yes |
| #666666 | #1E1E1E | 2.903 | no |
| #FFFFFF | #1E1E1E | 16.671 | yes |
The first two rows are one step apart in hex value, yet one passes and the other does not, which is why the criterion’s note about rounding matters. The colour pairs are our examples, not a recommendation of a theme.
A five-minute check
- Resize the window to 1280 CSS pixels wide, then zoom to 400%. Does the story text sit in one column that you can read by scrolling only down?
- Zoom to 200% on a normal window. Is any text clipped, overlapped or hidden? Can you still use every choice link and the save or restart controls?
- Look at the choices. Do they wrap onto several lines instead of running off the edge?
- Check the text colour for every state: normal text, links, visited links and disabled choices. Use a contrast checker that does not round.
- Check any status panel or inventory. A sidebar that sits beside the text on a wide screen should move below or behind a button on a narrow one.
- Do not put the story in an image. Images of text are excepted from resizing, but that is a reason to avoid them, not a licence.
Limits
We did not test any Twine or ink front end, and we make no claim about the default styling of any tool. The criteria texts are from W3C’s explanatory pages, which are advisory; the guidelines themselves are normative. Passing these three checks does not make a story accessible: screen-reader support, keyboard operation, motion and many other things are outside this article.
How we calculated
The script was run in Python 3.
# 1) Reflow arithmetic: effective CSS-pixel width = screen CSS width / zoom. WCAG 1.4.10 tests vertical-scrolling content at 320 CSS px.
widths = (1280, 1366, 1440, 1920, 2560)
zooms = (1.0, 2.0, 3.0, 4.0, 5.0)
print("viewport width (CSS px) | width at 100%, 200%, 300%, 400%, 500% | zoom needed to reach 320")
for w in widths:
print(w, [round(w/z) for z in zooms], f"{w/320*100:.0f}%")
# 2) Contrast ratio (WCAG relative luminance), text on white and on a dark page. WCAG says do not round: 4.499 fails 4.5.
def lum(h):
c = [int(h[i:i+2], 16)/255 for i in (1, 3, 5)]
c = [x/12.92 if x <= 0.03928 else ((x+0.055)/1.055)**2.4 for x in c]
return 0.2126*c[0] + 0.7152*c[1] + 0.0722*c[2]
def ratio(a, b):
la, lb = sorted((lum(a), lum(b)), reverse=True); return (la+0.05)/(lb+0.05)
pairs = [("#767676", "#FFFFFF"), ("#777777", "#FFFFFF"), ("#595959", "#FFFFFF"), ("#999999", "#FFFFFF"), ("#BBBBBB", "#FFFFFF"),
("#CCCCCC", "#1E1E1E"), ("#888888", "#1E1E1E"), ("#666666", "#1E1E1E"), ("#FFFFFF", "#1E1E1E")]
print("text / background | ratio | meets 4.5:1 (not rounded)")
for f, b in pairs:
r = ratio(f, b); print(f, b, f"{r:.3f}", "yes" if r >= 4.5 else "no")
# 3) Text size at 200%
for px in (14, 16, 18): print(f"{px}px text at 200% zoom = {px*2}px on screen")
Output:
viewport width (CSS px) | width at 100%, 200%, 300%, 400%, 500% | zoom needed to reach 320
1280 [1280, 640, 427, 320, 256] 400%
1366 [1366, 683, 455, 342, 273] 427%
1440 [1440, 720, 480, 360, 288] 450%
1920 [1920, 960, 640, 480, 384] 600%
2560 [2560, 1280, 853, 640, 512] 800%
text / background | ratio | meets 4.5:1 (not rounded)
#767676 #FFFFFF 4.542 yes
#777777 #FFFFFF 4.478 no
#595959 #FFFFFF 7.005 yes
#999999 #FFFFFF 2.849 no
#BBBBBB #FFFFFF 1.920 no
#CCCCCC #1E1E1E 10.381 yes
#888888 #1E1E1E 4.703 yes
#666666 #1E1E1E 2.903 no
#FFFFFF #1E1E1E 16.671 yes
14px text at 200% zoom = 28px on screen
16px text at 200% zoom = 32px on screen
18px text at 200% zoom = 36px on screen
Sources
- W3C, “Understanding Success Criterion 1.4.10: Reflow”, opened 2026-11-07: https://www.w3.org/WAI/WCAG22/Understanding/reflow.html
- W3C, “Understanding Success Criterion 1.4.4: Resize Text”, opened 2026-11-07: https://www.w3.org/WAI/WCAG22/Understanding/resize-text.html
- W3C, “Understanding Success Criterion 1.4.3: Contrast (Minimum)”, opened 2026-11-07: https://www.w3.org/WAI/WCAG22/Understanding/contrast-minimum.html
This article is written for: Người xuất bản truyện tương tác chạy trên trình duyệt muốn tự kiểm tra chữ có đọc được khi phóng to 200% và 400%, và độ tương phản chữ có đạt 4.5:1 không.
AI assistance recorded as: AI draft, not edited. Review status: approved.