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

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

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

decl.after('color: black')

Parameters

newNode:
| Node
| string
| Node[]

New node.

Returns

this

This node for methods chain.