Issue #1543 - Align <img> with no src to the updated spec.

This commit is contained in:
Moonchild 2020-05-11 23:17:47 +00:00 committed by Roy Tam
commit db14a637c4
25 changed files with 124 additions and 85 deletions

View file

@ -4,7 +4,8 @@
<title>Delayed image reftest wrapper</title>
</head>
<body>
<img id="image1">
<!-- non-empty alt to avoid the broken image icon -->
<img id="image1" alt=" ">
<script>
// This loads a externally specified image, forces a draw (in case of
// decode-on-draw), waits 100ms, and then triggers the reftest snapshot.

View file

@ -14,13 +14,13 @@
</script>
</head>
<body>
<img id="image1">
<!-- non-empty alt to avoid the broken image icon -->
<img id="image1" alt=" ">
<script>
// Use as "wrapper.html?image.png"
var imgURL = document.location.search.substr(1);
document.images[0].onload = onImageLoad;
document.images[0].onerror = onImageLoad;
document.images[0].alt = "";
document.images[0].src = imgURL;
</script>
</body>

View file

@ -14,13 +14,13 @@
</script>
</head>
<body>
<img id="image1">
<!-- non-empty alt to avoid the broken image icon -->
<img id="image1" alt=" ">
<script>
// Use as "wrapper.html?image.png"
var imgURL = document.location.search.substr(1);
document.images[0].onload = onImageLoad;
document.images[0].onerror = onImageLoad;
document.images[0].alt = "";
document.images[0].src = imgURL;
</script>
</body>

View file

@ -14,13 +14,13 @@
</script>
</head>
<body>
<img id="image1">
<!-- non-empty alt to avoid the broken image icon -->
<img id="image1" alt=" ">
<script>
// Use as "wrapper.html?image.png"
var imgURL = document.location.search.substr(1);
document.images[0].onload = onImageLoad;
document.images[0].onerror = onImageLoad;
document.images[0].alt = "";
document.images[0].src = imgURL;
</script>
</body>

View file

@ -14,13 +14,13 @@
</script>
</head>
<body>
<img width="16px" height="16px" id="image1">
<!-- non-empty alt to avoid the broken image icon -->
<img width="16px" height="16px" id="image1" alt=" ">
<script>
// Use as "wrapper.html?image.png"
var imgURL = document.location.search.substr(1);
document.images[0].onload = onImageLoad;
document.images[0].onerror = onImageLoad;
document.images[0].alt = "";
document.images[0].src = imgURL;
</script>
</body>

View file

@ -14,7 +14,8 @@
</script>
</head>
<body>
<img width="8px" id="image1">
<!-- non-empty alt to avoid the broken image icon -->
<img width="8px" id="image1" alt=" ">
<script>
// Use as "wrapper.html?image.png"
var imgURL = document.location.search.substr(1);

View file

@ -4,7 +4,8 @@
<title>Delayed image reftest wrapper</title>
</head>
<body>
<img id="image1">
<!-- non-empty alt to avoid the broken image icon -->
<img id="image1" alt=" ">
<script>
// This loads a externally specified image, forces a draw (in case of
// decode-on-draw), waits 100ms, and then triggers the reftest snapshot.

View file

@ -14,7 +14,8 @@
</script>
</head>
<body>
<img id="image1">
<!-- non-empty alt to avoid the broken image icon -->
<img id="image1" alt=" ">
<script>
// Use as "wrapper.html?image.png
var imgURL = document.location.search.substr(1);

View file

@ -51,7 +51,6 @@
// code.
var finalImg = document.getElementById('image1');
finalImg.alt = "";
finalImg.onload = finalImg.onerror = step3;
finalImg.src = gImg.src;
}
@ -68,7 +67,8 @@
</script>
</head>
<body>
<img id="image1">
<!-- non-empty alt to avoid the broken image icon -->
<img id="image1" alt=" ">
<script>
// Use as "wrapper.html?image.png
gImg = document.createElement('img');

View file

@ -14,13 +14,13 @@
</script>
</head>
<body>
<img id="image1">
<!-- non-empty alt to avoid the broken image icon -->
<img id="image1" alt=" ">
<script>
// Use as "wrapper.html?image.png
var imgURL = document.location.search.substr(1);
document.images[0].onload = onImageLoad;
document.images[0].onerror = onImageLoad;
document.images[0].alt = "";
document.images[0].src = imgURL;
</script>
</body>

View file

@ -14,7 +14,8 @@
</script>
</head>
<body>
<img id="image1">
<!-- non-empty alt to avoid the broken image icon -->
<img id="image1" alt=" ">
<script>
// Use as "wrapper.html?image.png
var imgURL = document.location.search.substr(1);

View file

@ -14,13 +14,13 @@
</script>
</head>
<body>
<img id="image1">
<!-- non-empty alt to avoid the broken image icon -->
<img id="image1" alt=" ">
<script>
// Use as "wrapper.html?image.png
var imgURL = document.location.search.substr(1);
document.images[0].onload = onImageLoad;
document.images[0].onerror = onImageLoad;
document.images[0].alt = "";
document.images[0].src = imgURL;
</script>
</body>

View file

@ -14,7 +14,8 @@
</script>
</head>
<body>
<img id="image1">
<!-- non-empty alt to avoid the broken image icon -->
<img id="image1" alt=" ">
<script>
// Use as "wrapper.html?image.png
var imgURL = document.location.search.substr(1);