DriversRecommendedOutdated drivers can make a good PC feel brokenScan driver issues before chasing fixes manually.Scan NowOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run Scan×
Skip to content
Mountain View desk6 min

How to Test a Mobile Website at a 320 CSS-Pixel Width

A practical guide to testing a page at a 320 CSS-pixel viewport: inspect content and controls, check horizontal scrolling, and use screenshots as evidence rather than a conformance verdict.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Set the rendered browser viewport to 320 CSS pixels, then inspect the page and its controls for clipping, overlap, missing content, and page-level horizontal scrolling. A screenshot can document what rendered or help catch visual regressions, but the image alone cannot establish whether the page meets WCAG’s reflow requirement.

What 320 pixels means for this test

The target is a 320 CSS-pixel viewport, not a phone display that is physically 320 pixels wide. WCAG 2.1 Success Criterion 1.4.10 uses a width equivalent to 320 CSS pixels for vertically scrolling content. It also describes this as equivalent to viewing a page from a 1280 CSS-pixel-wide starting viewport at 400% zoom. Browser interface elements and scrollbars can affect the space available for the page, so verify the actual viewport rather than relying on a device’s nominal screen dimensions. W3C WAI’s Understanding Reflow explains the viewport considerations; the criterion is specified in WCAG 2.1, Success Criterion 1.4.10.

The expected outcome is that ordinary vertically scrolling content remains available without making a user scroll both horizontally and vertically to read or use it. The criterion allows exceptions for parts whose use or meaning genuinely requires a two-dimensional layout.

Test the page manually at 320 CSS pixels

  1. Set the viewport. Use responsive browser tools or browser automation to set the page viewport to 320 CSS pixels wide. If you instead use the WCAG zoom equivalence, begin at a 1280 CSS-pixel viewport and zoom to 400%. Confirm the resulting page viewport; a window’s outer width is not necessarily the viewport width.
  2. Inspect the whole page. Scroll from top to bottom. Check text, navigation, forms, buttons, ordinary images, and other content for clipping, overlap, unintended hiding, or controls that cannot be reached or operated.
  3. Check for page-level horizontal scrolling. Try to read and use the ordinary content without needing to scroll sideways as well as down. Look beyond the first screen: a wide element lower on the page can create overflow even when the top appears to fit.
  4. Assess exceptions individually. Maps, video, games, presentations, data tables, and interfaces that need a toolbar to remain visible while content is manipulated may need two-dimensional layout. Keep necessary scrolling within the relevant component where possible; do not treat ordinary content as exempt just because it overflows.
  5. Record the result. Note the viewport and browser context, the affected content, and whether the issue prevents access to information or functionality. Capture a screenshot if you need visual documentation or a baseline for later comparison.

Use Playwright for repeatable viewport checks

Playwright can emulate browser parameters such as viewport, screen size, user agent, and touch capability. Emulation is useful for repeating a check, but it represents the configuration you choose; it is not identical to testing every physical phone. Record the browser and emulation settings used. See Playwright’s emulation guidance.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Sale
Motorola Moto g - 2026 | Unlocked | Made for US 4/128GB | 50MP Camera | Pantone Slipstream, Cellular_Phone
  • Universal unlocked. Compatible with all major U.S. carriers, including Verizon, AT&T, T-Mobile and other prepaid carriers.
  • Super-bright, super-smooth 6.7" display. See your screen clearly even outdoors in sunlight, and enjoy seamless views with a fast-refreshing 120Hz display.*
  • AI-powered camera system. Take stunning photos in any light with the 50MP camera**, look your best with a 32MP selfie cam*****, and capture extreme close-ups.
  • Superfast 5G performance. Unleash your entertainment at 5G speed*** with the MediaTek Dimensity 6300 chipset and up to 12GB of RAM with RAM Boost****.
  • Long-lasting battery + TurboPower charging. Power through day after day with a 5200mAh battery, then get hours of power in just minutes.****

A minimal Playwright Test example sets a 320 CSS-pixel viewport, loads a page, checks the document’s scroll width against its client width, and captures a screenshot. Replace the example URL with the page under test:

import { test, expect } from '@playwright/test';

