Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<html>
<body style="background-size: cover; transition-duration: 1ms"></body>
<script>
var body = document.body;
/* flush */ getComputedStyle(body, "").backgroundSize;
body.style.backgroundSize = 'contain';
/* flush */ getComputedStyle(body, "").backgroundSize;
</script>
</html>