WebKit Bugzilla
Attachment 369885 Details for
Bug 197891
: [IntersectionObserver] Regression: No initial observation when nothing else triggers rendering
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Test case
intersection-observer-initial-observation.html (text/html), 489 bytes, created by
Ali Juma
on 2019-05-14 12:57:06 PDT
(
hide
)
Description:
Test case
Filename:
MIME Type:
Creator:
Ali Juma
Created:
2019-05-14 12:57:06 PDT
Size:
489 bytes
patch
obsolete
><!DOCTYPE html> > ><script> >function createObserver() { > var obs = new IntersectionObserver(() => { > document.getElementById("output").innerHTML = "Got an observation"; > }); > obs.observe(document.getElementById("target")); >} >window.onload = function() { > setTimeout(createObserver, 2500); >}; ></script> > > ><body> > <div id="target"></div> > <div id="output"></div> > 2.5 seconds after load, you should see some text appear even if you don't > interact at all with the window. ></body>
<!DOCTYPE html> <script> function createObserver() { var obs = new IntersectionObserver(() => { document.getElementById("output").innerHTML = "Got an observation"; }); obs.observe(document.getElementById("target")); } window.onload = function() { setTimeout(createObserver, 2500); }; </script> <body> <div id="target"></div> <div id="output"></div> 2.5 seconds after load, you should see some text appear even if you don't interact at all with the window. </body>
View Attachment As Raw
Actions:
View
Attachments on
bug 197891
: 369885 |
369985