But 1439055: Use window.onload instead of <body onload>, so that tests map more easily visually to the ref. r?bz draft
authorEmilio Cobos Álvarez <emilio@crisal.io>
Sat, 17 Feb 2018 02:54:19 +0100
changeset 756627 f1c409e5b33d1b73f1e9a23f871d88bfe9c38eac
parent 756626 4184b3c315e41a6c2a49699514abd683e30f969e
child 756628 a60001a909f0ec66500c57a98130f8da2e9933ad
push id99505
push userbmo:emilio@crisal.io
push dateSat, 17 Feb 2018 02:17:12 +0000
reviewersbz
bugs1439055
milestone60.0a1
But 1439055: Use window.onload instead of <body onload>, so that tests map more easily visually to the ref. r?bz MozReview-Commit-ID: 1xVzkxmEEhO
layout/reftests/ib-split/remove-from-split-inline-1.html
layout/reftests/ib-split/remove-from-split-inline-2.html
layout/reftests/ib-split/remove-from-split-inline-3.html
layout/reftests/ib-split/remove-from-split-inline-4.html
layout/reftests/ib-split/remove-from-split-inline-5.html
layout/reftests/ib-split/remove-from-split-inline-6.html
layout/reftests/ib-split/remove-split-inline-1.html
--- a/layout/reftests/ib-split/remove-from-split-inline-1.html
+++ b/layout/reftests/ib-split/remove-from-split-inline-1.html
@@ -1,23 +1,21 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
 <title>CSS 2.1 Test Suite: handling of blocks inside inlines</title>
 <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu">
 <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/">
 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level">
 <link rel="match" href="remove-from-split-inline-1-ref.html">
 <script>
-function doit() {
+window.onload = function() {
   var target = document.getElementById("target");
   target.remove();
 }
 </script>
 <style>
  body > span { border: 3px solid blue }
 </style>
-<body onload='doit()'>
-  <span
-  ><span id="target">Four</span
-  ><div>One</div>
-    Two
-  </span>
-</body>
+<span
+><span id="target">Four</span
+><div>One</div>
+  Two
+</span>
--- a/layout/reftests/ib-split/remove-from-split-inline-2.html
+++ b/layout/reftests/ib-split/remove-from-split-inline-2.html
@@ -1,23 +1,21 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
 <title>CSS 2.1 Test Suite: handling of blocks inside inlines</title>
 <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu">
 <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/">
 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level">
 <link rel="match" href="remove-from-split-inline-2-ref.html">
 <script>
-function doit() {
+window.onload = function() {
   var target = document.getElementById("target");
   target.remove();
 }
 </script>
 <style>
   body > span { border: 3px solid blue }
 </style>
-<body onload='doit()'>
-  <span>
-    One
-    <div id="target">Three</div>
-    Two
-  </span>
-</body>
+<span>
+  One
+  <div id="target">Three</div>
+  Two
+</span>
--- a/layout/reftests/ib-split/remove-from-split-inline-3.html
+++ b/layout/reftests/ib-split/remove-from-split-inline-3.html
@@ -1,23 +1,21 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
 <title>CSS 2.1 Test Suite: handling of blocks inside inlines</title>
 <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu">
 <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/">
 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level">
 <link rel="match" href="remove-from-split-inline-3-ref.html">
 <script>
-function doit() {
+window.onload = function() {
   var target = document.getElementById("target");
   target.remove();
 }
 </script>
 <style>
   body > span { border: 3px solid blue }
 </style>
-<body onload='doit()'>
-  <span>
-    One
-    <div>Two</div
-    ><span id="target">Three</span
-  ></span>
-</body>
+<span>
+  One
+  <div>Two</div
+  ><span id="target">Three</span
+></span>
--- a/layout/reftests/ib-split/remove-from-split-inline-4.html
+++ b/layout/reftests/ib-split/remove-from-split-inline-4.html
@@ -1,25 +1,23 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
 <title>CSS 2.1 Test Suite: handling of blocks inside inlines</title>
 <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu">
 <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/">
 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level">
 <link rel="match" href="remove-from-split-inline-4-ref.html">
 <script>
-function doit() {
+window.onload = function() {
   var target = document.getElementById("target");
   target.remove();
 }
 </script>
 <style>
   body > span { border: 3px solid blue }
 </style>
-<body onload='doit()'>
-  <span>
-    One
-    <div id="target">Five</div>
-    Two
-    <div>Three</div>
-    Four
-  </span>
-</body>
+<span>
+  One
+  <div id="target">Five</div>
+  Two
+  <div>Three</div>
+  Four
+</span>
--- a/layout/reftests/ib-split/remove-from-split-inline-5.html
+++ b/layout/reftests/ib-split/remove-from-split-inline-5.html
@@ -1,25 +1,23 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
 <title>CSS 2.1 Test Suite: handling of blocks inside inlines</title>
 <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu">
 <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/">
 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level">
 <link rel="match" href="remove-from-split-inline-5-ref.html">
 <script>
-function doit() {
+window.onload = function() {
   var target = document.getElementById("target");
   target.remove();
 }
 </script>
 <style>
   body > span { border: 3px solid blue }
 </style>
-<body onload='doit()'>
-  <span>
-    One
-    <div>Two</div>
-    Three
-    <div id="target">Five</div>
-    Four
-  </span>
-</body>
+<span>
+  One
+  <div>Two</div>
+  Three
+  <div id="target">Five</div>
+  Four
+</span>
--- a/layout/reftests/ib-split/remove-from-split-inline-6.html
+++ b/layout/reftests/ib-split/remove-from-split-inline-6.html
@@ -1,25 +1,23 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
 <title>CSS 2.1 Test Suite: handling of blocks inside inlines</title>
 <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu">
 <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/">
 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level"/>
 <link rel="match" href="remove-from-split-inline-6-ref.html">
 <script>
-function doit() {
+window.onload = function() {
   var target = document.getElementById("target");
   target.remove();
 }
 </script>
 <style>
   body > span { border: 3px solid blue }
 </style>
-<body onload='doit()'>
-  <span>
-    One
-    <div>Two</div>
-    <span id="target">Five</span>
-    <div>Three</div>
-    Four
-  </span>
-</body>
+<span>
+  One
+  <div>Two</div>
+  <span id="target">Five</span>
+  <div>Three</div>
+  Four
+</span>
--- a/layout/reftests/ib-split/remove-split-inline-1.html
+++ b/layout/reftests/ib-split/remove-split-inline-1.html
@@ -1,22 +1,20 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
 <title>CSS 2.1 Test Suite: handling of blocks inside inlines</title>
 <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu">
 <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/">
 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level">
 <link rel="match" href="remove-split-inline-1-ref.html">
 <script>
-function doit() {
+window.onload = function() {
   var target = document.getElementById("target");
   target.remove();
 }
 </script>
-<body onload='doit()'>
-  One
-  <span id="target">
-    Three
-    <div>Four</div>
-    Five
-  </span>
-  Two
-</body>
+One
+<span id="target">
+  Three
+  <div>Four</div>
+  Five
+</span>
+Two