css-selector-parser / Exports / 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
• a: number
Multiplier of n
.
• b: number
Constant added to a*n
.
• type: "Formula"