Skip to content

When_OuterScrollViewer_BringIntoView_Scrolls_To_Caret is flaky on Skia WASM #24157

Open

Description

@MartinZikmund

Current behavior 🐛

Uno.UI.RuntimeTests.Tests.Windows_UI_Xaml_Controls.Given_TextBox.When_OuterScrollViewer_BringIntoView_Scrolls_To_Caret fails intermittently on Skia WASM only, always as a wait timeout.

Observed in CI build 229119 (WebAssembly Skia Runtime Tests 2):

Timed out waiting for condition to be met.
TextBox grew but the outer ScrollViewer did not scroll further:
offset 267 (was 466), extent 814, scrollable 514

The waits were split by failure mode in a0372e0..b085d50 (see the test: Split the BringIntoView waits by failure mode commit) precisely because this test was measured failing 6 times in 10 master builds, always as a timeout. The new message shows which half fails: the TextBox does grow (the extent wait passes), but the outer ScrollViewer never scrolls further within 5 s.

Note the reported offset is lower than the recorded baseline (267 vs 466), so the wait is comparing against an offset captured before the layout settled rather than the post-focus resting offset.

The same test passes on Desktop Skia (Windows/Linux/macOS), Skia-Android and Skia-iOS in the same build — WASM is the slowest runtime and the only one that trips the timeout.

AcceptsReturn makes the WASM invisible input a <textarea>, which never matches the instanceof HTMLInputElement check in BrowserInvisibleTextBoxViewExtension.ts, so the DOM selection path is inert here and is not the cause.

Expected behavior 🎯

The BringIntoView scroll settles deterministically on Skia WASM, or the test waits on a signal rather than a timeout.

How to reproduce it (as minimally and precisely as possible) 🔬

Run the WebAssembly Skia runtime tests; the failure is intermittent (~6 in 10 observed).

Workaround 🛠️

Excluded on RuntimeTestPlatforms.SkiaWasm so it stops blocking CI. Removing that exclusion is what closes this issue.

Affected platforms 📱💻🖥️

Skia WASM (WebAssembly).

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/tests 🧪

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions