construct-style-sheets icon indicating copy to clipboard operation
construct-style-sheets copied to clipboard

In version 3.1.0, some bugs was encountered in safariI browser.

Open dntzhang opened this issue 3 years ago • 5 comments

image image image

dntzhang avatar Jul 10 '22 13:07 dntzhang

https://github.com/Tencent/omi/commit/4c50c9404b18b0cc7af3895d94ae1de79862d2b1

dntzhang avatar Jul 10 '22 13:07 dntzhang

https://github.com/Tencent/omi/commit/ff35f86b4c5bc432007931d6d944e2cd54db6d1d

<=v3.0.1  ok
>v3.0.1  error

dntzhang avatar Jul 10 '22 13:07 dntzhang

~I'm also encountering Safari issues. Specifically, it seems the polyfill is not being recognized as aTypeError: Illegal constructor error is being thrown when invoking new CSSStyleSheet(). However, Firefox works as intended. I noticed that there are some extra steps to make the polyfill work for IE11. Are similar steps required for Safari? I tried downgrading as suggested above, but had no luck.~

Update: I wasn't properly importing the polyfill module, hence the error in Safari. I can also now confirm the Safari SyntaxErrors described aboved when using 3.1.0. Downgrading to 3.0.1 does seem to prevent the errors.

alexabreu avatar Aug 11 '22 17:08 alexabreu

@dntzhang/@alexabreu could you provide the text you're passing in that might be causing this issue? I haven't seen anything on my end.

calebdwilliams avatar Aug 13 '22 13:08 calebdwilliams

This is a duplicate of #110.

konstantinkreft avatar Apr 20 '23 09:04 konstantinkreft