testing/web-platform/tests/html/rendering/non-replaced-elements/the-page/iframe-scrolling-attribute.html
author Emilio Cobos Álvarez <emilio@crisal.io>
Thu, 10 Jul 2025 09:08:54 +0000 (112 minutes ago)
changeset 795952 1d422913e1cb1658224a2d269f8e4c9e80032d29
parent 572222 b45100d2e4ecd60e1c17c4806950705e68be8d75
permissions -rw-r--r--
Bug 1976623 - Create drag popups eagerly for now. r=tnikkel,layout-reviewers Trivially restores pre-regression behavior, for now. Differential Revision: https://phabricator.services.mozilla.com/D256769
<!DOCTYPE html>
<title>iframe: changing the scrolling attribute</title>
<link rel="author" href="mailto:masonf@chromium.org">
<link rel="help" href="https://html.spec.whatwg.org/multipage/rendering.html#the-page">
<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>