
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
css-paint-polyfill
Advanced tools
A polyfill for the CSS Paint API, with special browser optimizations.
A polyfill that brings Houdini's CSS Custom Paint API and Paint Worklets to all modern browsers (Edge, Firefox, Safari and Chrome).
Performance is particularly good in Firefox and Safari, where this polyfill leverages -webkit-canvas()
and -moz-element()
for optimized rendering. For other browsers, framerate is governed by Canvas toDataURL()
/ toBlob()
speed.
As of version 3, this polyfill also includes basic implementations of CSS.supports()
, CSS.registerProperty()
and CSS unit functions (CSS.px()
etc), which are injected in browsers without native support.
Paint Worklets are JavaScript modules in which you can program custom graphics code. Once registered, they can be applied to elements using CSS:
An example
|
... registered and applied on a page:
|
For a more complete example, see the demo.
<script src="css-paint-polyfill.js"></script>
<!-- or: -->
<script src="https://unpkg.com/css-paint-polyfill"></script>
Or with a bundler:
import 'css-paint-polyfill';
... or with ES Modules on the web:
import 'https://unpkg.com/css-paint-polyfill';
See CONTRIBUTING.md.
To hack on the polyfill locally:
git clone git@github.com:GoogleChromeLabs/css-paint-polyfill.git
cd css-paint-polyfill
npm i
npm start
# open http://localhost:5000
FAQs
A polyfill for the CSS Paint API, with special browser optimizations.
The npm package css-paint-polyfill receives a total of 548 weekly downloads. As such, css-paint-polyfill popularity was classified as not popular.
We found that css-paint-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
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.