summaryrefslogtreecommitdiffstats
path: root/devtools/client/inspector/grids/test/doc_iframe_reloaded.html
blob: a452dd4d8c86051e161312fd5fe5cd88b190227e (plain)
1
2
3
4
5
6
7
8
9
<!DOCTYPE html>
<iframe srcdoc="<style>.grid{display:grid;}</style><div class='grid'><span>a</span><span>b</span></div>"></iframe>
<script>
"use strict";
function reloadIFrame() { // eslint-disable-line no-unused-vars
  const iFrame = document.querySelector("iframe");
  iFrame.setAttribute("srcdoc", iFrame.getAttribute("srcdoc"));
}
</script>