Interactive display QA

Test Touch Target Size and Spacing in HTML5 Display Ads

Test the real tap areas in the supported preview of your interactive display ad. Around closely spaced controls, check where each action begins and ends. Where WCAG 2.2 is your review baseline, require a target of 24 by 24 CSS pixels or an applicable exception. Hold an export whose neighboring actions are hard to select independently.

By FroggyAds, November 25, 2026

Two 20 by 20 CSS pixel touch targets are shown before and after an eight-pixel move. Their 24-pixel circles overlap by 3 pixels before the move and have a 5-pixel gap afterward.

Write down what each tap is meant to do

In interactive display ads, touch targets are the areas that accept pointer input for a specific action. The visible icon might be smaller than that area. In a fabric ad, two swatches might change the product image while a third control takes the customer to an order page. Write down which actions belong to each swatch, what changes after a tap and which action opens the advertiser's page.

Start with the placement the buyer actually plans to use. This test applies where the creative and placement support distinct interactive controls. Ask the creative owner where you can review the approved presentation. A design file can tell you where the swatches were painted. The creative preview tells you whether the customer can operate them inside the frame that the buyer will use.

Look for controls that become close only in the smaller export. Two buttons on separate rows can fit beside each other on desktop and be forced together in a compact template. A bottom strip can move upward when copy wraps in another language. A separate exit can also overlap another control if both sit over the same image. Mark the sizes and states where the actions compete before you start testing.

Check the final creative dimensions against the intended inventory. Our display ad sizes guide covers that placement and asset decision. This review starts once you know the size and can identify the two actions the customer has to tell apart.

Measure the hit areas in the rendered ad

Use CSS pixels for the geometry. A screenshot from a high-density phone may have several image pixels for one CSS pixel. Record the preview's layout size and use measurements from the same coordinate system for the two boxes and their gap. Keep the screenshot as a record of what people see when each target is active.

For markup you own or are authorized to inspect, getBoundingClientRect() gives a useful starting rectangle for an element. It includes padding and borders and reports the position relative to that document's viewport. Find the actual control first. An image or span inside a button often has a smaller rectangle than the element that accepts the tap.

Inspect what happens at the sides of that rectangle. A wrapper can clip part of a control, or a broad exit layer can lie above it. In an authorized preview, elementFromPoint() can show the topmost element at each sampled point. Use viewport coordinates from the document you are inspecting. If an outer document returns the ad's iframe, obtain a supported way to inspect or get evidence from inside the frame. Check whether the element at the sample point is the control or a child inside it.

Hit testing and tapping answer related questions. Hit testing shows what the browser finds at a sampled point. For example, the method skips an element with pointer events turned off. A deliberate tap reveals which action the preview actually performs. Record both when a control looks large enough by the rectangle but the neighbor reacts to a tap halfway across it. If you only have access to a preview image, ask the owner for the interactive version or for evidence from the affected export and state.

Check sizing and spacing where WCAG applies

WCAG 2.2 calls its Level AA criterion 2.5.8 Target Size (Minimum). To meet the size branch, the active area must be able to contain a square of 24 by 24 CSS pixels, with its sides parallel to the viewport edges. W3C's examples show why the dimensions of a bounding box alone can mislead. A tightly rounded or clipped shape may have a 24 by 24 box while its active shape cannot contain that square.

An undersized target can qualify through the spacing exception. Place a reference circle with a 24 CSS pixel diameter at the center of the target's bounding box. Check that the circle clears every neighboring target and the circles of any neighboring undersized targets. Include larger controls in the first check. A circle can reach the edge of a wide adjacent button even if that button needs no circle of its own.

For rectangular targets in the same row, the two center positions make the circle comparison simple. Two circles of radius 12 overlap along the line between their centers when those centers are only 21 pixels apart. At a separation of 29 pixels, their edges have a 5-pixel gap along that line. Compare each circle with its neighbor's actual target separately. If the targets are staggered or shaped differently, use the geometry of that rendered arrangement.