test('page at 320 CSS pixels', async ({ page }) => {
  await page.setViewportSize({ width: 320, height: 800 });
  await page.goto('https://example.com');

  const hasHorizontalOverflow = await page.evaluate(() => {
    return document.documentElement.scrollWidth >
      document.documentElement.clientWidth;
  });
  expect(hasHorizontalOverflow).toBe(false);

  await expect(page).toHaveScreenshot('page-320.png', {
    fullPage: true,
    scale: 'css',
  });
});

The overflow assertion is a useful signal, not a complete WCAG verdict: a page can have no document-level overflow and still hide or impair content, while a legitimate two-dimensional component may overflow locally. Inspect the actual page and functionality as well. Playwright documents screenshot assertions and visual comparisons.

Choose screenshot scale deliberately

With Playwright’s CSS scale, the screenshot uses one image pixel per CSS pixel. Device scale uses device pixels, so the resulting image can be larger on a high-DPI device. For a screenshot intended to represent a 320 CSS-pixel viewport, CSS scale makes the relationship straightforward; do not mistake a device-pixel image’s width for the CSS viewport width. Playwright’s PageAssertions documentation describes the scale options.

Rank #2
Sale
Samsung Galaxy A17 5G Smart Phone 128GB US 1 Yr Manufacturer Warranty Black
  • YOUR CONTENT, SUPER SMOOTH: The ultra-clear 6.7" FHD+ Super AMOLED display of Galaxy A17 5G helps bring your content to life, whether you're scrolling through recipes or video chatting with loved ones.¹
  • LIVE FAST. CHARGE FASTER: Focus more on the moment and less on your battery percentage with Galaxy A17 5G. Super Fast Charging powers up your battery so you can get back to life sooner.²
  • MEMORIES MADE PICTURE PERFECT: Capture every angle in stunning clarity, from wide family photos to close-ups of friends, with the triple-lens camera on Galaxy A17 5G.
  • NEED MORE STORAGE? WE HAVE YOU COVERED: With an improved 2TB of expandable storage, Galaxy A17 5G makes it easy to keep cherished photos, videos and important files readily accessible whenever you need them.³
  • BUILT TO LAST: With an improved IP54 rating, Galaxy A17 5G is even more durable than before.⁴ It’s built to resist splashes and dust and comes with a stronger yet slimmer Gorilla Glass Victus front and Glass Fiber Reinforced Polymer back.

Keep visual comparisons like-for-like

A screenshot diff can expose changes in wrapping, positioning, or visibility, but rendering may vary with operating system, browser version, settings, hardware, and other conditions. Keep those conditions and capture parameters stable when comparing against a baseline. A changed screenshot’s pixel dimensions alone do not show that reflow failed.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Choose a responsive fix based on the content

When the test reveals a problem, preserve content, functionality, reading order, and the intended relationships between components at the narrow width. Possible implementation approaches include changing columns with media queries, using grid or flexbox to reflow content, and constraining images to fit their available width. W3C describes these as techniques, not mandatory fixes:

Retest the page at the same viewport after changing the layout. A visual adjustment is not enough if a control becomes inaccessible or information disappears.

Rank #3
Samsung Galaxy A16 5G 128GB Cell Phone, Unlocked Android Smartphone, Large AMOLED Display, Durable Design, Super Fast Charging, Expandable Storage, US Version, 2025, Blue Black (Renewed)
  • Charger NOT Included, 6.7" Super AMOLED FHD+, 90Hz Refresh Rate, 385 ppi, 800 nits (HBM), 1080x2340px, 5000mAh Battery
  • 128GB, 4GB RAM, microSDXC, Exynos 1330 (5nm), Octa-Core, Mali-G68 MP2 or Mali-G57 MC2 GPU
  • Rear Camera: 50MP, f/1.8 (wide) + 5MP, f/2.2 (ultrawide) + 2MP, f/2.4 (macro), LED flash, panorama, HDR; Front Camera: 13MP, f/2.0, Android 14, up to 6 major Android upgrades, One UI 6.1
  • 3G: HSDPA 850/900/1700(AWS)/1900/2100; 4G LTE: 1/2/3/4/5/7/12/13/14/20/25/26/28/29/30/38/39/40/41/48/66/71, 5G: 2/5/25/41/66/71/77/78 SA/NSA/Sub6/mmWave - Nano-SIM + eSIM
  • US Model – Global Connectivity – Compatible with Most GSM Carriers like T-Mobile, AT&T, MetroPCS, etc. Will Also work with CDMA Carriers Such as Verizon, Straight Talk.

Troubleshoot common test results

