Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<html>
<head>
<style>
body { overflow: scroll; border: 1px solid green; }
</style>
<script>
onload = function() {
var newBody = document.createElement("body");
newBody.textContent = "This element should not have scrollbars!";
document.documentElement.appendChild(newBody);
window.nooptimize = newBody.offsetWidth;
document.body.remove();
}
</script>
</head>
<body>
First body
</body>
</html>