mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 07:13:20 +00:00
Bug 1893626 [wpt PR 45927] - [css-viewport] Remove assert for offsetTop after modifying zoom property, a=testonly
Automatic update from web-platform-tests [css-viewport] Remove assert for offsetTop after modifying zoom property (#45927) There's no spec about what we should do with the scrollTop value after applying zoom. Which makes Firefox fail the test: css/css-viewport/zoom/scroll-top-test-with-zoom.html Anyway checking that intermediate value is not relevant for this test, that is checking that the scrollTop value doesn't change when coming back to the initial zoom level. So this patch removes the assert checking that value. See https://bugzilla.mozilla.org/show_bug.cgi?id=1891910 for more details. -- wpt-commits: 7047dc1ca2964fde10d4ff477f56c3309a0c2fdf wpt-pr: 45927
This commit is contained in:
parent
8e6635b8ce
commit
5b717a6d8c
@ -23,9 +23,7 @@
|
||||
}, "Initial scrollTop with no zoom");
|
||||
|
||||
document.body.style.zoom = 1.2;
|
||||
test(function() {
|
||||
assert_approx_equals(container.scrollTop, 77, 0.99, "scrollTop should remain consistent within 1 px after zooming in");
|
||||
}, "scrollTop after increasing zoom level");
|
||||
document.body.offsetTop;
|
||||
|
||||
document.body.style.zoom = 1;
|
||||
test(function() {
|
||||
|
Loading…
Reference in New Issue
Block a user