Bug 1865267 - Intermittent /css/css-contain/content-visibility/content-visibility-vs-scrollIntoView-003.html, r=emilio

Differential Revision: https://phabricator.services.mozilla.com/D197347
This commit is contained in:
Cathie Chen 2023-12-28 17:55:49 +00:00
Родитель cd214fc2d8
Коммит 94628b321e
2 изменённых файлов: 6 добавлений и 11 удалений

Просмотреть файл

@ -1,6 +0,0 @@
[content-visibility-vs-scrollIntoView-003.html]
expected:
if os == "linux": [OK, ERROR]
[ContentVisibilityAutoStateChange fires twice when `scrollIntoView` a descendant of `content-visibility:auto` which is hidden after scrolling]
expected:
if os == "linux": [PASS, FAIL]

Просмотреть файл

@ -56,12 +56,13 @@ function tick() {
});
}
promise_test(async () => {
await tick();
function waitForEvent() {
return new Promise(resolve => e3.addEventListener('contentvisibilityautostatechange', resolve));
}
function waitForEvent() {
return new Promise(resolve => e3.addEventListener('contentvisibilityautostatechange', resolve));
}
promise_test(async (t) => {
// Make sure the first event has fired.
await waitForEvent();
var eventCounter = 0;
function eventHandler(e) {