Skip to content

Latest commit

 

History

History
41 lines (23 loc) · 734 Bytes

AstFormula.md

File metadata and controls

41 lines (23 loc) · 734 Bytes

css-selector-parser / Exports / AstFormula

Interface: AstFormula

Pseudo-class formula value. a is multiplier of n and b us added on top. Formula: an + b. For instance :nth-child(2n + 1) -> {type: 'AstPseudoClass'..., argument: {type: 'Formula', a: 2, b: 1}}. Generated by ast.formula.

See

https://developer.mozilla.org/en-US/docs/Web/CSS/:nth-child#functional_notation

Table of contents

Properties

Properties

a

a: number

Multiplier of n.


b

b: number

Constant added to a*n.


type

type: "Formula"