[Webkit-unassigned] [Bug 160331] Shadow DOM V1 does not apply styles

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jul 28 23:13:36 PDT 2016


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

Ryosuke Niwa <rniwa at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |simon.fraser at apple.com

--- Comment #1 from Ryosuke Niwa <rniwa at webkit.org> ---
Wow, this is a terrible bug. It looks like something is style recalc is completely broken.  e.g. if you re-insert the style element again, it renders correctly.

The bug here is that setting style element's content doesn't update the element.


You can work around it by re-inserting the element in your `applyStyle` function:
https://github.com/skatejs/kickflip/blob/8dd73b87c7027acb7b3da4906c9a290569a4c42e/dist/index.js#L525

as in

el.parentNode.insertBefore(el, el.nextSibling);

-- 
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/20160729/e4a74d9f/attachment.html>


More information about the webkit-unassigned mailing list