ant-design / ant-design/cssinjs
prependQueue style 样式丢失
- Dominant language
- TypeScript
- Stars
- 287
- Forks
- 80
- PR merge metrics
- No merged PRs in 30d
Description
我的 chrome 插件(用的 plasmo 框架)有两个 shadowDom 的 content_script 注入,其中随机的出现部分 antd 样式丢失,比如 `ant-tooltip`
发现所在的 shadowRoot 中相关的 style 标签为空了
而同一个页面另外个 shadowRoot 正常:
对应的 style 标签内容正常:
两个 shadowRoot 的 StyleProvider 写法也没区别:
```ts
和
```
依赖版本:
"@ant-design/cssinjs": "^1.10.1",
"antd": "^5.6.3",
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the issue in a Chrome extension using Plasmo with two shadow DOM content scripts and compare the two StyleProvider container values shown in the report. Inspect the affected shadowRoot's empty style tag alongside the working one, focusing on prependQueue behavior. Done means ant-design styles such as ant-tooltip remain present consistently in both shadow roots.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100