The window says 320 pixels wide, but the page does not

Cause: The measurement may include browser chrome, or may refer to the screen rather than the page viewport. Fix: Check the actual viewport width in the responsive tools or automation configuration. Use 320 CSS pixels as the target, not the outer window or physical screen width.

The screenshot is wider than 320 pixels

Cause: It may be captured at device scale, where image pixels reflect device pixels rather than CSS pixels. Fix: Inspect the configured viewport and screenshot scale separately; use CSS scale when you want one screenshot pixel per CSS pixel.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

A visual diff changes even though the page code did not

Cause: Browser rendering can vary with the operating system, browser version, settings, hardware, and other conditions. Fix: Stabilize the capture environment and settings before treating a diff as a page regression.

Rank #4
Sale
Samsung Galaxy A17 5G Smart Phone 128GB, US 1 Yr Manufacturer Warranty Blue
  • YOUR CONTENT, SUPER SMOOTH: The ultra-clear 6.7" FHD+ Super AMOLED display of Galaxy A17 5G helps bring your content to life, whether you're scrolling through recipes or video chatting with loved ones.¹
  • LIVE FAST. CHARGE FASTER: Focus more on the moment and less on your battery percentage with Galaxy A17 5G. Super Fast Charging powers up your battery so you can get back to life sooner.²
  • MEMORIES MADE PICTURE PERFECT: Capture every angle in stunning clarity, from wide family photos to close-ups of friends, with the triple-lens camera on Galaxy A17 5G.
  • NEED MORE STORAGE? WE HAVE YOU COVERED: With an improved 2TB of expandable storage, Galaxy A17 5G makes it easy to keep cherished photos, videos and important files readily accessible whenever you need them.³
  • BUILT TO LAST: With an improved IP54 rating, Galaxy A17 5G is even more durable than before.⁴ It’s built to resist splashes and dust and comes with a stronger yet slimmer Gorilla Glass Victus front and Glass Fiber Reinforced Polymer back.

The overflow check passes, but content is still hard to use

Cause: A document-width check cannot determine whether information is hidden, controls work, or reading order remains usable. Fix: Inspect and operate the page at 320 CSS pixels, including content below the fold; assess the outcome required by the criterion, not just a single automated assertion.

A table or other component still scrolls sideways

Cause: Some content may require a two-dimensional layout for its use or meaning, but ordinary page content does not qualify merely because it is wide. Fix: Decide whether the exception is genuinely necessary, and contain required two-dimensional scrolling within the component where practical.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Or skip the browser setup

For an API-based capture, ScreenshotNeo can return a screenshot at a specified viewport width; the capture documents the rendering, but you still need to inspect behavior and access to content to assess reflow. Example cURL call, using the target page in place of the URL:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
Tracfone Motorola Moto G 2025, 64GB, Saphire Blue (Locked to
  • Carrier: This phone is locked to Tracfone, which means this device can only be used on the Tracfone wireless network. Tracfone plan required, activating is easy, just 3 steps.
  • DISPLAY: Immersive viewing on a 6.7-inch super-bright 120Hz display with powerful stereo speakers and Bass Boost for cinematic entertainment.
  • CAMERA SYSTEM: Advanced 50MP Quad Pixel camera captures sharp, detailed photos and videos in any lighting condition
  • PERFORMANCE: Lightning-fast 5G connectivity paired with a powerful processor and RAM Boost for smooth multitasking.
  • BATTERY LIFE: Long-lasting 5000mAh battery with TurboPower charging technology delivers hours of power in minutes.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://example.com -o shot.webp

See the ScreenshotNeo documentation for API parameters. Before capture, it accepts cookie and consent banners like a visitor and removes more than 60 known consent platforms, newsletter popups, and chat widgets; each step can be turned off. Bot checks and CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed, and responses report page verdict and billing status in headers. Its MCP server offers take_screenshot, get_page_info, and capture_pdf for AI agents. The free plan includes 1,000 shots per month with no card; paid plans start at $5 for 3,000 shots.

Sign up for ScreenshotNeo’s free plan to try a capture with 1,000 screenshots a month and no card.

Frequently Asked Questions

Does a 320 CSS-pixel test mean every phone must have a 320-pixel-wide screen?

No. It is a viewport-equivalent test dimension, not a requirement about a phone’s physical display width.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Crashes, No Sound, or Screen Glitches?Free driver scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.