Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Latest
method default.prototype.before
import { default } from "https://deno.land/x/postcss@8.4.16/lib/node.js";

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.