Skip to content

Given_InputPane: centered content drifts 7.4px when nothing is occluded (hidden by CI retry on master) #24490

Open

Description

@MartinZikmund

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 on Retry 1/2 after 33ms, so the job landed as succeededWithIssues and 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):

  1. 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 Grid can still jump by ~7px when the keyboard appears even though it was never occluded, which is the exact regression the fix targeted.

  2. It is eating CI signal. On master it hides behind the retry and reports succeededWithIssues; 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 --stat on Given_InputPane.cs between master and that branch is 0 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

  1. added
    triage/untriaged
    area/skia ✏️
    on Sep 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/skia ✏️triage/untriaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions