Comments (1)
getComputedStyle(document.body, '::-webkit-scrollbar');
- 这个伪类 ::-webkit-scrollbar 在 Firefox 上不支持(非标)
- 在 Firefox 62 之前,视窗上未展示的元素(Window with no presentation) getComputedStyle 返回的是 null
所以出现这种声明了要匹配的伪元素的字符串反而被浏览器识别为元素不存在,返回了 null
https://bugzilla.mozilla.org/show_bug.cgi?id=1467722
https://bugzilla.mozilla.org/show_bug.cgi?id=1471231
![image](https://private-user-images.githubusercontent.com/8777339/329554580-540bec17-357a-4edb-861c-33e895fc047d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM1MDY1MDIsIm5iZiI6MTcyMzUwNjIwMiwicGF0aCI6Ii84Nzc3MzM5LzMyOTU1NDU4MC01NDBiZWMxNy0zNTdhLTRlZGItODYxYy0zM2U4OTVmYzA0N2QucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgxMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MTJUMjM0MzIyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YjEzNGM2ZTIzYzdkYjJhODc3NWJiNDMwZWFkZjZmN2RiNGQ0NWNjZDNkMmE5ZGMzMjY3YTA0ZGExMTIzNmM3MCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.fT_3DBCQkFYNEOFFyr5MtjrppmRfbGbpZ_NI_kWVR5s)
![image](https://private-user-images.githubusercontent.com/8777339/329554707-dac362cf-dad7-4291-9b35-1e38cb5aa59c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM1MDY1MDIsIm5iZiI6MTcyMzUwNjIwMiwicGF0aCI6Ii84Nzc3MzM5LzMyOTU1NDcwNy1kYWMzNjJjZi1kYWQ3LTQyOTEtOWIzNS0xZTM4Y2I1YWE1OWMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgxMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MTJUMjM0MzIyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZDMwYmE0OWZjYjgxNjNjZDI0MGJhMDJjZDQ1YmYzYzhjMTU4YzM3YmQzZGUwNTZlMjgwNTQwM2FkNGM4N2I1MCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.9uTgB5yvOY-R4KPnTchhmI24tXg42Ih_-DyKB4Ijmcw)
from util.
Related Issues (20)
- [RFC] tsconfig 是否应该开启 strict 或 strictNullChecks HOT 1
- useMobile hooks in version v5.28.0
- isVisible failing with element from a different window
- Calling utils.merge that have the same object does not work HOT 1
- switchScrollingEffect.js 的代码是否存在问题?
- Function isDom not working inside iframe HOT 1
- vite/[email protected]: error message occurred does not provide an export named 'isFragment' HOT 2
- function inShadow throws error when shadowRoot is undefined HOT 1
- Fix ESM exports
- 【CSP once is not effective 】util/src/Dom/dynamicCSS injectCSS function with csp bug,Style.once is not effective HOT 2
- getContainer 咨询
- 目前的导出模式无法实现自动切换 CommonJS 和 ESModule 导入
- father 默认兼容 ie11 导致构建尺寸偏大
- Do we have any component from DnD?
- Bug: proxyObject prevents the element from changing its value
- "render" function throws "reactRender is not a function" with react 19-rc HOT 1
- injectCSS throw `This document requires 'TrustedHTML' assignment.`
- Warning: findDOMNode is deprecated and will be removed in the next major release HOT 2
- PureRenderMixin BSD+Patent license issues
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from util.