Closed Bug 1524219 Opened 5 years ago Closed 5 years ago

Intermittent /css/cssom-view/scroll-behavior-main-frame-window.html | Main frame with auto scroll-behavior ; scroll() with smooth behavior - assert_equals: Final value of scrollLeft expected 2970 but got 2350

Categories

(Core :: DOM: CSS Object Model, defect, P5)

defect

Tracking

()

RESOLVED FIXED
mozilla67
Tracking Status
firefox67 --- fixed

People

(Reporter: intermittent-bug-filer, Assigned: hiro)

Details

(Keywords: intermittent-failure, Whiteboard: [retriggered][wptsync upstream])

Attachments

(1 file)

#[markdown(off)]
Filed by: rmaries [at] mozilla.com

https://treeherder.mozilla.org/logviewer.html#?job_id=225182694&repo=mozilla-central

https://queue.taskcluster.net/v1/task/YsmoROLOSdujlZp1Gy3TwA/runs/0/artifacts/public/logs/live_backing.log

[task 2019-01-31T10:24:57.694Z] 10:24:57 INFO - TEST-START | /css/cssom-view/scroll-behavior-main-frame-window.html
[task 2019-01-31T10:25:12.805Z] 10:25:12 INFO - Closing window 272
[task 2019-01-31T10:25:12.828Z] 10:25:12 INFO -
[task 2019-01-31T10:25:12.828Z] 10:25:12 INFO - TEST-PASS | /css/cssom-view/scroll-behavior-main-frame-window.html | Page loaded
[task 2019-01-31T10:25:12.829Z] 10:25:12 INFO - TEST-PASS | /css/cssom-view/scroll-behavior-main-frame-window.html | Main frame with auto scroll-behavior ; scroll() with default behavior
[task 2019-01-31T10:25:12.829Z] 10:25:12 INFO - TEST-PASS | /css/cssom-view/scroll-behavior-main-frame-window.html | Main frame with auto scroll-behavior ; scroll() with auto behavior
[task 2019-01-31T10:25:12.829Z] 10:25:12 INFO - TEST-PASS | /css/cssom-view/scroll-behavior-main-frame-window.html | Main frame with auto scroll-behavior ; scroll() with instant behavior
[task 2019-01-31T10:25:12.829Z] 10:25:12 INFO - TEST-UNEXPECTED-FAIL | /css/cssom-view/scroll-behavior-main-frame-window.html | Main frame with auto scroll-behavior ; scroll() with smooth behavior - assert_equals: Final value of scrollLeft expected 2970 but got 2350
[task 2019-01-31T10:25:12.829Z] 10:25:12 INFO - @http://web-platform.test:8000/css/cssom-view/scroll-behavior-main-frame-window.html:84:11
[task 2019-01-31T10:25:12.829Z] 10:25:12 INFO -
[task 2019-01-31T10:25:12.829Z] 10:25:12 INFO - TEST-UNEXPECTED-FAIL | /css/cssom-view/scroll-behavior-main-frame-window.html | Main frame with smooth scroll-behavior ; scroll() with default behavior - assert_equals: Final value of scrollLeft expected 2970 but got 2350
[task 2019-01-31T10:25:12.829Z] 10:25:12 INFO - @http://web-platform.test:8000/css/cssom-view/scroll-behavior-main-frame-window.html:98:11
[task 2019-01-31T10:25:12.830Z] 10:25:12 INFO -
[task 2019-01-31T10:25:12.830Z] 10:25:12 INFO - TEST-UNEXPECTED-FAIL | /css/cssom-view/scroll-behavior-main-frame-window.html | Main frame with smooth scroll-behavior ; scroll() with auto behavior - assert_equals: Final value of scrollLeft expected 2970 but got 2350
[task 2019-01-31T10:25:12.830Z] 10:25:12 INFO - @http://web-platform.test:8000/css/cssom-view/scroll-behavior-main-frame-window.html:112:11
[task 2019-01-31T10:25:12.833Z] 10:25:12 INFO -
[task 2019-01-31T10:25:12.833Z] 10:25:12 INFO - TEST-PASS | /css/cssom-view/scroll-behavior-main-frame-window.html | Main frame with smooth scroll-behavior ; scroll() with instant behavior
[task 2019-01-31T10:25:12.833Z] 10:25:12 INFO - TEST-UNEXPECTED-FAIL | /css/cssom-view/scroll-behavior-main-frame-window.html | Main frame with smooth scroll-behavior ; scroll() with smooth behavior - assert_equals: Final value of scrollLeft expected 2970 but got 2350

Assignee: nobody → hikezoe
Status: NEW → ASSIGNED

I wondered why the test doesn't fail on Android arm. Actually it failed on Android arm emulator locally, and now I noticed that any wpt don't run on Android arm on our CI. :/

Anyway, there is a big element in the content and it makes the minimum scale size expand, thus checking scroll position by window.scroll{X,Y} fails there. We need to add minimum-scale=1.

Assignee: hikezoe → nobody
Status: ASSIGNED → NEW
Flags: needinfo?(hikezoe)

Certainly the test case aims to test scroll positions, but unfortunately there
is a big position:absolute element and it's greater than the ICB size (its
implicit width is 980px in the case there is no width in viewport meta). Thus
the layout viewport is expanded to the minimum scale size, it prevents scroll
position changes. So we should explicitly set device-width, initial-scale, and
minimum-scale to avoid such situations.

Pushed by hikezoe@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/c14b0a2ab976
Set a viewport meta tag explicitly to avoid window.scrollTo (or similar functions) works on mobile platforms. r=botond
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/15257 for changes under testing/web-platform/tests
Whiteboard: [retriggered] → [retriggered][wptsync upstream]
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla67
Assignee: nobody → hikezoe
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: