
Security News
PodRocket Podcast: Inside the Recent npm Supply Chain Attacks
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
cssnext-playground
Advanced tools
Use tomorrow's CSS syntax, today. In a browser playground.
Issues with the output should be reported on cssnext issue tracker.
You can try the cssnext playground here: cssnext.github.io/cssnext-playground
$ npm install --save-dev cssnext-playground
<div class="cssnext-Playground">
<div class="cssnext-Playground-section cssnext-Playground-section--from">
<div class="js-cssnext-Playground-console cssnext-Playground-console"></div>
<textarea class="js-cssnext-Playground-from cssnext-Playground-code cssnext-Playground-code--from" spellcheck="false" >
/* original code here */
</textarea>
</div>
<div class="cssnext-Playground-section cssnext-Playground-section--to">
<textarea class="js-cssnext-Playground-to cssnext-Playground-code cssnext-Playground-code--to" spellcheck="false"></textarea>
</div>
</div>
Note: js-*
classes are for JavaScript snippet below, other classes are for styles. See index.css for minimal recommanded styles.
Initiate the playground:
cssnextPlayground({
from: body.querySelector(".js-cssnext-Playground-from"),
to: body.querySelector(".js-cssnext-Playground-to"),
console: body.querySelector(".js-cssnext-Playground-console"),
options: {}
})
And if you have multiple playgrounds:
Array.prototype.slice.call(document.querySelectorAll(".js-cssnext-Playground")).forEach(function(elPlayground) {
cssnextPlayground({
from: elPlayground.querySelector(".js-cssnext-Playground-from"),
to: elPlayground.querySelector(".js-cssnext-Playground-to"),
console: elPlayground.querySelector(".js-cssnext-Playground-console"),
options: {}
})
})
from
Original textarea (input)
to
Converted textarea (output)
console
Error console element
options
(optional)cssnext options (directly passed to cssnext, so checkout cssnext options)
Work on a branch, install dev-dependencies, respect coding style & run tests before submitting a bug fix or a feature.
$ git clone https://github.com/cssnext/cssnext-playground.git
$ git checkout -b patch-1
$ npm install
$ npm test
FAQs
Use tomorrow's CSS syntax, today, using cssnext in a playground
We found that cssnext-playground 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.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.