The criterion also includes exceptions for an equivalent control, inline text, user agent controls and an essential presentation. An equivalent control has to provide the same function on the same page and meet the criterion. The inline exception applies to a target in a sentence or constrained by the line height of surrounding text that is outside the target. A control whose size the user agent sets and the author leaves alone has its own exception. The essential branch applies when the particular presentation is essential or legally required to convey the information. Record the specific reason if your review relies on one of these branches.

Treat this as a review baseline where the standard applies. The placement may set a different or additional requirement. A layout can meet the spacing exception and still feel awkward when the controls are near the edge of the frame. If there is room for a larger active area, try that layout on the intended phone before committing spend.

See what an eight-pixel move changes

Consider a hypothetical 300 by 250 display ad for a flooring seller. Honey oak and slate swatches update the sample room shown in the ad. The designer needs both options at the top and wants to keep the painted swatches the same size. We used an isolated drawing of the two clickable rectangles to work out what moving one of them would change.

Both swatches accept taps across a square 20 CSS pixels wide and 20 tall in this reference example. Their top and bottom edges are at y45 and y65, so each center is at y55. Honey oak occupies x32 through x52 and has center x42. Slate initially occupies x53 through x73 and has center x63. The drawings use the same clickable shapes and the same scale in both versions.

The 24-pixel circle around Honey oak reaches x54 at its widest point on the right. The Slate circle starts at x51 on the left. Their horizontal overlap is 3 pixels. Each circle also reaches 1 pixel into the other control's box along that line. The rectangles themselves have a 1-pixel gap. A buyer looking only at that gap could easily miss the failed spacing check.

Moving Slate eight pixels to the right puts its center at x71 and its edges at x61 and x81. The circle now begins at x59, five pixels past the Honey oak circle's right edge. Each circle also clears the opposite rectangle by 7 pixels along the shared centerline. With only these two targets in the drawing and no other applicable exception in play, the new positions meet the spacing branch for the pair.

Reference layoutCenter distanceCircle comparisonClearance from the opposite targetCreative decision
Original swatches21 CSS pixels3 CSS pixels of overlapEach circle extends 1 CSS pixel into the opposite targetHold the compact version for a spacing repair.
Slate moved right by 8 CSS pixels29 CSS pixels5 CSS pixels of gapEach circle clears the opposite target by 7 CSS pixelsTake this layout into the approved preview and check both actions.

If this buyer has space to expand both hit areas after the move, rectangles of 24 by 24 could use the same centers. Their facing edges would be x54 and x59 with a 5-pixel gap. Keep the painted swatch centered and verify the additional area actually responds. The production choice depends on what else occupies those positions in the completed ad. The drawing only compares the two specified rectangles.

Check what customers can select with a touch

Use a supported device or testing setup that shows the ad in its intended frame. Start from a fresh state and tap the center of the first action. Read the outcome, return to the start and test the second one. Repeat near each edge that faces the neighboring control, then in any other part the picture suggests is tappable. Note whether the correct action happens, whether nothing happens or whether the wrong action starts.

Ask the tester to hold the device as someone would when reading the surrounding page. A human may cover part of the ad with a finger, so choose visible landmarks that let a second person try roughly the same spot. Add exact coordinates when the preview makes them available. Sample points that have been clipped or are close to a competing exit. If the ad changes state, check the same area after the change and see where the tap now goes.

Keep the gesture and the recording simple. If both swatches update the room, label one with its expected finish before trying a tap at the edge. Otherwise the result can look plausible even when the other swatch was selected. If a tap opens a landing page unexpectedly, trace the exit layer and verify which area triggered it with our ClickTag and exit guide.

For an interactive build with keyboard access, have someone review that path too. A larger hit area may come from changing the active element rather than its style, so check whether that affected focus order or its visible cue. Keep that evidence with the asset using our keyboard focus guide. A passing touch test provides evidence for the tested pointer path.

Choose the smallest repair that restores the actions

Give production the exact size, state and pair of controls. If the layout has space beside them, try moving one before changing what either control does. If the visual design needs compact icons, add hit area around them and check the nearby targets again. When a broad click layer is involved, ask the owner to keep each supported in-ad action distinct from the website exit in the final placement format.

