![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
gradient2svg
Advanced tools
$ npm install gradient2svg
linear-gradient()
and radial-gradient()
import cssGradient2SVG from 'gradient2svg'
// Linear gradient
const svgGradient1 = cssGradient2SVG('linear-gradient(55deg, #f00, #000)');
/*
<linearGradient data-gradient-angle="55" x1="9.04%" y1="78.68%" x2="90.96%" y2="21.32%">
<stop offset="0%" style="stop-color: #f00;" /
<stop offset="100%" style="stop-color: #000;" />
</linearGradient>
*/
// Radial gradient
const svgGradient2 = cssGradient2SVG('radial-gradient(circle at 10% center, #f00 10%, #00f 95%)');
/*
<radialGradient cx="0.1" cy="0.5" r="50%">
<stop offset="10%" style="stop-color: #f00;" />
<stop offset="95%" style="stop-color: #00f;" />
</linearGradient>
*/
Currently, the <size>
keywords such as closest-side
, closest-corner
, farthest-side
, farthest-corner
, cover
and contain
that are describing a responsive size of a radial-gradient
in CSS are NOT supported because there is no way to describe this in plain SVG.
FAQs
Convert CSS gradients to a SVG gradients
We found that gradient2svg 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.