WebKit Bugzilla
Attachment 339339 Details for
Bug 185216
: Hiding then showing an <object> of type image makes the underlaying image disappear
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
test case
object-image-hide-show.html (text/html), 861 bytes, created by
Said Abou-Hallawa
on 2018-05-02 14:17:40 PDT
(
hide
)
Description:
test case
Filename:
MIME Type:
Creator:
Said Abou-Hallawa
Created:
2018-05-02 14:17:40 PDT
Size:
861 bytes
patch
obsolete
><style> > object { > width: 100px; > height: 100px; > } ></style> ><body> > <object data="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAADElEQVQIHWNg+M8AAAICAQDpLOrTAAAAAElFTkSuQmCC" type="image/png" /> > <script> > function toggleVisiblity(element, after) { > return new Promise((resolve) => { > setTimeout(() => { > if (element.style.display === "none") > element.style.display = "block"; > else > element.style.display = "none"; > resolve(); > }, after); > }); > } > > var element = document.querySelector("object"); > toggleVisiblity(element, 100).then(() => { > return toggleVisiblity(element, 100); > }); > </script> ></body>
<style> object { width: 100px; height: 100px; } </style> <body> <object data="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAADElEQVQIHWNg+M8AAAICAQDpLOrTAAAAAElFTkSuQmCC" type="image/png" /> <script> function toggleVisiblity(element, after) { return new Promise((resolve) => { setTimeout(() => { if (element.style.display === "none") element.style.display = "block"; else element.style.display = "none"; resolve(); }, after); }); } var element = document.querySelector("object"); toggleVisiblity(element, 100).then(() => { return toggleVisiblity(element, 100); }); </script> </body>
View Attachment As Raw
Actions:
View
Attachments on
bug 185216
: 339339 |
339343
|
339361
|
339364