Workaround for bug in Safari 16.4 #6
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "patch-1"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
In Safari 16.4,
[sheet].concat(root.adoptedStyleSheets)returns[CSSStyleSheet, []]instead of[CSSStyleSheet].This results in a
TypeErrorwhen trying to assign toroot.adoptedStyleSheets.When using the spread syntax it does give the wanted result.
I will create an issue for this in the webkit bug tracker too.
Thanks for fixing that. Do I understand correctly that this is an actual regression in Safari, and it used to work in previous versions?
Safari 16.4 added support:
fyi: https://bugs.webkit.org/show_bug.cgi?id=253814