fix(mockmed): stabilize textarea render metrics#227
Draft
abrichr wants to merge 1 commit into
Draft
Conversation
abrichr
force-pushed
the
agent/mockmed-textarea-pixel-stability
branch
from
July 21, 2026 16:52
99724d9 to
7192b05
Compare
Member
Author
|
Dependency/integration update for the current exact heads:
#227's standalone The combined tree passed the focused headless browser suite: 18 passed in 187.84s. Baseline was consistently 8/8 template with zero heals. Under MoveDrift, Recommended order: merge #226 first after its own required CI is green, rebase this PR onto the new main, then rerun required/full macOS CI before merging this PR. |
abrichr
force-pushed
the
agent/mockmed-textarea-pixel-stability
branch
from
July 21, 2026 18:04
7192b05 to
21ca9ed
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
#notetextarea use an explicit font stack and line heightRoot cause
Exact-main CI run 29845581250 passed 2,818 tests on macOS and failed only
TestBaselineControl::test_baseline_passes_all_template. The retained report showsstep_008(the unlabeled Note textarea) falling fromtemplatetogeometry, producing one governed heal while the workflow still completed correctly.The failed run's recorded crop was 320x128 at
y=226, while the replayed native<textarea rows="6">was about six pixels taller. MockMed set a font size but left the form control's font family andnormalline height to Chromium/macOS UA defaults. Because recording and replay intentionally use separate browser processes, host font metrics could differ and make this no-drift fixture look drifted.This is fixture nondeterminism, not a relaxation of the resolver or healing contract. The prior green macOS exact-main run used the byte-identical recorded template (
sha256: 9c6d01b8...) and resolved all eight anchors by template; Ubuntu on the failed commit also resolved all eight by template.Impact
The synthetic reference app now has deterministic form-control geometry across the separate record/replay browsers. Product runtime thresholds, healing behavior, and the zero-heal assertion are unchanged.
Verification
heal_count=0,template=8tests/e2e/test_cosmetic_drift.py: 16/16 passed in 177.12sgit diff --checkNo headed browser, local input injection, production mutation, provider call, or release was used.