Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: Member not found error in IE11 for cssText #2205

Closed
holylinyy opened this issue Jul 27, 2022 · 1 comment · Fixed by #2532
Closed

[BUG]: Member not found error in IE11 for cssText #2205

holylinyy opened this issue Jul 27, 2022 · 1 comment · Fixed by #2532

Comments

@holylinyy
Copy link

holylinyy commented Jul 27, 2022

What happens?

when use ie , while accessing cssText in some cases i.e. keyframe rules. will get "Member not found"

Mini Showcase Repository(REQUIRED)

<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    @keyframes dialog-fade-out {
      0% {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        opacity: 1
      }
      100% {
        -webkit-transform: translate3d(0, -20px, 0);
        transform: translate3d(0, -20px, 0);
        opacity: 0
      }
    }
  </style>
</head>

<body>

  <div id="example" data-v>beeeeeeeeeeeeeeeeee</div>

  <script>
    const a = [].slice.call(document.getElementsByTagName('style')[0].sheet.cssRules, 0)
    let b = ''
    a.forEach(function (r) {
      b += r.cssText
    })
  </script>
</body>

</html>

How To Reproduce

image
image

Steps to reproduce the behavior: 1. 2.

  1. not throw error in ie
    Expected behavior 1. 2.

Context

  • qiankun Version: "qiankun": "^2.7.4",
  • Platform Version: win10
  • Browser Version: ie11
@holylinyy
Copy link
Author

补充了复现例子

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants