Skip to content

Latest commit

 

History

History
89 lines (73 loc) · 4.59 KB

browser-verification.md

File metadata and controls

89 lines (73 loc) · 4.59 KB

Browser verification

The rebuilt site passed layout and interaction checks after fixes to desktop navigation, narrow-screen wrapping, and control borders. This report covers local static output served at http://127.0.0.1:4174/a7-py/ on 2026-09-19 and does not test a deployed GitHub Pages build.

The later component verification supersedes the search and clipboard observations here (usize search now returns 19 results, and copy failure reads Copy failed. Select the code and copy it manually, or try again.). Historical JSON and observations below remain untouched.

Browser and method

Checks used an isolated headless Chromium instance over CDP on port 9237 after the default browser connection returned chrome-not-running. No user browser tabs were modified.

The viewport sweep checked widths 320, 390, 768, 1024, and 1440 CSS pixels (height 1000) on the home, memory, and compiler pages in light and dark themes (30 measurements in evidence/viewport-results.json). A second sweep checked all 23 pages at 320 and 1440 pixels (46 measurements in evidence/all-pages.json). Every page kept one <h1> and stayed within the viewport width.

The 320px viewport tests the width equivalent of a 1280px window at 400% zoom, without automating browser chrome zoom.

Screenshots were inspected directly, including desktop light (evidence/home-1440-light.png), mobile dark (evidence/home-320-dark.png), compiler mobile (evidence/compiler-390-light.png), blocked fonts (evidence/blocked-fonts-390.png), and enlarged text with spacing overrides (evidence/text-200-percent-320.png). Raw screenshots and JSON captures from evidence/ were pruned from the working tree and remain in git history.

Findings and fixes

  • Blank desktop nav: the native <details> element started closed while its summary was hidden on desktop. Opening it in the desktop layout restored the full rail while keeping mobile collapsed under JS and expandable without JS.
  • Outline class collision: a CSS class named outline collided with Tailwind's outline utility and added unwanted black borders; renaming the class removed them.
  • 320px overflow under 200% text: 200% root text size with spacing overrides initially overflowed 320px. Wrapping fixes brought document width to 305px inside the 320px viewport.
  • Low-contrast borders: button and select borders initially lacked contrast. Switching borders to the secondary text color gives >6:1 contrast on light surfaces and >8:1 on dark surfaces.

Interaction and fallback checks

Interaction results (evidence/interaction-results.json, preserved in git history) record:

  • First Tab stop landed on Skip to content (#main) with the dark focus ring.
  • Searching usize returned 18 results; Arrow Down focused a result link, and Escape closed the dialog and restored focus to the opener.
  • Blocking the search index showed an error message with a Retry button; unblocking and activating Retry loaded 20 results.
  • Clipboard copy wrote exact code text to the browser clipboard under CDP permission; rejecting the Clipboard API showed Copy failed. Select code to copy. while leaving code selectable.
  • A 27-Tab pass inside the dialog never focused underlying page controls (native Chromium cycled through browser chrome once and returned).
  • No-match queries showed the empty state; Light theme selection persisted across reloads.
  • Throwing on localStorage access still rendered the article, search button, and theme control.
  • With JavaScript disabled, navigation rendered expanded (23 links), toggled on click, and search stayed hidden.
  • Blocking WOFF2 requests kept readable fallback text with no global overflow.
  • Required line, letter, word, and paragraph spacing overrides passed at 320px, both at 100% and 200% root text size.

Contrast calculations (evidence/contrast.json) confirm >4.5:1 for text pairs and >3:1 for focus rings and control borders across both themes. Article links render computed underline, mobile copy buttons are 44px high, and reference navigation uses short labels (evidence/final-polish.json).

An uncached load throttled to 350ms latency and 80KB/s loaded both local fonts with zero layout-shift entries (evidence/font-loading.json). This single run does not establish a field performance percentile.

Boundaries

No option 2 concept image was found, so screenshots were verified against the written plan rather than a visual mockup. These checks do not cover screen readers, Firefox, Safari, or every scroll position on all 23 pages. Compiler and example verification are recorded separately.