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:
Manuel Rego Casasnovas 2024-04-30 16:05:41 +00:00 committed by moz-wptsync-bot
parent 8e6635b8ce
commit 5b717a6d8c

View File

@ -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() {