CYBERDZYNES Independent digital design magazine

Tools & Workflow / Debugging notes

Make a layout bug easy to reproduce

Turn a screenshot of a broken page into a repeatable starting state, a short set of steps and a clear description of what went wrong.

A repeatable report connects the exact setup and interaction to the first visible failure.

A screenshot shows a strip of white to the right of an event listing. It is tempting to see the empty area, add an overflow rule and move on. But the screenshot doesn't say whether the page shifted on load or after someone opened a filter. That difference is worth more than a guess at which line of CSS broke.

Catch the transition

In this hypothetical example, start on the staging event listing with filters closed, English selected and no filters applied. At a viewport width of 768 CSS pixels, open the date filter, then select 'Next weekend'. The expected result is that the applied filter appears and the page stays within the viewport. The symptom to record is that the page can now scroll horizontally and the last filter chip extends past the right edge.

Try the sequence from a fresh starting state before handing it over. Record the URL or route, preview revision, browser version, operating system, viewport dimensions and browser zoom. Mention a saved preference only if it changes the starting state. A screenshot before and after the filter is applied can show more than a video that starts after the page has already moved.

Change one thing at a time

Return to that starting state and compare a short chip such as 'Today' with 'Next weekend'. Then restore the long chip and change only the viewport width. If the symptom appears at 768 and disappears at 800, report those two observations. They are useful even if you have not narrowed the threshold to the exact pixel. Include a nearby passing case so the next person can tell whether their setup matches yours.

Inspect the chip row and its ancestors before editing anything. Compare the available width with the row's rendered width and look at the rules that control wrapping. A temporary change in the inspector can test one suspicion. If enabling wrap removes the overflow, record that as a clue rather than treating it as proof that wrapping is the right design.

Keep one complete route to the bug

A reduced example is helpful only while it still fails. If you copy the row into a blank page and the problem vanishes, go back to the failing route and remove surrounding pieces one by one. Preserve anything needed to trigger the issue, including an ancestor's sizing rules or the exact fixture text.

Use the report to check the fix

Put the shortest working steps at the top of the ticket; keep the inspection notes below them. For acceptance, repeat the original sequence and confirm the chip is visible and removable without horizontal page scrolling. Then check the neighbouring width and the short chip. A clipped chip could make the scrollbar disappear while leaving the interface just as broken.

State what broke before proposing a fix

Consider a fictional community cinema's programme. A report says the poster covers the screening times on a tablet. The attached picture captures the overlap but doesn't establish whether the page came up that way, whether the reporter had enlarged the text or whether the overlap appeared when the schedule expanded. Start the ticket with what can be observed: 'After opening Saturday's screenings, the poster overlaps the first time and the time cannot be read.' That gives the next person a behaviour to recognise. 'Poster needs a lower stacking order' does not.

Describe an expected result at the same level. In this case the times should remain readable and operable when the section opens. The poster may move down or become narrower; the report needn't choose. Capture the failure with enough surrounding context to show which control was opened and what text went missing. An arrow on a screenshot can be useful, but put the symptom into words as well. A reviewer reading the ticket without the image should still know why the issue matters.

Separate what was reported from what you reproduced. If the original report came from a tablet and the same symptom appears in a narrow desktop browser, record both, with their respective steps. Don't silently merge the environments. You have established an additional path to a visible problem, not that both paths use the same layout behaviour. When the report includes an uncertain observation such as 'only on Saturdays', turn it into a comparison to make, rather than carrying it forward as a fact.

Record the starting state someone else can reach

In the cinema example, two preview links look alike but point to different builds. The opening times also come from editable programme data. Pin the preview revision and use a fixture with the same visible title and time labels. Include a link to a state that teammates can access, or explain how to construct it. When the film's unusually long title matters, preserve that property explicitly. A report that depends on an exact title but substitutes 'Test film' in its instructions may lose the problem precisely when somebody tries to help.

Write the route as a sequence with a clear start and end. Open the programme, select Saturday, expand screenings for the named film and observe the first time. Record whether the issue happens on a direct visit, after arrival through site navigation or both. If a stored choice influences the result, describe how to set it. Clearing storage can be a useful comparison, but won't substitute for documenting the state a returning visitor actually had. Keep the report free of private links and use representative non-sensitive data.

Set aside incidental details that someone needn't recreate. A long list of browser preferences, window positions and installed extensions is harder to use than a short recipe with the known conditions. Add one detail at a time when a clean attempt differs from the original. If a difference remains unexplained, say so. 'Seen after expanding Saturday on the reported tablet; not reproduced on this desktop preview' is more useful than a confident claim that the issue is fixed.

Compare width, content and timing independently

