Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
method Container.prototype.insertBefore
Re-export
import { Container } from "https://deno.land/x/postcss@8.4.16/lib/postcss.js";

Insert new node before old node within the container.

rule.insertBefore(decl, decl.clone({ prop: '-webkit-' + decl.prop }))

Parameters

oldNode: Child | number

Child or child’s index.

newNode:
| Child
| string
| Child[]
| string[]

New node.

Returns

this

This node for methods chain.