var painted = utils.checkAndClearPaintedState(element);
// *** We check that this repaints because the test is relying
// on this property. If this is broken then this test wont
// be reliable check for will-change.
is(painted, true, "element should have been painted");
element.remove();
});
add_task(async () => { var element = document.createElement("div");
document.body.appendChild(element);
var painted = utils.checkAndClearPaintedState(element);
// BasicLayers' heuristics are so that even with will-change:opacity,
// we can still have repaints.
if (utils.layerManagerType != "Basic") {
is(painted, false, "will-change:opacity element should not have been painted");
}
element.remove();
});
add_task(async () => { var element = document.createElement("div");
document.body.appendChild(element);
var painted = utils.checkAndClearPaintedState(element);
// BasicLayers' heuristics are so that even with will-change:transform,
// we can still have repaints.
if (utils.layerManagerType != "Basic") {
is(painted, false, "will-change:transform element should not have been painted");
}
element.remove();
});
add_task(async () => { var element = document.createElement("div");
document.body.appendChild(element);
var painted = utils.checkAndClearPaintedState(element);
// BasicLayers' heuristics are so that even with will-change:translate,
// we can still have repaints.
if (utils.layerManagerType != "Basic") {
is(painted, false, "will-change:translate element should not have been painted");
}
element.remove();
});
add_task(async () => { var element = document.createElement("div");
document.body.appendChild(element);
var painted = utils.checkAndClearPaintedState(element);
// BasicLayers' heuristics are so that even with will-change:offset-path,
// we can still have repaints.
if (utils.layerManagerType != "Basic") {
is(painted, false, "will-change:offset-path element should not have been painted");
}
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.