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

Insert new node before current node to current node’s parent.

Just alias for node.parent.insertBefore(node, add).

decl.before('content: ""')

Parameters

newNode:
| Node
| string
| Node[]

New node.

Returns

this

This node for methods chain.