// Remove the first element so that a scroll anchor adjustment happens,
// at the same time the scrollable range shrinks.
stream.firstElementChild.remove();
await promiseApzFlushedRepaints();
// The scroll offset on the main-thread is the expected value.
const expectedScrollOffset = stream.scrollTop;
// Collect sampled offsets on the compositor.
const records = collectSampledScrollOffsets(stream);
ok(records.some(record => SpecialPowers.wrap(record).scrollOffsetY == expectedScrollOffset),
`There should be ${expectedScrollOffset} in [${records.map(record => SpecialPowers.wrap(record).scrollOffsetY)}]`);
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.