But 1439055: Use window.onload instead of <body onload>, so that tests map more easily visually to the ref. r?bz
draft
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
--- 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