Make a small matrix around the failing example. Keep the film fixed and compare the reported width with a nearby wider state. Restore the failing width and compare the long title with a shorter title. Then restore the original title and compare arriving before and after the poster has loaded, using whatever controlled preview conditions the team can reproduce. Write down which result you observed for each change. If you vary width, text and data together, a passing screen gives few clues about which condition mattered.

Pay attention to when you take the observation. A schedule can overlap during expansion and settle into a readable layout afterwards. That has a different practical impact from an overlap that persists and prevents someone choosing a time. Capture the before, during and after states when the duration is part of the complaint, or record that you could only inspect the settled result. A video with the initiating action visible can help for a transient issue; a pair of stills may be easier to check for a stable one.

Check the difference between size and content without treating them as interchangeable. A long string in the same field can alter the width the row needs. Enlarging text may change other parts of the page as well. Opening the film details in a side pane may reduce the space available to the schedule despite the same browser dimensions. Record the actual area that contains the affected layout if you can. That makes comparisons more useful than a bare label such as 'tablet only'.

Use inspection to tell competing stories apart

Suppose the poster seems to cross a boundary in the cinema layout. There are several plausible explanations to distinguish. Its own box might be larger than its column, the schedule might extend towards the image or a visual effect might paint outside a box that otherwise fits. Compare the rendered boxes with what you see. Inspect the enclosing row as well as the poster. A rule on the image might change the symptom while leaving the row too wide for the times to fit.

Change one thing temporarily and record the prediction first. If the suspicion is that the poster has stopped fitting its allotted column, its measured box should show that. If an experimental size adjustment removes the overlap but now makes an important portrait unrecognisable, note both results. The change has supplied evidence, not necessarily the fix. Put the original rule back before trying the next hypothesis. An inspector session with a stack of interacting overrides is difficult to reproduce and can accidentally hide the actual failure.

Keep evidence and interpretation separate in the ticket. 'The schedule column is wider than its allotted space after the long heading appears' is an observation if you have measured it. 'The heading causes the overlap' is a hypothesis you can check by changing just that string while retaining the rest. Record a nearby case that contradicts the hypothesis if you see one. A bug report is allowed to finish with a dependable reproduction and no root cause. Better that than a fix proposal built on an observation nobody can repeat.

Reduce the example without losing the trigger

Start a reduced preview by keeping the layout container, the original poster proportions, the long title and both expanded and collapsed schedule states. Remove unrelated content one region at a time. After each removal, follow the same route. If taking out the programme's venue selector also removes the overlap, restore it before reducing further. It might contribute an ancestor or style essential to the failure. Keep a note about the first thing you removed that made the symptom vanish. It can be more informative than a visually neat minimal example.

Choose who needs which reproduction. A designer reviewing the consequences may benefit from the full cinema page so they can judge which time is hidden and why neighbouring items matter. An engineer working on shared layout may want the reduced example to inspect the interacting boxes. Link the two and preserve the same observed symptom in each. If simplification changes the symptom from an overlap to a horizontal scroll, note the difference and keep the original route as the acceptance case.

Don't spend longer constructing a small example than the information it will deliver warrants. If the failure relies on several pieces of editorial content and the whole preview is already accessible, a short route and a dependable fixture may be the best handoff. Reduce further when the original changes too readily, fails only after a long sequence or contains too many plausible causes to inspect comfortably. What matters is that another person can still see the fault before they change anything.

Write acceptance around the operation that failed

Return to the same programme preview sequence once a candidate fix is available. Open Saturday's screenings and read and select the first time. Check that the poster still appears as intended and the action hasn't simply been concealed. With the long title restored, run a nearby width that used to pass and the short-title case that didn't need repair. If the rule is shared with other rows, inspect a representative layout with a different image shape. A fix limited to one picture can look successful while breaking the next listing.

Include at least one comparison that could expose the wrong remedy. If the original ticket is about readability, hiding overlapping text behind the poster is a clear failure even if the boxes no longer appear to cross. If it concerns horizontal movement, verify that the hidden edge has not taken an actionable time with it. Follow the task through to the next screen or action where helpful. Record the preview revision and any condition you couldn't reproduce, rather than closing the ticket on the basis of a neat after screenshot.

Finish with a compact record: the smallest dependable sequence, the visible symptom, the useful comparison and the behaviour required for acceptance. Keep a link to fuller inspection notes if they would help the next person. When a similar overlap appears on the venue page later, begin by checking whether it has the same trigger rather than copying the old remedy. A good reproduction makes that comparison possible; the memory of what the screenshot looked like does not.

Leave one note about what remains unverified. If the team's tablet is unavailable, a desktop success can still establish that the narrow layout is readable there, but not that the original route now works on the reported device. Ask the original reporter or another person with equivalent equipment to repeat the brief sequence on the fixed preview. Give them a single question to answer: can they open Saturday and select its first screening without the poster covering the time?