Repository navigation
Description
Current behavior 🐛
Given_InputPane.When_Focused_Element_Not_Occluded_Then_Centered_Content_Is_Not_Moved fails intermittently, and the failure is a near miss rather than a wrong outcome:
Assert.AreEqual failed. Expected a difference no greater than <0.5>
between expected value <368> and actual value <360.58868408203125>.
'expected' expression: 'cardTopBefore', 'actual' expression: 'GetTop(card)'.
Centered card moved by 7.4px although nothing was occluded.
The card is supposed to not move at all. It moves 7.4px against a 0.5px tolerance.
Seen on two different Skia heads on the same day:
- master, ADO build 232929 (
7.0-dev.694), WASM leg — failed on the first attempt, passed onRetry 1/2after 33ms, so the job landed assucceededWithIssuesand the pipeline stayed green. - A feature branch whose shards split differently, iOS Skia Runtime Tests 3 (ADO build 232975) — failed through the retries and turned the shard red.
Expected behavior 🎯
Content that sizes itself to the viewport should not be re-arranged when the focused element was never occluded. That is precisely what the test was written to guard.
How to reproduce it 🔬
src/Uno.UI.RuntimeTests/Tests/Windows_UI_ViewManagement/Given_InputPane.cs → When_Focused_Element_Not_Occluded_Then_Centered_Content_Is_Not_Moved ([RunsOnUIThread], [RequiresFullWindow], [PlatformCondition(ConditionMode.Include, RuntimeTestPlatforms.Skia)]).
It reproduces on CI rather than reliably on demand. Re-running the iOS Skia or WASM runtime-test shards a few times should surface it.
Additional context
The test is recent: added in 57ccb9b4db6 "test: Cover occluded field in viewport-sized content" (2026-09-04), guarding d2d06f87305 "fix(skia): Keep keyboard pad out of content arrange" from the same day.
Two reasons this is worth separating from the general flake pool (#9080):
-
The guarded fix looks marginal. A 7.4px delta is a real layout difference, not a timeout or a scheduling race. The retry-passes behaviour suggests an ordering/settling dependency — the pad is applied and then reverted, and the assertion can observe the intermediate arrange. If so, a sign-in card centered in a
Gridcan still jump by ~7px when the keyboard appears even though it was never occluded, which is the exact regression the fix targeted. -
It is eating CI signal. On
masterit hides behind the retry and reportssucceededWithIssues; on a branch whose shard split differs it goes hard red and gets blamed on that branch. It cost a triage cycle on an unrelated PR that is a pure file rename (git diff --statonGiven_InputPane.csbetween master and that branch is0 insertions, 0 deletions).
Worth checking whether it correlates with rasterization scale — 360.58868408203125 is not a round number, and runtime tests are known to be scale-sensitive (sub-pixel deltas fail at non-100% scale). CI scale differs per head.
Validation status: diagnosed from CI logs only. Not reproduced locally, not root-caused, not validated against native WinUI.
/cc @ajpinedam — flagging since d2d06f87305 and 57ccb9b4db6 are recent work on this path.
Activity