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

对默认的 shadowroot host 元素应用 CSS 重设样式 all: initial !important #119

Closed
Crystal-RainSlide opened this issue Sep 28, 2019 · 2 comments

Comments

@Crystal-RainSlide
Copy link

一些例如 https://example.com 之类的网站/页面中含有适用于 div 甚至 * 的样式,最终可导致 eruda 的 shadowroot host 元素,插在页面末端的 <div>,变为可见,如下图左侧:
图片
对其应用

{ all: initial !important; }

可以有效清除那些样式的干扰。

IE / Edge 不支持,Chrome 37+,Firefox 27+,Safari 9.1+,Safari Mobile 9.3+

ref: https://developer.mozilla.org/zh-CN/docs/Web/CSS/all

surunzi added a commit that referenced this issue Sep 28, 2019
@surunzi
Copy link
Member

surunzi commented Sep 28, 2019

1.6.2 修复

@surunzi surunzi closed this as completed Sep 28, 2019
@Crystal-RainSlide
Copy link
Author

Crystal-RainSlide commented Sep 29, 2019

感谢,这下可以继续拿 example.com 当 playground 了~

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

No branches or pull requests

2 participants