Skip to content

Zoom and Resize Testing — Complete Guide

DodaTech Updated 2026-06-28 3 min read

In this tutorial, you will learn about Zoom and Resize Testing. We cover key concepts, practical examples, and best practices to help you master this topic.

Zoom testing verifies that web pages remain usable when magnified to 200 percent using browser zoom, with text reflowing without horizontal scrolling, responsive layouts adapting correctly, and all functionality remaining accessible.

What You'll Learn

You will test pages at different zoom levels, identify content loss and overlap issues, verify responsive breakpoints, and use browser zoom and text-only zoom tools.

Why It Matters

Approximately 5 percent of users rely on browser zoom to read content. If zooming breaks your layout, hides content, or requires horizontal scrolling, these users cannot use your site effectively.

Real-World Use

A user with low vision zooms to 150 percent on a news site. The navigation menu overlaps the main content, the search bar is hidden, and the article text requires horizontal scrolling. The user leaves and finds a competitor site that handles zoom correctly.

Zoom Testing Flow

flowchart TD
  A[Open Page at 100%] --> B[Zoom to 200%]
  B --> C{Content Visible?}
  C -->|No| D[Fail: Content Hidden]
  C -->|Yes| E{Horizontal Scroll?}
  E -->|Yes| F[Fail: Text Overflow]
  E -->|No| G[Functionality Works?]
  G -->|No| H[Fail: Broken Feature]
  G -->|Yes| I[Test at 400%]
  I --> J[Document Results]

Performing Zoom Tests

Use browser zoom (Ctrl+Plus/Cmd+Plus) to increase magnification. Also test text-only zoom in browser settings.

<!-- Zoom test: does this reflow correctly at 200%? -->
<div class="card">
  <h3>Product Name That Is Very Long</h3>
  <p>Description text that should wrap when zoomed.</p>
  <button>Add to Cart</button>
</div>
/* Responsive design supports zoom */
body {
  font-size: 16px; /* Base size allows proportional zoom */
}

.container {
  max-width: 1200px;
  width: 100%;
  padding: 0 16px;
  /* At 200% zoom, container fills viewport width */
}

/* Avoid fixed widths that break at zoom */
.sidebar {
  /* width: 300px; /* Bad: fixed width */
  width: 25%; /* Good: relative width */
}
// Detect zoom level for testing
function getZoomLevel() {
  return Math.round(window.devicePixelRatio * 100);
}

window.addEventListener('resize', () => {
  console.log(`Zoom level: ${getZoomLevel()}%`);
  // Check for layout issues at each zoom level
});

Common Mistakes

  • Testing only browser zoom, not text-only zoom
  • Using fixed-width containers that overflow at zoom
  • Forgetting to test interactive elements at zoom
  • Assuming responsive breakpoints handle all zoom levels
  • Not testing on mobile devices with zoom
  • Hiding overflow content instead of allowing scroll
  • Using viewport units that do not scale with zoom

Practice and Challenge

Practice 1: Open a page and zoom to 200 percent. Check for horizontal scrollbars. Practice 2: Test text-only zoom in browser settings and compare to full zoom. Practice 3: Verify that all buttons are still clickable at 200 percent zoom. Practice 4: Check that form fields are usable at 200 percent zoom. Practice 5: Test at 400 percent zoom with a screen magnifier.

Challenge: Create a zoom testing matrix with 5 common page layouts (homepage, article, product listing, form, dashboard). Test each at 100 percent, 150 percent, 200 percent, and 400 percent. Document which layouts break and at which zoom levels.

FAQ

What zoom level does WCAG require?

WCAG SC 1.4.4 requires that text can be resized up to 200 percent without loss of content or functionality.

Should I test browser zoom or text-only zoom?

Both. Browser zoom scales everything including images. Text-only zoom scales only text. Test both.

What causes horizontal scrolling at zoom?

Fixed-width containers, absolute positioning, and white-space: nowrap are common causes.

Does responsive design automatically handle zoom?

No. Responsive design handles viewport size changes, not zoom. Zoom changes the CSS pixel ratio differently.

How do I test on mobile zoom?

Use the browser's accessibility settings for font scaling and display size.

What is the difference between zoom and magnification?

Browser zoom changes CSS pixel density. Screen magnifiers enlarge the rendered output. Both need testing.

Mini Project

Create a zoom testing page with known issues: fixed-width sidebar, no-wrap text, absolute-positioned elements, and small touch targets. Test at 200 percent zoom, document each issue, and then create a fixed version. Compare both versions.

What's Next

User Testing with Disabilities covers testing with real users who have disabilities.

Built by the developers of DodaTech

Doda Browser, DodaZIP & Durga Antivirus Pro