<script>
// outline being a render-only property, its animation can be done off the main thread
// checking the values after the first paint is safer, hence requestAnimationFrame
setup({explicit_done:true});
requestAnimationFrame(function() {
// synchronous tests being run during the page's first paint
test(
function(){ var tests = document.querySelectorAll("div[id^='test']");
assert_equals(getComputedStyle(tests[0]).outlineStyle, 'solid');
assert_equals(getComputedStyle(tests[1]).outlineStyle, 'solid');
assert_equals(getComputedStyle(tests[2]).outlineStyle, 'dotted');
assert_equals(getComputedStyle(tests[3]).outlineStyle, 'dotted');
}, "outline-style is animated as a discrete type"
);
done();
});
</script>
</body>
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 ist noch experimentell.