[Webkit-unassigned] [Bug 206228] element.style position DOM updates are laggy / not in sync

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jan 14 14:20:35 PST 2020


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

--- Comment #3 from cc.glows at gmail.com ---
Just want to point out as well that this library has 4M downloads/week on npm, and billions of hits across CDNs - it solves an important problem in web applications that many people rely on. It's used in the biggest UI libraries (Bootstrap and Material UI) and needs to constrain the position of the element within the viewport so it's visible for the user as best as possible. Tons of developers are using this library right now in production, and millions upon millions of users are experiencing it.

Its entire purpose is to reposition an element near another one in sync with the layout. The "Overlow Prevention" example in the website link is an example of this, and the lag in Safari defeats this purpose (which seems unrelated to async scroll events - which should(?) not show the same effect with setInterval).

Even if the problem is with async scrolling, perhaps the spec should be ignored or updated to account for this problem. The positioning property cannot be updated to `fixed/sticky` at will either due to a host of other problems it causes regarding clipping containers, and massively complicates library logic due to the need to switch based on a variety of conditions.

-- 
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/20200114/85ac3191/attachment.htm>


More information about the webkit-unassigned mailing list