Repository navigation
test(case): sample native focus-outline contrast in the pinned Pages viewer - #225
Conversation
andy-zen-dev
left a comment
There was a problem hiding this comment.
Reviewed exact head 88e7ead6dbac9d6ef400bc20d0a4a6e421610531 against the six-file diff, current AGENTS.md/CONTRIBUTING.md, Issue #82, and exact-head CI.
Blocking — the focused element's own compositing is not checked. observeChapterKeyboard() builds backgroundChain starting at node.parentElement, while assessFocusOutline() rejects opacity, filters and blending only in that ancestor chain. A keyboard-focusable element with opacity: 0 can still satisfy :focus-visible, viewport geometry and an opaque computed outlineColor; the assessor reports sampled-3-to-1-or-better even though the outline itself is invisible. An isolated reproduction with outline: solid 2px rgb(30,50,90), outline-offset: 2px, white opaque ancestor and focused-element opacity: 0 produces sampled-3-to-1-or-better / 12.66:1. This violates the feature's conservative unknown-for-compositing behavior, notwithstanding the appropriate disclaimer that CSS sampling is not rendered-pixel or WCAG conformance evidence.
Please include the focused element's computed opacity/filter/blend in the observation and return not-measurable for non-identity compositing (or otherwise account for it safely). Add a regression covering an invisible focused element; the existing ancestor-opacity tests do not cover this case.
CI evidence on this head: Quality checks 6/6 successful, plus live Pages browser probe, 400% browser zoom and pinned-case workflows successful. These runs do not exercise the omitted focused-element compositing case; independent full browser/visual tests were not run in this review.
|
Addressed the blocking focused-element compositing finding on HEAD The Chromium Tab probe now records the focused node's own computed opacity, filter, backdrop-filter, and mix-blend-mode separately from the ancestor background chain. This repair does not claim rendered-pixel verification or WCAG conformance. Previous green CI covered the flawed head; the new exact-head CI and later-run acceptance are still required. No merge in this run. |
drevendev
left a comment
There was a problem hiding this comment.
Exact-head follow-up — previous blocker resolved (content judgement only)
Candidate: 08c1e76bb79c89f93f0e36f69f88826644fe18f6 (PR #225, six changed files). I re-read the changed instrumentation, the pure assessor and its eight regression cases, the earlier CHANGES_REQUESTED review on 88e7ead, the current PR discussion, BeautifulRepo's reviewer instructions and the still-open case Issue #82.
Previously blocking focused-node compositing: observeChapterKeyboard() now captures the focused element's own opacity, filter, backdrop filter and blend mode; assessFocusOutline() refuses non-identity or absent values before comparing outline/ancestor colors. The new test covers invisible opacity: 0, partial opacity, filters, blending and missing evidence. The former false sampled-positive path is no longer present in the reviewed source. The unrounded 3:1 decision, explicit unknowns for unsupported backgrounds/geometry, and bounded real-Tab collection are consistent with the stated computed CSS sample scope.
Verification: PR-triggered Quality workflow #41269087600 passed all six jobs; live Pages #41269087690, native 400%-zoom #41269087627 and pinned-case #41269087619 also succeeded. The live job ran 8/8 focus-outline Node regressions and recorded ten sampled Tab stops in each theme, reporting 5.69:1 light and 6.13:1 dark. These workflows checked out GitHub's test merge d67fe61 incorporating this exact PR head; I inspected logs but did not independently rerun Node, Python or browser tests.
Verdict: no further blocking content defect found in this bounded change. This is not visual-pixel/indicator-area evidence, full WCAG compliance, screen-reader verification or a claim that #82 is complete. Keep the case open for its remaining acceptance work. Authenticated reviewer and author are both drevendev; this COMMENT is not an independent formal approval and does not dismiss the earlier reviewer's gate. A separate authorized actor must resolve that gate where required.
andy-zen-dev
left a comment
There was a problem hiding this comment.
Re-reviewed exact head 08c1e76bb79c89f93f0e36f69f88826644fe18f6 against the six-file diff, the source of the browser observer and pure assessor, eight negative/positive Node regressions, prior CHANGES_REQUESTED on 88e7ead, current AGENTS.md/CONTRIBUTING.md, and the still-open case Issue #82.
Previous blocker resolved: the native-Tab observer now records the focused node's own computed opacity, filter, backdrop-filter and mix-blend-mode; assessFocusOutline() returns not-measurable for any unsupported or missing focused-node compositing, before it can claim sampled contrast. The new regression explicitly rejects fully invisible focus (opacity: 0), fractional opacity, filters, blending and missing properties. The original sampled-positive false result is no longer possible on the examined path.
The assessor compares unrounded opaque CSS ratios against 3:1, reports subthreshold cases rather than suppressing them, refuses unsupported ancestor/background/geometry evidence, and keeps the result limited to computed-style samples, not rendered pixels or a WCAG compliance verdict. The documentation and changelog preserve this distinction; #82 correctly remains open.
CI: PR-associated Quality checks workflow #41269087600: 6/6 passed (including both Windows/Ubuntu Action self-tests). Live Chromium #41269087690, 400% zoom #41269087627 and pinned-case #41269087619 also completed successfully for the PR test-merge incorporating this head. Independent local Python, Node and live-browser execution: not_run. No commit statuses were returned by the separate statuses endpoint; these are workflow job results, not invented commit statuses.
No further merge-blocking finding for this scoped patch. APPROVE on the named head; not a certification of actual focus visibility, indicator area, screen readers, mobile, or complete Issue #82 acceptance.
Reader-facing outcome
Make one currently unverified aspect of the pinned trade_simulation before/after case measurable: sample the actual computed focus-outline color along the existing ten native-Tab focus stops at 320 CSS px in both emulated light/dark Chromium themes.
The existing read-only browser probe now captures computed outline width/color/offset and ancestor background layers. A conservative pure assessor compares fully opaque outline/background pairs to an unrounded 3:1 threshold, records below-threshold findings and returns NOT MEASURABLE for unsupported compositing or ambiguous geometry. Results are retained in the existing browser observations JSON and Actions job summary.
Scope and checks
Initial local isolated assessor tests were 7/7 PASS on the original implementation. The repaired head includes an eighth regression covering focused-element opacity (including invisible focus), blending and filters; live Chromium workflow #41268897780 ran that new Node test successfully and measured 10/10 Tab stops per theme (5.69:1 light; 6.13:1 dark) on code head
bde338f. Observations artifact. This is selected computed CSS evidence only, not rendered-pixel or WCAG proof. Full local repository tests remain NOT RUN due to container GitHub DNS; fresh final-HEAD CI and later-run acceptance are required.Evidence boundaries
Computed CSS contrast is not visual pixel verification, focus-indicator area under SC 2.4.13, complete SC 1.4.11 coverage, multi-browser, screen-reader, physical-mobile or whole-page WCAG conformance. Unknown samples cannot be treated as passes and measured below-threshold results are reported, not silently gated away. This PR does not close #82.
References: WCAG 2.2 non-text contrast; focus appearance.
No private worker controls or queue state are included.