mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
8e81160ff3
MozReview-Commit-ID: K54u9NmAlpn
22 lines
568 B
HTML
22 lines
568 B
HTML
<!-- Quirks mode on purpose -->
|
|
<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();
|
|
newBody.scrollHeight; // Asserts in a debug build
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
First body
|
|
</body>
|
|
</html>
|