Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<title>iframe: changing the scrolling attribute</title>
<link rel="author" href="mailto:masonf@chromium.org">
<link rel="match" href="iframe-scrolling-attribute-ref.html">
<style>
iframe {
width: 100px;
height: 100px;
}
</style>
<p>These two iframes should *both* render with scrollbars:</p>
<iframe src="support/big-page.html" scrolling="unknown"></iframe>
<iframe src="support/big-page.html" scrolling="unknown"></iframe>
<script>
var iframe = document.getElementsByTagName("iframe")[1];
// Setting scrolling=no and then back to scrolling=unknown
// should result in a final value of auto.
iframe.setAttribute("scrolling", "no");
iframe.setAttribute("scrolling", "unknown");
</script>