mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-20 07:17:32 +09:00
Issue #1543 - Align <img> with no src to the updated spec.
This commit is contained in:
parent
e87c06beb3
commit
db14a637c4
25 changed files with 124 additions and 85 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue