[Webkit-unassigned] [Bug 177043] innerWidth and innerHeight return 0 inside iframe created with document.write

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Sep 20 18:00:07 PDT 2017


https://bugs.webkit.org/show_bug.cgi?id=177043

--- Comment #2 from Matthias <MatthiasSaihttam1 at gmail.com> ---
Thanks for that explanation, it helped me understand what's going on better.
I tried the "DOMContentLoaded" event listener, but that didn't work. However, setTimeout(function, 0) did work, because that apparently pushes itself to the end of the command queue, after layout is done.
It still seems counter-intuitive that the load listener fires before the layout is completed in this one case in this one browser, and that there's no official way to ensure layout is finished.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170921/d8107ffa/attachment.html>


More information about the webkit-unassigned mailing list