[Webkit-unassigned] [Bug 160331] Setter on style element's textContent or cssText doesn't trigger style recalc
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Oct 4 21:47:17 PDT 2016
https://bugs.webkit.org/show_bug.cgi?id=160331
--- Comment #19 from Trey Shugart <treshugart at gmail.com> ---
For posterity, el.parentNode.insertBefore(el, el.nextSibling) doesn't seem to work. I had to first remove the style node and then insert before the next sibling.
Our solution in its entirety was to override attachShadow() and observe the shadow root that was created so that we can observe any style elements in it and re-insert them if they were mutated.
Code for fix: https://bitbucket.org/atlassian/atlaskit/src/c4fe7f74539ca5e76449c1c72b960ad0c0809fd0/packages/akutil-polyfills/src/index.js?fileviewer=file-view-default
We're going to go ahead with the override for a short-term fix. Thanks again for looking into this and fixing it so quickly.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20161005/e483ec69/attachment-0001.html>
More information about the webkit-unassigned
mailing list