
Research
NPM targeted by malware campaign mimicking familiar library names
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
css-scroll-snap-polyfill
Advanced tools
Supply Chain Security
Vulnerability
Quality
Maintenance
License
Polyfill for CSS scroll snapping draft.
yarn add css-scroll-snap-polyfill
npm install --save css-scroll-snap-polyfill
import scrollSnapPolyfill from 'css-scroll-snap-polyfill'
// whenever dom is ready
scrollSnapPolyfill()
This uses Polyfill.js by @philipwalton, which is bundled. No other dependencies.
This has been tested successfully in the following browsers:
It will not work properly when you use margins on the scroll-snap container or it's children due to there being a mismatch between the parent and child offsets, which are used to make calculations.
This polyfill only supports the properties in the new spec, not the older deprecated
properties like scoll-snap-points
, scroll-snap-coordinate
, and scroll-snap-destination
.
If you want to use those older properties (not recommended) you can use scrollsnap-polyfill from Github user @ckrack.
Length units for scroll-padding
are limited to:
MIT.
FAQs
Polyfill for CSS scroll snapping draft.
The npm package css-scroll-snap-polyfill receives a total of 1,262 weekly downloads. As such, css-scroll-snap-polyfill popularity was classified as popular.
We found that css-scroll-snap-polyfill demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
Research
Socket's research uncovers three dangerous Go modules that contain obfuscated disk-wiping malware, threatening complete data loss.
Research
Socket uncovers malicious packages on PyPI using Gmail's SMTP protocol for command and control (C2) to exfiltrate data and execute commands.