Skip to main content
The Deno 2 Release Candidate is here
Learn more
Latest
method Node.prototype.cloneBefore
Re-export
import { Node } from "https://deno.land/x/postcss@8.4.16/lib/postcss.d.ts";

Shortcut to clone the node and insert the resulting cloned node before the current node.

decl.cloneBefore({ prop: '-moz-' + decl.prop })

Parameters

optional
overrides: object

Mew properties to override in the clone.

Returns

this

New node