If there is no way to make the compact version usable, you have a buying choice. Hold that size and assess an approved alternative with a single action or a larger frame. A simpler fallback can bring customers to a product page where the two finishes are easier to choose, as long as its own copy and route make that clear. Our display ad design guide can help you decide which part of the offer to keep in that simpler version.

Retest the smallest approved export and any other version built with the changed component. Release a size after you've verified its active areas, checked the applicable size or spacing baseline, and seen each intended action work in the supported preview. When a wide version has enough room and the narrow one remains unresolved, keep those verdicts separate. Base the pilot on the reviewed sizes and their approved inventory.

If the revised size is the one you can buy, open your free FroggyAds account and put the replacement filename and intended placement in your buyer's brief. The two files can share the same thumbnail, so identify the revised export by its version too.

Add the target proof to your approval handoff

Record the dimensions and positions for both active areas, the preview size, the version and the state when you measured them. Pair an annotated screenshot with the test outcome for the center and neighbor-facing edge of each control. When spacing is part of the decision, state which exception you applied and show the adjacent target and circle checks. If a customer path is missing a pass, say what evidence you still need.

When the corrected placement goes into your pilot, keep track of which size and exit map was actually used. If an interaction report is available on your chosen route, you can review it for an unexpected rise in website exits after people select a swatch. Return to the observed action if the numbers look unusual. The event totals cannot show the usable hit area or identify exactly where a tap landed.

For a single-action replacement, record the fallback size and its verified exit in the submission brief. Read our campaign approval FAQ for the information that accompanies the asset when you create your free FroggyAds account and prepare the selected version.

Frequently asked questions

What is a touch target in an interactive ad?

It is the part of the ad that accepts a tap for a specific action. A swatch may be painted as a small square inside a larger clickable button. Check the area that responds around the picture and the reaction you get when you touch it.

Is 24 pixels a rule for every display ad placement?

WCAG 2.2 uses 24 by 24 CSS pixels for its Level AA Target Size (Minimum) criterion, with exceptions. Use that criterion where it applies to your review and confirm the rules of the intended placement. The Level AAA Enhanced criterion specifies 44 by 44 CSS pixels with its own exceptions.

Can two 20 by 20 controls pass the spacing check?

Yes, a layout can qualify through the spacing exception when each 24 CSS pixel reference circle clears other targets and circles for nearby undersized targets. In the swatch example, moving the centers from 21 to 29 CSS pixels apart gives the circles a 5-pixel gap along their shared line.

Do I count the pixels in my screenshot?

Measure in CSS pixels for the WCAG test. The screenshot may contain more or fewer image pixels than the layout dimensions indicate. Record the preview's coordinate scale and use the screenshot to show the visible relationship between the controls.

Does extra space around a painted icon increase its target size?

It increases the target if the added space really accepts the same action. Padding on the clickable element can help, provided no neighboring control or overlay takes those taps. Inspect sample points near the added area and check what happens on a supported touch device.

Do I draw a circle over a larger neighboring button too?

The reference circles are for undersized targets under the spacing exception. Compare the small target's circle with the larger button's actual hit area. It is possible for the circle to reach that button even when the centers appear far apart.

What should I check when a tap opens the advertiser's page too early?

Confirm the intended in-ad action and find which node or layer receives the tap. Use a supported preview to verify which part opens the site. Once the overlapping area is repaired, tap both actions separately and verify the destination from the intended exit.

Can I use the publisher's screenshot as the approval evidence?

A screenshot shows how the ad looks in the placement. Get an interactive preview or an authorized readout for the actual tap areas and the response after a touch. Keep the status open for any action whose behavior you cannot verify in the relevant rendering.

Should I retest after changing a language or product name?

Retest when the revision changes wrapping, control positions, the interactive template or the reachable area. Keep the correct label and action in your record as well. A compact version can move the target closer to its neighbor even if the image stays the same.

What if only the smallest size fails?

Hold the affected asset and confirm whether a corrected or simpler version is supported. Retest any other size that uses the same control placement or click layer. If the review supports another size independently, record its own verdict and use the reviewed inventory in the pilot.

Sources