editor/reftests/824080-3-ref.html
author Gérard Talbot <github@gtalbot.org>
Tue, 05 Mar 2019 12:18:58 +0000
changeset 522205 b2ffdd7ebfe7ada40c1f12ea2b1a854b134045c9
parent 143784 8a53b2daa50e60c1b736af2ca43012cd152f40cb
permissions -rw-r--r--
Bug 1529749 [wpt PR 15321] - Added 2 new calc() tests with background-position, a=testonly Automatic update from web-platform-tests Added 2 new calc() tests with background-position -- wpt-commits: 1e29498a87bc6da1fc2bd8fa36c5b8f7ec652d82 wpt-pr: 15321

<!DOCTYPE html>
<html>
<head>
  <script type="text/javascript">
    function doTest()
    {
      document.getSelection().selectAllChildren(document.getElementById("text"));
      var editor = document.getElementById("editor");
      var editorBody = editor.contentDocument.body;
      editor.contentDocument.getSelection().selectAllChildren(editorBody);
      editor.focus();
    }
  </script>
</head>
<body>
<p id="text">normal text</p>
<iframe id="editor" onload="doTest();"
  src="data:text/html,<body>editable text</body>"></iframe>
</body>
</html>