This test passes if it doesn't cause oscillating scale factor due to content size rounding errors and creating/destroying of custom scrollbars.
An example of parameter that reproduce the crash is viewport size (800, 1057) with device scale factor 1.325