From c0ac40c773ab205f4efab4ad595d1a2789bd277b Mon Sep 17 00:00:00 2001 From: Thierry Bela Nanga Date: Mon, 25 Aug 2025 00:14:06 -0400 Subject: [PATCH] add missing return type #100 --- CHANGELOG.md | 4 + docs/classes/node.SourceMap.html | 10 +- docs/documents/README.html | 2 +- docs/enums/node.ColorType.html | 56 +- docs/enums/node.EnumToken.html | 246 +- docs/enums/node.FeatureWalkMode.html | 6 +- docs/enums/node.ValidationLevel.html | 8 +- docs/enums/node.WalkerOptionEnum.html | 10 +- docs/enums/node.WalkerValueEvent.html | 6 +- docs/functions/node.parse.html | 2 +- docs/functions/node.parseDeclarations.html | 4 +- docs/functions/node.parseFile.html | 2 +- docs/functions/node.render.html | 2 +- docs/functions/node.transform.html | 2 +- docs/functions/node.transformFile.html | 2 +- docs/functions/node.walk.html | 2 +- docs/functions/node.walkValues.html | 2 +- docs/functions/web.parse.html | 2 +- docs/functions/web.parseFile.html | 2 +- docs/functions/web.render.html | 2 +- docs/functions/web.transform.html | 2 +- docs/functions/web.transformFile.html | 2 +- docs/index.html | 2 +- docs/interfaces/node.AddToken.html | 4 +- docs/interfaces/node.AngleToken.html | 4 +- docs/interfaces/node.AstAtRule.html | 4 +- docs/interfaces/node.AstComment.html | 4 +- docs/interfaces/node.AstDeclaration.html | 4 +- docs/interfaces/node.AstInvalidAtRule.html | 4 +- .../node.AstInvalidDeclaration.html | 4 +- docs/interfaces/node.AstInvalidRule.html | 4 +- docs/interfaces/node.AstKeyFrameRule-1.html | 4 +- docs/interfaces/node.AstKeyframAtRule.html | 4 +- docs/interfaces/node.AstKeyframeRule.html | 4 +- docs/interfaces/node.AstRule.html | 4 +- docs/interfaces/node.AstRuleList.html | 4 +- docs/interfaces/node.AstRuleStyleSheet.html | 4 +- docs/interfaces/node.AtRuleToken.html | 4 +- docs/interfaces/node.AttrEndToken.html | 4 +- docs/interfaces/node.AttrStartToken.html | 4 +- docs/interfaces/node.AttrToken.html | 4 +- docs/interfaces/node.Background.html | 4 +- .../node.BackgroundAttachmentMapping.html | 4 +- docs/interfaces/node.BackgroundPosition.html | 4 +- .../node.BackgroundPositionClass.html | 4 +- .../node.BackgroundPositionConstraints.html | 4 +- .../node.BackgroundPositionMapping.html | 4 +- .../interfaces/node.BackgroundProperties.html | 4 +- docs/interfaces/node.BackgroundRepeat.html | 4 +- .../node.BackgroundRepeatMapping.html | 4 +- docs/interfaces/node.BackgroundSize.html | 4 +- .../node.BackgroundSizeMapping.html | 4 +- docs/interfaces/node.BadCDOCommentToken.html | 4 +- docs/interfaces/node.BadCommentToken.html | 4 +- docs/interfaces/node.BadStringToken.html | 4 +- docs/interfaces/node.BadUrlToken.html | 4 +- docs/interfaces/node.BaseToken.html | 4 +- .../node.BinaryExpressionToken.html | 4 +- docs/interfaces/node.BlockEndToken.html | 4 +- docs/interfaces/node.BlockStartToken.html | 4 +- docs/interfaces/node.Border.html | 4 +- docs/interfaces/node.BorderColor.html | 4 +- docs/interfaces/node.BorderColorClass.html | 2 +- docs/interfaces/node.BorderProperties.html | 4 +- docs/interfaces/node.BorderRadius.html | 4 +- docs/interfaces/node.CDOCommentToken.html | 4 +- .../interfaces/node.ChildCombinatorToken.html | 4 +- docs/interfaces/node.ClassSelectorToken.html | 4 +- docs/interfaces/node.ColonToken.html | 4 +- docs/interfaces/node.ColorToken.html | 4 +- .../node.ColumnCombinatorToken.html | 4 +- docs/interfaces/node.CommaToken.html | 4 +- docs/interfaces/node.CommentToken.html | 4 +- docs/interfaces/node.ConstraintsMapping.html | 4 +- docs/interfaces/node.ContainMatchToken.html | 4 +- docs/interfaces/node.Context.html | 6 +- docs/interfaces/node.DashMatchToken.html | 4 +- docs/interfaces/node.DashedIdentToken.html | 4 +- docs/interfaces/node.DelimToken.html | 4 +- .../node.DescendantCombinatorToken.html | 4 +- docs/interfaces/node.DimensionToken.html | 4 +- docs/interfaces/node.DivToken.html | 4 +- docs/interfaces/node.EOFToken.html | 4 +- docs/interfaces/node.EndMatchToken.html | 4 +- docs/interfaces/node.EqualMatchToken.html | 4 +- docs/interfaces/node.ErrorDescription.html | 16 +- docs/interfaces/node.FlexToken.html | 4 +- docs/interfaces/node.Font.html | 4 +- docs/interfaces/node.FontFamily.html | 4 +- docs/interfaces/node.FontProperties.html | 4 +- docs/interfaces/node.FontWeight.html | 4 +- .../node.FontWeightConstraints.html | 4 +- docs/interfaces/node.FontWeightMapping.html | 4 +- docs/interfaces/node.FractionToken.html | 4 +- docs/interfaces/node.FrequencyToken.html | 4 +- docs/interfaces/node.FunctionImageToken.html | 4 +- docs/interfaces/node.FunctionToken.html | 4 +- docs/interfaces/node.FunctionURLToken.html | 4 +- .../node.GreaterThanOrEqualToken.html | 4 +- docs/interfaces/node.GreaterThanToken.html | 4 +- .../node.GridTemplateFuncToken.html | 4 +- docs/interfaces/node.HashToken.html | 4 +- docs/interfaces/node.IdentListToken.html | 4 +- docs/interfaces/node.IdentToken.html | 4 +- docs/interfaces/node.ImportantToken.html | 4 +- docs/interfaces/node.IncludeMatchToken.html | 4 +- docs/interfaces/node.InvalidAttrToken.html | 4 +- .../node.InvalidClassSelectorToken.html | 4 +- docs/interfaces/node.LengthToken.html | 4 +- .../interfaces/node.LessThanOrEqualToken.html | 4 +- docs/interfaces/node.LessThanToken.html | 4 +- docs/interfaces/node.LineHeight.html | 4 +- docs/interfaces/node.ListToken.html | 4 +- docs/interfaces/node.LiteralToken.html | 4 +- docs/interfaces/node.Location.html | 8 +- docs/interfaces/node.Map.html | 4 +- .../interfaces/node.MatchExpressionToken.html | 4 +- docs/interfaces/node.MatchedSelector.html | 10 +- .../interfaces/node.MediaFeatureAndToken.html | 4 +- .../interfaces/node.MediaFeatureNotToken.html | 4 +- .../node.MediaFeatureOnlyToken.html | 4 +- docs/interfaces/node.MediaFeatureOrToken.html | 4 +- docs/interfaces/node.MediaFeatureToken.html | 4 +- .../node.MediaQueryConditionToken.html | 4 +- docs/interfaces/node.MinifyFeature.html | 12 +- .../interfaces/node.MinifyFeatureOptions.html | 4 +- docs/interfaces/node.MinifyOptions.html | 24 +- docs/interfaces/node.MulToken.html | 4 +- .../node.NameSpaceAttributeToken.html | 4 +- .../interfaces/node.NestingSelectorToken.html | 4 +- .../node.NextSiblingCombinatorToken.html | 4 +- docs/interfaces/node.NumberToken.html | 4 +- docs/interfaces/node.OptimizedSelector.html | 4 +- .../node.OptimizedSelectorToken.html | 4 +- docs/interfaces/node.Outline.html | 4 +- docs/interfaces/node.OutlineProperties.html | 4 +- docs/interfaces/node.ParensEndToken.html | 4 +- docs/interfaces/node.ParensStartToken.html | 4 +- docs/interfaces/node.ParensToken.html | 4 +- docs/interfaces/node.ParseInfo.html | 4 +- docs/interfaces/node.ParseResult.html | 8 +- docs/interfaces/node.ParseResultStats.html | 16 +- docs/interfaces/node.ParseTokenOptions.html | 48 +- docs/interfaces/node.ParserOptions.html | 48 +- docs/interfaces/node.PercentageToken.html | 4 +- docs/interfaces/node.Position.html | 8 +- docs/interfaces/node.Prefix.html | 4 +- docs/interfaces/node.PropertiesConfig.html | 4 +- .../node.PropertiesConfigProperties.html | 4 +- docs/interfaces/node.PropertyListOptions.html | 4 +- docs/interfaces/node.PropertyMapType.html | 4 +- docs/interfaces/node.PropertySetType.html | 2 +- docs/interfaces/node.PropertyType.html | 4 +- .../node.PseudoClassFunctionToken.html | 4 +- docs/interfaces/node.PseudoClassToken.html | 4 +- docs/interfaces/node.PseudoElementToken.html | 4 +- docs/interfaces/node.PseudoPageToken.html | 4 +- .../node.PurpleBackgroundAttachment.html | 4 +- docs/interfaces/node.RenderOptions.html | 30 +- docs/interfaces/node.RenderResult.html | 10 +- docs/interfaces/node.ResolutionToken.html | 4 +- docs/interfaces/node.ResolvedPath.html | 6 +- docs/interfaces/node.SemiColonToken.html | 4 +- docs/interfaces/node.Separator.html | 4 +- docs/interfaces/node.ShorthandDef.html | 4 +- docs/interfaces/node.ShorthandMapType.html | 4 +- docs/interfaces/node.ShorthandProperties.html | 4 +- .../node.ShorthandPropertyType.html | 4 +- docs/interfaces/node.ShorthandType.html | 4 +- docs/interfaces/node.SourceMapObject.html | 4 +- docs/interfaces/node.StartMatchToken.html | 4 +- docs/interfaces/node.StringToken.html | 4 +- docs/interfaces/node.SubToken.html | 4 +- .../node.SubsequentCombinatorToken.html | 4 +- docs/interfaces/node.TimeToken.html | 4 +- .../node.TimelineFunctionToken.html | 4 +- docs/interfaces/node.TimingFunctionToken.html | 4 +- docs/interfaces/node.TokenizeResult.html | 14 +- docs/interfaces/node.TransformOptions.html | 64 +- docs/interfaces/node.TransformResult.html | 12 +- docs/interfaces/node.UnaryExpression.html | 4 +- docs/interfaces/node.UnclosedStringToken.html | 4 +- .../node.UniversalSelectorToken.html | 4 +- docs/interfaces/node.UrlToken.html | 4 +- .../node.ValidationConfiguration.html | 4 +- docs/interfaces/node.ValidationOptions.html | 6 +- docs/interfaces/node.ValidationResult.html | 4 +- .../node.ValidationSelectorOptions.html | 6 +- .../interfaces/node.ValidationSyntaxNode.html | 4 +- .../node.ValidationSyntaxResult.html | 4 +- docs/interfaces/node.Value.html | 4 +- docs/interfaces/node.VariableScopeInfo.html | 14 +- docs/interfaces/node.VisitorNodeMap.html | 8 +- .../interfaces/node.WalkAttributesResult.html | 4 +- docs/interfaces/node.WalkResult.html | 4 +- docs/interfaces/node.WhitespaceToken.html | 4 +- docs/typedoc.json | 3459 +++++++++-------- docs/types/node.AstNode.html | 2 +- docs/types/node.AtRuleVisitorHandler.html | 2 +- docs/types/node.BinaryExpressionNode.html | 2 +- .../types/node.DeclarationVisitorHandler.html | 2 +- docs/types/node.RawSelectorTokens.html | 2 +- docs/types/node.RuleVisitorHandler.html | 2 +- docs/types/node.Token.html | 2 +- docs/types/node.UnaryExpressionNode.html | 2 +- docs/types/node.WalkerFilter.html | 2 +- docs/types/node.WalkerOption.html | 2 +- docs/types/node.WalkerValueFilter.html | 2 +- docs/variables/node.mathFuncs.html | 2 +- docs/variables/node.transformFunctions.html | 2 +- jsr.json | 2 +- package.json | 2 +- src/lib/parser/parse.ts | 2 +- 213 files changed, 2431 insertions(+), 2416 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dbd203dc..59c45341 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## v1.3.2 + +- [x] add missing return type + ## v1.3.1 - [x] generate documentation diff --git a/docs/classes/node.SourceMap.html b/docs/classes/node.SourceMap.html index 8ecfcc09..13a767f0 100644 --- a/docs/classes/node.SourceMap.html +++ b/docs/classes/node.SourceMap.html @@ -157,16 +157,16 @@ --md-sys-color-surface-container-highest: #e9e1d9 }

Class SourceMapInternal

Source map class

-
Index

Constructors

Index

Constructors

Methods

Properties

Constructors

Methods

Properties

lastLocation: null | Location = null

Last location

-

Enumeration ColorType

supported color types enum

-
Index

Enumeration Members

Index

Enumeration Members

A98_RGB CMYK COLOR COLOR_MIX @@ -185,33 +185,33 @@ XYZ_D50 XYZ_D65

Enumeration Members

A98_RGB: 15

color using a98-rgb values

-
CMYK: 7

colors as cmyk values

-
COLOR: 12

colors using color() function

-
COLOR_MIX: 22

color-mix() color function

-
DEVICE_CMYK: 7

alias for cmyk

-
DISPLAY_P3: 17

color using display-p3 values

-
DPSYS: 1

deprecated system colors

-
HEX: 3

colors as hex values

-
HSL: 5

alias for hsl

-
HSLA: 5

colors as hsl values

-
HWB: 6

colors as hwb values

-
LAB: 10

colors as lab values

-
LCH: 11

colors as lch values

-
LIGHT_DARK: 21

light-dark() color function

-
LIT: 2

colors as literals

-
OKLAB: 8

colors as oklab values

-
OKLCH: 9

colors as oklch values

-
PROPHOTO_RGB: 14

color using prophoto-rgb values

-
REC2020: 16

color using rec2020 values

-
RGB: 4

alias for rgba

-
RGBA: 4

colors as rgb values

-
SRGB: 13

color using srgb values

-
SRGB_LINEAR: 18

color using srgb-linear values

-
SYS: 0

system colors

-
XYZ: 20

alias for xyz-d65

-
XYZ_D50: 19

color using xyz-d50 values

-
XYZ_D65: 20

color using xyz-d65 values

-

Enumeration EnumToken

enum of all token types

-
Index

Enumeration Members

Add +
Index

Enumeration Members

Enumeration Members

Add: 60

addition token type

-
Angle: 24

alias for angle token type

-
AngleTokenType: 24

angle token type

-
AtRuleNodeType: 3

at-rule node type

-
AtRuleTokenType: 13

at-rule token type

-
AttrEndTokenType: 32

attribute end token type

-
AttrStartTokenType: 31

attribute start token type

-
AttrTokenType: 51

attribute token type

-
BadCdoTokenType: 53

bad cdo token type

-
BadCommentTokenType: 52

bad comment token type

-
BadStringTokenType: 55

bad string token type

-
BadUrlTokenType: 54

bad URL token type

-
BinaryExpressionTokenType: 56

binary expression token type

-
BlockEndTokenType: 30

block end token type

-
BlockStartTokenType: 29

block start token type

-
CDOCOMMNodeType: 1

alias for cdata section node type

-
CDOCOMMTokenType: 1

cdata section token

-
ChildCombinatorTokenType: 76

child combinator token type

-
ClassSelectorTokenType: 74

class selector token type

-
ColonTokenType: 10

colon token type

-
Color: 50

alias for color token type

-
ColorTokenType: 50

color token type

-
ColumnCombinatorTokenType: 64

column combinator token type

-
Comma: 9

alias for comma token type

-
CommaTokenType: 9

comma token type

-
Comment: 0

alias for comment token type

-
CommentNodeType: 0

alias for comment node type

-
CommentTokenType: 0

comment token

-
ContainMatchTokenType: 65

contain match token type

-
DashedIden: 8

alias for dashed identifier token type

-
DashedIdenTokenType: 8

dashed identifier token type

-
DashMatchTokenType: 38

dash match token type

-
DeclarationNodeType: 5

declaration node type

-
DelimTokenType: 46

delimiter token type

-
DescendantCombinatorTokenType: 77

descendant combinator token type

-
Dimension: 22

alias for dimension token type

-
DimensionTokenType: 22

dimension token type

-
Div: 62

division token type

-
EndMatchTokenType: 67

end match token type

-
EndParensTokenType: 34

end parentheses token type

-
EOF: 48

alias for end of file token type

-
EOFTokenType: 48

end of file token type

-
EqualMatchTokenType: 39

equal match token type

-
Flex: 58

alias for flex token type

-
FlexTokenType: 58

flex token type

-
FractionTokenType: 70

fraction token type

-
Frequency: 26

alias for frequency token type

-
FrequencyTokenType: 26

frequency token type

-
FunctionTokenType: 15

function token type

-
GridTemplateFunc: 72

alias for grid template function token type

-
GridTemplateFuncTokenType: 72

grid template function token type

-
GteTokenType: 43

greater than or equal to token type

-
GtTokenType: 42

greater than token type

-
Hash: 28

alias for hash token type

-
HashTokenType: 28

hash token type

-
Iden: 7

alias for identifier token type

-
IdenList: 71

alias for identifier list token type

-
IdenListTokenType: 71

identifier list token type

-
IdenTokenType: 7

identifier token type

-
ImageFunc: 19

alias for image function token type

-
ImageFunctionTokenType: 19

image function token type

-
ImportantTokenType: 49

important token type

-
IncludeMatchTokenType: 37

include match token type

-
InvalidAtRuleTokenType: 84

invalid at rule token type

-
InvalidAttrTokenType: 83

invalid attribute token type

-
InvalidClassSelectorTokenType: 82

invalid class selector token type

-
InvalidDeclarationNodeType: 94

invalid declaration node type

-
InvalidRuleTokenType: 81

invalid rule token type

-
KeyframeAtRuleNodeType: 93

keyframe at rule node type

-
KeyFrameRuleNodeType: 73

keyframe rule node type

-
Length: 23

alias for length token type

-
LengthTokenType: 23

length token type

-
ListToken: 59

token list token type

-
Literal: 6

alias for literal token type

-
LiteralTokenType: 6

literal token type

-
LteTokenType: 41

less than or equal to token type

-
LtTokenType: 40

less than token type

-
MatchExpressionTokenType: 68

match expression token type

-
MediaFeatureAndTokenType: 89

media feature and token type

-
MediaFeatureNotTokenType: 88

media feature not token type

-
MediaFeatureOnlyTokenType: 87

media feature only token type

-
MediaFeatureOrTokenType: 90

media feature or token type

-
MediaFeatureTokenType: 86

media feature token type

-
MediaQueryConditionTokenType: 85

media query condition token type

-
Mul: 61

multiplication token type

-
NameSpaceAttributeTokenType: 69

namespace attribute token type

-
NestingSelectorTokenType: 80

nesting selector token type

-
NextSiblingCombinatorTokenType: 78

next sibling combinator token type

-
Number: 12

alias for number token type

-
NumberTokenType: 12

number token type

-
ParensTokenType: 35

parentheses token type

-
Perc: 14

alias for percentage token type

-
PercentageTokenType: 14

percentage token type

-
PseudoClassFuncTokenType: 45

pseudo-class function token type

-
PseudoClassTokenType: 44

pseudo-class token type

-
PseudoElementTokenType: 92

pseudo element token type

-
PseudoPageTokenType: 91

pseudo page token type

-
Resolution: 27

alias for resolution token type

-
ResolutionTokenType: 27

resolution token type

-
RuleNodeType: 4

rule node type

-
SemiColonTokenType: 11

semicolon token type

-
StartMatchTokenType: 66

start match token type

-
StartParensTokenType: 33

start parentheses token type

-
String: 20

alias for string token type

-
StringTokenType: 20

string token type

-
StyleSheetNodeType: 2

style sheet node type

-
Sub: 63

subtraction token type

-
SubsequentSiblingCombinatorTokenType: 79

subsequent sibling combinator token type

-
Time: 25

alias for time token type

-
TimelineFunction: 16

alias for timeline function token type

-
TimelineFunctionTokenType: 16

timeline function token type

-
TimeTokenType: 25

time token type

-
TimingFunction: 17

alias for timing function token type

-
TimingFunctionTokenType: 17

timing function token type

-
UnaryExpressionTokenType: 57

unary expression token type

-
UnclosedStringTokenType: 21

unclosed string token type

-
UniversalSelectorTokenType: 75

universal selector token type

-
UrlFunc: 18

alias for url function token type

-
UrlFunctionTokenType: 18

url function token type

-
UrlTokenTokenType: 47

URL token type

-
Whitespace: 36

alias for whitespace token type

-
WhitespaceTokenType: 36

whitespace token type

-

Enumeration FeatureWalkModeInternal

feature walk mode

-
Index

Enumeration Members

Index

Enumeration Members

Enumeration Members

Post

Post: 1

post process

-
Pre: 0

pre process

-

Enumeration ValidationLevel

enum of validation levels

-
Index

Enumeration Members

All +
Index

Enumeration Members

Enumeration Members

All: 2

validate selectors, at-rules and declarations

-
Default: 1

validate selectors and at-rules

-
None: 0

disable validation

-

Enumeration WalkerOptionEnum

Index

Enumeration Members

Children +

Enumeration WalkerOptionEnum

Index

Enumeration Members

Enumeration Members

Children: 2

ignore node and process children

-
Ignore: 0

ignore the current node and its children

-
IgnoreChildren: 3

ignore children

-
Stop: 1

stop walking the tree

-

Enumeration WalkerValueEvent

Index

Enumeration Members

Enter +

Enumeration WalkerValueEvent

Index

Enumeration Members

Enumeration Members

Enter: 0

enter node

-
Leave: 1

leave node

-

Function parseDeclarations

  • parse a string as an array of declaration nodes

    +

    Function parseDeclarations

    • parse a string as an array of declaration nodes

      Parameters

      • declaration: string

        Example:


        const declarations = await parseDeclarations('color: red; background: blue');
        console.log(declarations);
        -

      Returns Promise<AstDeclaration[]>

    Function walk

    Function walkValues

    Function parse

    Function parseFile

    Function render

    Interface AddToken

    interface AddToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: Add;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface AddToken

    interface AddToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: Add;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    typ: Add
    validSyntax?: boolean

    Interface AngleToken

    interface AngleToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: AngleTokenType;
        unit: string;
        val: number | FractionToken;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface AngleToken

    interface AngleToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: AngleTokenType;
        unit: string;
        val: number | FractionToken;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    unit: string
    val: number | FractionToken
    validSyntax?: boolean

    Interface AstAtRule

    interface AstAtRule {
        chi?:
            | (AstDeclaration | AstComment | AstInvalidDeclaration)[]
            | (AstComment | AstRule)[];
        loc?: Location;
        nam: string;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: AtRuleNodeType;
        val: string;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    chi? +

    Interface AstAtRule

    interface AstAtRule {
        chi?:
            | (AstDeclaration | AstComment | AstInvalidDeclaration)[]
            | (AstComment | AstRule)[];
        loc?: Location;
        nam: string;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: AtRuleNodeType;
        val: string;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    chi? loc? nam parent? @@ -164,7 +164,7 @@ typ val validSyntax? -

    Properties

    chi?:
        | (AstDeclaration | AstComment | AstInvalidDeclaration)[]
        | (AstComment | AstRule)[]
    loc?: Location
    nam: string
    parent?: AstRuleList
    tokens?: Token[]
    val: string
    validSyntax?: boolean

    Interface AstComment

    interface AstComment {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: CommentTokenType | CDOCOMMTokenType;
        val: string;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface AstComment

    interface AstComment {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: CommentTokenType | CDOCOMMTokenType;
        val: string;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    val: string
    validSyntax?: boolean

    Interface AstDeclaration

    interface AstDeclaration {
        loc?: Location;
        nam: string;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: DeclarationNodeType;
        val: Token[];
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface AstDeclaration

    interface AstDeclaration {
        loc?: Location;
        nam: string;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: DeclarationNodeType;
        val: Token[];
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    nam: string
    parent?: AstRuleList
    tokens?: Token[]
    val: Token[]
    validSyntax?: boolean

    Interface AstInvalidAtRule

    interface AstInvalidAtRule {
        chi?: AstNode[];
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: InvalidAtRuleTokenType;
        val: string;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    chi? +

    Interface AstInvalidAtRule

    interface AstInvalidAtRule {
        chi?: AstNode[];
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: InvalidAtRuleTokenType;
        val: string;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    chi?: AstNode[]
    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    val: string
    validSyntax?: boolean

    Interface AstInvalidDeclaration

    interface AstInvalidDeclaration {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: InvalidDeclarationNodeType;
        val: AstNode[];
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface AstInvalidDeclaration

    interface AstInvalidDeclaration {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: InvalidDeclarationNodeType;
        val: AstNode[];
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    val: AstNode[]
    validSyntax?: boolean

    Interface AstInvalidRule

    interface AstInvalidRule {
        chi: AstNode[];
        loc?: Location;
        parent?: AstRuleList;
        sel: string;
        tokens?: Token[];
        typ: InvalidRuleTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    chi +

    Interface AstInvalidRule

    interface AstInvalidRule {
        chi: AstNode[];
        loc?: Location;
        parent?: AstRuleList;
        sel: string;
        tokens?: Token[];
        typ: InvalidRuleTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    chi: AstNode[]
    loc?: Location
    parent?: AstRuleList
    sel: string
    tokens?: Token[]
    validSyntax?: boolean

    Interface AstKeyFrameRule

    interface AstKeyFrameRule {
        chi: (AstDeclaration | AstComment)[];
        loc?: Location;
        optimized?: OptimizedSelector;
        parent?: AstRuleList;
        raw?: RawSelectorTokens;
        sel: string;
        tokens?: Token[];
        typ: KeyFrameRuleNodeType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    chi +

    Interface AstKeyFrameRule

    interface AstKeyFrameRule {
        chi: (AstDeclaration | AstComment)[];
        loc?: Location;
        optimized?: OptimizedSelector;
        parent?: AstRuleList;
        raw?: RawSelectorTokens;
        sel: string;
        tokens?: Token[];
        typ: KeyFrameRuleNodeType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    Properties

    loc?: Location
    optimized?: OptimizedSelector
    parent?: AstRuleList
    sel: string
    tokens?: Token[]
    validSyntax?: boolean

    Interface AstKeyframAtRule

    interface AstKeyframAtRule {
        chi: (AstComment | AstKeyframeRule)[];
        loc?: Location;
        nam: string;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: KeyframeAtRuleNodeType;
        val: string;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    chi +

    Interface AstKeyframAtRule

    interface AstKeyframAtRule {
        chi: (AstComment | AstKeyframeRule)[];
        loc?: Location;
        nam: string;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: KeyframeAtRuleNodeType;
        val: string;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    chi loc? nam parent? @@ -164,7 +164,7 @@ typ val validSyntax? -

    Properties

    loc?: Location
    nam: string
    parent?: AstRuleList
    tokens?: Token[]
    val: string
    validSyntax?: boolean

    Interface AstKeyframeRule

    interface AstKeyframeRule {
        chi: (AstDeclaration | AstRuleList | AstComment | AstInvalidDeclaration)[];
        loc?: Location;
        optimized?: OptimizedSelector;
        parent?: AstRuleList;
        raw?: RawSelectorTokens;
        sel: string;
        tokens?: Token[];
        typ: KeyFrameRuleNodeType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    chi +

    Interface AstKeyframeRule

    interface AstKeyframeRule {
        chi: (AstDeclaration | AstRuleList | AstComment | AstInvalidDeclaration)[];
        loc?: Location;
        optimized?: OptimizedSelector;
        parent?: AstRuleList;
        raw?: RawSelectorTokens;
        sel: string;
        tokens?: Token[];
        typ: KeyFrameRuleNodeType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    Properties

    loc?: Location
    optimized?: OptimizedSelector
    parent?: AstRuleList
    sel: string
    tokens?: Token[]
    validSyntax?: boolean

    Interface AstRule

    interface AstRule {
        chi: (AstDeclaration | AstRuleList | AstComment)[];
        loc?: Location;
        optimized?: null | OptimizedSelector;
        parent?: AstRuleList;
        raw?: null | RawSelectorTokens;
        sel: string;
        tokens?: Token[];
        typ: RuleNodeType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    chi +

    Interface AstRule

    interface AstRule {
        chi: (AstDeclaration | AstRuleList | AstComment)[];
        loc?: Location;
        optimized?: null | OptimizedSelector;
        parent?: AstRuleList;
        raw?: null | RawSelectorTokens;
        sel: string;
        tokens?: Token[];
        typ: RuleNodeType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    Properties

    loc?: Location
    optimized?: null | OptimizedSelector
    parent?: AstRuleList
    raw?: null | RawSelectorTokens
    sel: string
    tokens?: Token[]
    validSyntax?: boolean

    Interface AstRuleList

    interface AstRuleList {
        chi: (BaseToken | AstComment)[];
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ:
            | StyleSheetNodeType
            | AtRuleNodeType
            | RuleNodeType
            | KeyFrameRuleNodeType
            | InvalidRuleTokenType
            | InvalidAtRuleTokenType
            | KeyframeAtRuleNodeType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    chi +

    Interface AstRuleList

    interface AstRuleList {
        chi: (BaseToken | AstComment)[];
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ:
            | StyleSheetNodeType
            | AtRuleNodeType
            | RuleNodeType
            | KeyFrameRuleNodeType
            | InvalidRuleTokenType
            | InvalidAtRuleTokenType
            | KeyframeAtRuleNodeType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    validSyntax?: boolean

    Interface AstRuleStyleSheet

    interface AstRuleStyleSheet {
        chi: (AstRuleList | AstComment)[];
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: StyleSheetNodeType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    chi +

    Interface AstRuleStyleSheet

    interface AstRuleStyleSheet {
        chi: (AstRuleList | AstComment)[];
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: StyleSheetNodeType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    validSyntax?: boolean

    Interface AtRuleToken

    interface AtRuleToken {
        loc?: Location;
        parent?: AstRuleList;
        pre: string;
        tokens?: Token[];
        typ: AtRuleTokenType;
        val: string;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface AtRuleToken

    interface AtRuleToken {
        loc?: Location;
        parent?: AstRuleList;
        pre: string;
        tokens?: Token[];
        typ: AtRuleTokenType;
        val: string;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    pre: string
    tokens?: Token[]
    val: string
    validSyntax?: boolean

    Interface AttrEndToken

    interface AttrEndToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: AttrEndTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface AttrEndToken

    interface AttrEndToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: AttrEndTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    validSyntax?: boolean

    Interface AttrStartToken

    interface AttrStartToken {
        chi?: Token[];
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: AttrStartTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    chi? +

    Interface AttrStartToken

    interface AttrStartToken {
        chi?: Token[];
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: AttrStartTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    chi?: Token[]
    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    validSyntax?: boolean

    Interface AttrToken

    interface AttrToken {
        chi: Token[];
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: AttrTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    chi +

    Interface AttrToken

    interface AttrToken {
        chi: Token[];
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: AttrTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    chi: Token[]
    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    validSyntax?: boolean

    Interface Background

    interface Background {
        default: any[];
        keywords: string[];
        multiple: boolean;
        pattern: string;
        properties: BackgroundProperties;
        separator: Separator;
        shorthand: string;
    }
    Index

    Properties

    default +

    Interface Background

    interface Background {
        default: any[];
        keywords: string[];
        multiple: boolean;
        pattern: string;
        properties: BackgroundProperties;
        separator: Separator;
        shorthand: string;
    }
    Index

    Properties

    default: any[]
    keywords: string[]
    multiple: boolean
    pattern: string
    separator: Separator
    shorthand: string

    Interface BackgroundAttachmentMapping

    interface BackgroundAttachmentMapping {
        condensed: string;
        expanded: string;
        "extra-condensed": string;
        "extra-expanded": string;
        normal: string;
        "semi-condensed": string;
        "semi-expanded": string;
        "ultra-condensed": string;
        "ultra-expanded": string;
    }
    Index

    Properties

    condensed +

    Interface BackgroundAttachmentMapping

    interface BackgroundAttachmentMapping {
        condensed: string;
        expanded: string;
        "extra-condensed": string;
        "extra-expanded": string;
        normal: string;
        "semi-condensed": string;
        "semi-expanded": string;
        "ultra-condensed": string;
        "ultra-expanded": string;
    }
    Index

    Properties

    condensed: string
    expanded: string
    "extra-condensed": string
    "extra-expanded": string
    normal: string
    "semi-condensed": string
    "semi-expanded": string
    "ultra-condensed": string
    "ultra-expanded": string

    Interface BackgroundPosition

    interface BackgroundPosition {
        constraints: BackgroundPositionConstraints;
        default: string[];
        keywords: string[];
        mapping: BackgroundPositionMapping;
        multiple: boolean;
        types: string[];
    }
    Index

    Properties

    constraints +

    Interface BackgroundPosition

    interface BackgroundPosition {
        constraints: BackgroundPositionConstraints;
        default: string[];
        keywords: string[];
        mapping: BackgroundPositionMapping;
        multiple: boolean;
        types: string[];
    }
    Index

    Properties

    default: string[]
    keywords: string[]
    multiple: boolean
    types: string[]

    Interface BackgroundPositionClass

    interface BackgroundPositionClass {
        shorthand: string;
    }
    Index

    Properties

    Properties

    shorthand: string

    Interface BackgroundPositionClass

    interface BackgroundPositionClass {
        shorthand: string;
    }
    Index

    Properties

    Properties

    shorthand: string

    Interface BackgroundPositionConstraints

    interface BackgroundPositionConstraints {
        mapping: ConstraintsMapping;
    }
    Index

    Properties

    Properties

    Interface BackgroundPositionConstraints

    interface BackgroundPositionConstraints {
        mapping: ConstraintsMapping;
    }
    Index

    Properties

    Properties

    Interface BackgroundPositionMapping

    interface BackgroundPositionMapping {
        bottom: string;
        center: string;
        left: string;
        right: string;
        top: string;
    }
    Index

    Properties

    bottom +

    Interface BackgroundPositionMapping

    interface BackgroundPositionMapping {
        bottom: string;
        center: string;
        left: string;
        right: string;
        top: string;
    }
    Index

    Properties

    Properties

    bottom: string
    center: string
    left: string
    right: string
    top: string

    Interface BackgroundProperties

    Index

    Properties

    background-attachment +

    Interface BackgroundProperties

    Index

    Properties

    "background-attachment": PurpleBackgroundAttachment
    "background-clip": PurpleBackgroundAttachment
    "background-color": PurpleBackgroundAttachment
    "background-image": PurpleBackgroundAttachment
    "background-origin": PurpleBackgroundAttachment
    "background-position": BackgroundPosition
    "background-repeat": BackgroundRepeat
    "background-size": BackgroundSize

    Interface BackgroundRepeat

    interface BackgroundRepeat {
        default: string[];
        keywords: string[];
        mapping: BackgroundRepeatMapping;
        multiple: boolean;
        types: any[];
    }
    Index

    Properties

    default +

    Interface BackgroundRepeat

    interface BackgroundRepeat {
        default: string[];
        keywords: string[];
        mapping: BackgroundRepeatMapping;
        multiple: boolean;
        types: any[];
    }
    Index

    Properties

    default: string[]
    keywords: string[]
    multiple: boolean
    types: any[]

    Interface BackgroundRepeatMapping

    interface BackgroundRepeatMapping {
        "no-repeat no-repeat": string;
        "no-repeat repeat": string;
        "repeat no-repeat": string;
        "repeat repeat": string;
        "round round": string;
        "space space": string;
    }
    Index

    Properties

    no-repeat no-repeat +

    Interface BackgroundRepeatMapping

    interface BackgroundRepeatMapping {
        "no-repeat no-repeat": string;
        "no-repeat repeat": string;
        "repeat no-repeat": string;
        "repeat repeat": string;
        "round round": string;
        "space space": string;
    }
    Index

    Properties

    "no-repeat no-repeat": string
    "no-repeat repeat": string
    "repeat no-repeat": string
    "repeat repeat": string
    "round round": string
    "space space": string

    Interface BackgroundSize

    interface BackgroundSize {
        default: string[];
        keywords: string[];
        mapping: BackgroundSizeMapping;
        multiple: boolean;
        prefix: Prefix;
        previous: string;
        types: string[];
    }
    Index

    Properties

    default +

    Interface BackgroundSize

    interface BackgroundSize {
        default: string[];
        keywords: string[];
        mapping: BackgroundSizeMapping;
        multiple: boolean;
        prefix: Prefix;
        previous: string;
        types: string[];
    }
    Index

    Properties

    default: string[]
    keywords: string[]
    multiple: boolean
    prefix: Prefix
    previous: string
    types: string[]

    Interface BackgroundSizeMapping

    interface BackgroundSizeMapping {
        "auto auto": string;
    }
    Index

    Properties

    Properties

    "auto auto": string

    Interface BackgroundSizeMapping

    interface BackgroundSizeMapping {
        "auto auto": string;
    }
    Index

    Properties

    Properties

    "auto auto": string

    Interface BadCDOCommentToken

    interface BadCDOCommentToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: BadCdoTokenType;
        val: string;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface BadCDOCommentToken

    interface BadCDOCommentToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: BadCdoTokenType;
        val: string;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    val: string
    validSyntax?: boolean

    Interface BadCommentToken

    interface BadCommentToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: BadCommentTokenType;
        val: string;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface BadCommentToken

    interface BadCommentToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: BadCommentTokenType;
        val: string;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    val: string
    validSyntax?: boolean

    Interface BadStringToken

    interface BadStringToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: BadStringTokenType;
        val: string;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface BadStringToken

    interface BadStringToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: BadStringTokenType;
        val: string;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    val: string
    validSyntax?: boolean

    Interface BadUrlToken

    interface BadUrlToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: BadUrlTokenType;
        val: string;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface BadUrlToken

    interface BadUrlToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: BadUrlTokenType;
        val: string;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    val: string
    validSyntax?: boolean

    Interface BaseToken

    interface BaseToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: EnumToken;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface BaseToken

    interface BaseToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: EnumToken;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    validSyntax?: boolean

    Interface BinaryExpressionToken

    interface BinaryExpressionToken {
        l:
            | ColorToken
            | InvalidClassSelectorToken
            | InvalidAttrToken
            | LiteralToken
            | IdentToken
            | IdentListToken
            | DashedIdentToken
            | CommaToken
            | ColonToken
            | SemiColonToken
            | ClassSelectorToken
            | UniversalSelectorToken
            | ChildCombinatorToken
            | DescendantCombinatorToken
            | NextSiblingCombinatorToken
            | SubsequentCombinatorToken
            | ColumnCombinatorToken
            | NestingSelectorToken
            | MediaQueryConditionToken
            | MediaFeatureToken
            | MediaFeatureNotToken
            | MediaFeatureOnlyToken
            | MediaFeatureAndToken
            | MediaFeatureOrToken
            | AstDeclaration
            | NumberToken
            | AtRuleToken
            | PercentageToken
            | FlexToken
            | FunctionURLToken
            | FunctionImageToken
            | TimingFunctionToken
            | TimelineFunctionToken
            | FunctionToken
            | GridTemplateFuncToken
            | DimensionToken
            | LengthToken
            | AngleToken
            | StringToken
            | TimeToken
            | FrequencyToken
            | ResolutionToken
            | UnclosedStringToken
            | HashToken
            | BadStringToken
            | BlockStartToken
            | BlockEndToken
            | AttrStartToken
            | AttrEndToken
            | ParensStartToken
            | ParensEndToken
            | ParensToken
            | CDOCommentToken
            | BadCDOCommentToken
            | CommentToken
            | BadCommentToken
            | WhitespaceToken
            | IncludeMatchToken
            | StartMatchToken
            | EndMatchToken
            | ContainMatchToken
            | MatchExpressionToken
            | NameSpaceAttributeToken
            | DashMatchToken
            | EqualMatchToken
            | LessThanToken
            | LessThanOrEqualToken
            | GreaterThanToken
            | GreaterThanOrEqualToken
            | ListToken
            | PseudoClassToken
            | PseudoPageToken
            | PseudoElementToken
            | PseudoClassFunctionToken
            | DelimToken
            | BinaryExpressionToken
            | UnaryExpression
            | FractionToken
            | AddToken
            | SubToken
            | DivToken
            | MulToken
            | BadUrlToken
            | UrlToken
            | ImportantToken
            | AttrToken
            | EOFToken;
        loc?: Location;
        op: Add
        | Mul
        | Div
        | Sub;
        parent?: AstRuleList;
        r:
            | ColorToken
            | InvalidClassSelectorToken
            | InvalidAttrToken
            | LiteralToken
            | IdentToken
            | IdentListToken
            | DashedIdentToken
            | CommaToken
            | ColonToken
            | SemiColonToken
            | ClassSelectorToken
            | UniversalSelectorToken
            | ChildCombinatorToken
            | DescendantCombinatorToken
            | NextSiblingCombinatorToken
            | SubsequentCombinatorToken
            | ColumnCombinatorToken
            | NestingSelectorToken
            | MediaQueryConditionToken
            | MediaFeatureToken
            | MediaFeatureNotToken
            | MediaFeatureOnlyToken
            | MediaFeatureAndToken
            | MediaFeatureOrToken
            | AstDeclaration
            | NumberToken
            | AtRuleToken
            | PercentageToken
            | FlexToken
            | FunctionURLToken
            | FunctionImageToken
            | TimingFunctionToken
            | TimelineFunctionToken
            | FunctionToken
            | GridTemplateFuncToken
            | DimensionToken
            | LengthToken
            | AngleToken
            | StringToken
            | TimeToken
            | FrequencyToken
            | ResolutionToken
            | UnclosedStringToken
            | HashToken
            | BadStringToken
            | BlockStartToken
            | BlockEndToken
            | AttrStartToken
            | AttrEndToken
            | ParensStartToken
            | ParensEndToken
            | ParensToken
            | CDOCommentToken
            | BadCDOCommentToken
            | CommentToken
            | BadCommentToken
            | WhitespaceToken
            | IncludeMatchToken
            | StartMatchToken
            | EndMatchToken
            | ContainMatchToken
            | MatchExpressionToken
            | NameSpaceAttributeToken
            | DashMatchToken
            | EqualMatchToken
            | LessThanToken
            | LessThanOrEqualToken
            | GreaterThanToken
            | GreaterThanOrEqualToken
            | ListToken
            | PseudoClassToken
            | PseudoPageToken
            | PseudoElementToken
            | PseudoClassFunctionToken
            | DelimToken
            | BinaryExpressionToken
            | UnaryExpression
            | FractionToken
            | AddToken
            | SubToken
            | DivToken
            | MulToken
            | BadUrlToken
            | UrlToken
            | ImportantToken
            | AttrToken
            | EOFToken;
        tokens?: Token[];
        typ: BinaryExpressionTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    l +

    Interface BinaryExpressionToken

    interface BinaryExpressionToken {
        l:
            | ColorToken
            | InvalidClassSelectorToken
            | InvalidAttrToken
            | LiteralToken
            | IdentToken
            | IdentListToken
            | DashedIdentToken
            | CommaToken
            | ColonToken
            | SemiColonToken
            | ClassSelectorToken
            | UniversalSelectorToken
            | ChildCombinatorToken
            | DescendantCombinatorToken
            | NextSiblingCombinatorToken
            | SubsequentCombinatorToken
            | ColumnCombinatorToken
            | NestingSelectorToken
            | MediaQueryConditionToken
            | MediaFeatureToken
            | MediaFeatureNotToken
            | MediaFeatureOnlyToken
            | MediaFeatureAndToken
            | MediaFeatureOrToken
            | AstDeclaration
            | NumberToken
            | AtRuleToken
            | PercentageToken
            | FlexToken
            | FunctionURLToken
            | FunctionImageToken
            | TimingFunctionToken
            | TimelineFunctionToken
            | FunctionToken
            | GridTemplateFuncToken
            | DimensionToken
            | LengthToken
            | AngleToken
            | StringToken
            | TimeToken
            | FrequencyToken
            | ResolutionToken
            | UnclosedStringToken
            | HashToken
            | BadStringToken
            | BlockStartToken
            | BlockEndToken
            | AttrStartToken
            | AttrEndToken
            | ParensStartToken
            | ParensEndToken
            | ParensToken
            | CDOCommentToken
            | BadCDOCommentToken
            | CommentToken
            | BadCommentToken
            | WhitespaceToken
            | IncludeMatchToken
            | StartMatchToken
            | EndMatchToken
            | ContainMatchToken
            | MatchExpressionToken
            | NameSpaceAttributeToken
            | DashMatchToken
            | EqualMatchToken
            | LessThanToken
            | LessThanOrEqualToken
            | GreaterThanToken
            | GreaterThanOrEqualToken
            | ListToken
            | PseudoClassToken
            | PseudoPageToken
            | PseudoElementToken
            | PseudoClassFunctionToken
            | DelimToken
            | BinaryExpressionToken
            | UnaryExpression
            | FractionToken
            | AddToken
            | SubToken
            | DivToken
            | MulToken
            | BadUrlToken
            | UrlToken
            | ImportantToken
            | AttrToken
            | EOFToken;
        loc?: Location;
        op: Add
        | Mul
        | Div
        | Sub;
        parent?: AstRuleList;
        r:
            | ColorToken
            | InvalidClassSelectorToken
            | InvalidAttrToken
            | LiteralToken
            | IdentToken
            | IdentListToken
            | DashedIdentToken
            | CommaToken
            | ColonToken
            | SemiColonToken
            | ClassSelectorToken
            | UniversalSelectorToken
            | ChildCombinatorToken
            | DescendantCombinatorToken
            | NextSiblingCombinatorToken
            | SubsequentCombinatorToken
            | ColumnCombinatorToken
            | NestingSelectorToken
            | MediaQueryConditionToken
            | MediaFeatureToken
            | MediaFeatureNotToken
            | MediaFeatureOnlyToken
            | MediaFeatureAndToken
            | MediaFeatureOrToken
            | AstDeclaration
            | NumberToken
            | AtRuleToken
            | PercentageToken
            | FlexToken
            | FunctionURLToken
            | FunctionImageToken
            | TimingFunctionToken
            | TimelineFunctionToken
            | FunctionToken
            | GridTemplateFuncToken
            | DimensionToken
            | LengthToken
            | AngleToken
            | StringToken
            | TimeToken
            | FrequencyToken
            | ResolutionToken
            | UnclosedStringToken
            | HashToken
            | BadStringToken
            | BlockStartToken
            | BlockEndToken
            | AttrStartToken
            | AttrEndToken
            | ParensStartToken
            | ParensEndToken
            | ParensToken
            | CDOCommentToken
            | BadCDOCommentToken
            | CommentToken
            | BadCommentToken
            | WhitespaceToken
            | IncludeMatchToken
            | StartMatchToken
            | EndMatchToken
            | ContainMatchToken
            | MatchExpressionToken
            | NameSpaceAttributeToken
            | DashMatchToken
            | EqualMatchToken
            | LessThanToken
            | LessThanOrEqualToken
            | GreaterThanToken
            | GreaterThanOrEqualToken
            | ListToken
            | PseudoClassToken
            | PseudoPageToken
            | PseudoElementToken
            | PseudoClassFunctionToken
            | DelimToken
            | BinaryExpressionToken
            | UnaryExpression
            | FractionToken
            | AddToken
            | SubToken
            | DivToken
            | MulToken
            | BadUrlToken
            | UrlToken
            | ImportantToken
            | AttrToken
            | EOFToken;
        tokens?: Token[];
        typ: BinaryExpressionTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    l loc? op parent? @@ -164,7 +164,7 @@ tokens? typ validSyntax? -

    Properties

    l:
        | ColorToken
        | InvalidClassSelectorToken
        | InvalidAttrToken
        | LiteralToken
        | IdentToken
        | IdentListToken
        | DashedIdentToken
        | CommaToken
        | ColonToken
        | SemiColonToken
        | ClassSelectorToken
        | UniversalSelectorToken
        | ChildCombinatorToken
        | DescendantCombinatorToken
        | NextSiblingCombinatorToken
        | SubsequentCombinatorToken
        | ColumnCombinatorToken
        | NestingSelectorToken
        | MediaQueryConditionToken
        | MediaFeatureToken
        | MediaFeatureNotToken
        | MediaFeatureOnlyToken
        | MediaFeatureAndToken
        | MediaFeatureOrToken
        | AstDeclaration
        | NumberToken
        | AtRuleToken
        | PercentageToken
        | FlexToken
        | FunctionURLToken
        | FunctionImageToken
        | TimingFunctionToken
        | TimelineFunctionToken
        | FunctionToken
        | GridTemplateFuncToken
        | DimensionToken
        | LengthToken
        | AngleToken
        | StringToken
        | TimeToken
        | FrequencyToken
        | ResolutionToken
        | UnclosedStringToken
        | HashToken
        | BadStringToken
        | BlockStartToken
        | BlockEndToken
        | AttrStartToken
        | AttrEndToken
        | ParensStartToken
        | ParensEndToken
        | ParensToken
        | CDOCommentToken
        | BadCDOCommentToken
        | CommentToken
        | BadCommentToken
        | WhitespaceToken
        | IncludeMatchToken
        | StartMatchToken
        | EndMatchToken
        | ContainMatchToken
        | MatchExpressionToken
        | NameSpaceAttributeToken
        | DashMatchToken
        | EqualMatchToken
        | LessThanToken
        | LessThanOrEqualToken
        | GreaterThanToken
        | GreaterThanOrEqualToken
        | ListToken
        | PseudoClassToken
        | PseudoPageToken
        | PseudoElementToken
        | PseudoClassFunctionToken
        | DelimToken
        | BinaryExpressionToken
        | UnaryExpression
        | FractionToken
        | AddToken
        | SubToken
        | DivToken
        | MulToken
        | BadUrlToken
        | UrlToken
        | ImportantToken
        | AttrToken
        | EOFToken
    loc?: Location
    op: Add | Mul | Div | Sub
    parent?: AstRuleList
    r:
        | ColorToken
        | InvalidClassSelectorToken
        | InvalidAttrToken
        | LiteralToken
        | IdentToken
        | IdentListToken
        | DashedIdentToken
        | CommaToken
        | ColonToken
        | SemiColonToken
        | ClassSelectorToken
        | UniversalSelectorToken
        | ChildCombinatorToken
        | DescendantCombinatorToken
        | NextSiblingCombinatorToken
        | SubsequentCombinatorToken
        | ColumnCombinatorToken
        | NestingSelectorToken
        | MediaQueryConditionToken
        | MediaFeatureToken
        | MediaFeatureNotToken
        | MediaFeatureOnlyToken
        | MediaFeatureAndToken
        | MediaFeatureOrToken
        | AstDeclaration
        | NumberToken
        | AtRuleToken
        | PercentageToken
        | FlexToken
        | FunctionURLToken
        | FunctionImageToken
        | TimingFunctionToken
        | TimelineFunctionToken
        | FunctionToken
        | GridTemplateFuncToken
        | DimensionToken
        | LengthToken
        | AngleToken
        | StringToken
        | TimeToken
        | FrequencyToken
        | ResolutionToken
        | UnclosedStringToken
        | HashToken
        | BadStringToken
        | BlockStartToken
        | BlockEndToken
        | AttrStartToken
        | AttrEndToken
        | ParensStartToken
        | ParensEndToken
        | ParensToken
        | CDOCommentToken
        | BadCDOCommentToken
        | CommentToken
        | BadCommentToken
        | WhitespaceToken
        | IncludeMatchToken
        | StartMatchToken
        | EndMatchToken
        | ContainMatchToken
        | MatchExpressionToken
        | NameSpaceAttributeToken
        | DashMatchToken
        | EqualMatchToken
        | LessThanToken
        | LessThanOrEqualToken
        | GreaterThanToken
        | GreaterThanOrEqualToken
        | ListToken
        | PseudoClassToken
        | PseudoPageToken
        | PseudoElementToken
        | PseudoClassFunctionToken
        | DelimToken
        | BinaryExpressionToken
        | UnaryExpression
        | FractionToken
        | AddToken
        | SubToken
        | DivToken
        | MulToken
        | BadUrlToken
        | UrlToken
        | ImportantToken
        | AttrToken
        | EOFToken
    tokens?: Token[]
    validSyntax?: boolean

    Interface BlockEndToken

    interface BlockEndToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: BlockEndTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface BlockEndToken

    interface BlockEndToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: BlockEndTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    validSyntax?: boolean

    Interface BlockStartToken

    interface BlockStartToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: BlockStartTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface BlockStartToken

    interface BlockStartToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: BlockStartTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    validSyntax?: boolean

    Interface Border

    interface Border {
        default: string[];
        keywords: string[];
        pattern: string;
        properties: BorderProperties;
        shorthand: string;
    }
    Index

    Properties

    default +

    Interface Border

    interface Border {
        default: string[];
        keywords: string[];
        pattern: string;
        properties: BorderProperties;
        shorthand: string;
    }
    Index

    Properties

    default: string[]
    keywords: string[]
    pattern: string
    properties: BorderProperties
    shorthand: string

    Interface BorderColor

    interface BorderColor {
        keywords: string[];
        map?: string;
        properties: string[];
        shorthand: string;
        types: string[];
    }
    Index

    Properties

    keywords +

    Interface BorderColor

    interface BorderColor {
        keywords: string[];
        map?: string;
        properties: string[];
        shorthand: string;
        types: string[];
    }
    Index

    Properties

    keywords: string[]
    map?: string
    properties: string[]
    shorthand: string
    types: string[]

    Interface BorderColorClass

    Interface BorderColorClass

    Interface BorderProperties

    interface BorderProperties {
        "border-color": BorderColorClass;
        "border-style": BorderColorClass;
        "border-width": BorderColorClass;
    }
    Index

    Properties

    border-color +

    Interface BorderProperties

    interface BorderProperties {
        "border-color": BorderColorClass;
        "border-style": BorderColorClass;
        "border-width": BorderColorClass;
    }
    Index

    Properties

    "border-color": BorderColorClass
    "border-style": BorderColorClass
    "border-width": BorderColorClass

    Interface BorderRadius

    interface BorderRadius {
        keywords: string[];
        multiple: boolean;
        properties: string[];
        separator: null | string;
        shorthand: string;
        types: string[];
    }
    Index

    Properties

    keywords +

    Interface BorderRadius

    interface BorderRadius {
        keywords: string[];
        multiple: boolean;
        properties: string[];
        separator: null | string;
        shorthand: string;
        types: string[];
    }
    Index

    Properties

    keywords: string[]
    multiple: boolean
    properties: string[]
    separator: null | string
    shorthand: string
    types: string[]

    Interface CDOCommentToken

    interface CDOCommentToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: CDOCOMMTokenType;
        val: string;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface CDOCommentToken

    interface CDOCommentToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: CDOCOMMTokenType;
        val: string;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    val: string
    validSyntax?: boolean

    Interface ChildCombinatorToken

    interface ChildCombinatorToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: ChildCombinatorTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface ChildCombinatorToken

    interface ChildCombinatorToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: ChildCombinatorTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    validSyntax?: boolean

    Interface ClassSelectorToken

    interface ClassSelectorToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: ClassSelectorTokenType;
        val: string;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface ClassSelectorToken

    interface ClassSelectorToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: ClassSelectorTokenType;
        val: string;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    val: string
    validSyntax?: boolean

    Interface ColonToken

    interface ColonToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: ColonTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface ColonToken

    interface ColonToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: ColonTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    validSyntax?: boolean

    Interface ColorToken

    interface ColorToken {
        cal?: "rel" | "mix";
        chi?: Token[];
        kin: ColorType;
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: ColorTokenType;
        val: string;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    cal? +

    Interface ColorToken

    interface ColorToken {
        cal?: "rel" | "mix";
        chi?: Token[];
        kin: ColorType;
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: ColorTokenType;
        val: string;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    cal? chi? kin loc? @@ -165,7 +165,7 @@ typ val validSyntax? -

    Properties

    cal?: "rel" | "mix"
    chi?: Token[]
    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    val: string
    validSyntax?: boolean

    Interface ColumnCombinatorToken

    interface ColumnCombinatorToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: ColumnCombinatorTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface ColumnCombinatorToken

    interface ColumnCombinatorToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: ColumnCombinatorTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    validSyntax?: boolean

    Interface CommaToken

    interface CommaToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: CommaTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface CommaToken

    interface CommaToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: CommaTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    validSyntax?: boolean

    Interface CommentToken

    interface CommentToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: CommentTokenType;
        val: string;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface CommentToken

    interface CommentToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: CommentTokenType;
        val: string;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    val: string
    validSyntax?: boolean

    Interface ConstraintsMapping

    interface ConstraintsMapping {
        max: number;
    }
    Index

    Properties

    max -

    Properties

    max: number

    Interface ConstraintsMapping

    interface ConstraintsMapping {
        max: number;
    }
    Index

    Properties

    max +

    Properties

    max: number

    Interface ContainMatchToken

    interface ContainMatchToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: ContainMatchTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface ContainMatchToken

    interface ContainMatchToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: ContainMatchTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    validSyntax?: boolean

    Interface Context<Type>

    interface Context<Type> {
        index: number;
        length: number;
        clone<Type>(): Context<Type>;
        consume<Type>(token: Type, howMany?: number): boolean;
        consume<Type>(token: Type, howMany?: number): boolean;
        current<Type>(): null | Type;
        done(): boolean;
        next<Type>(): null | Type;
        peek<Type>(): null | Type;
        slice<Type>(): Type[];
        update<Type>(context: Context<Type>): void;
    }

    Type Parameters

    • Type
    Index

    Methods

    clone +

    Interface Context<Type>

    interface Context<Type> {
        index: number;
        length: number;
        clone<Type>(): Context<Type>;
        consume<Type>(token: Type, howMany?: number): boolean;
        consume<Type>(token: Type, howMany?: number): boolean;
        current<Type>(): null | Type;
        done(): boolean;
        next<Type>(): null | Type;
        peek<Type>(): null | Type;
        slice<Type>(): Type[];
        update<Type>(context: Context<Type>): void;
    }

    Type Parameters

    • Type
    Index

    Methods

    clone consume current done @@ -166,8 +166,8 @@ update

    Properties

    Methods

    Properties

    index: number
    length: number

    The length of the context tokens to be consumed

    -

    Interface DashMatchToken

    interface DashMatchToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: DashMatchTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface DashMatchToken

    interface DashMatchToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: DashMatchTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    validSyntax?: boolean

    Interface DashedIdentToken

    interface DashedIdentToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: DashedIdenTokenType;
        val: string;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface DashedIdentToken

    interface DashedIdentToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: DashedIdenTokenType;
        val: string;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    val: string
    validSyntax?: boolean

    Interface DelimToken

    interface DelimToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: DelimTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface DelimToken

    interface DelimToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: DelimTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    validSyntax?: boolean

    Interface DescendantCombinatorToken

    interface DescendantCombinatorToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: DescendantCombinatorTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface DescendantCombinatorToken

    interface DescendantCombinatorToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: DescendantCombinatorTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    validSyntax?: boolean

    Interface DimensionToken

    interface DimensionToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: DimensionTokenType;
        unit: string;
        val: number | FractionToken;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface DimensionToken

    interface DimensionToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: DimensionTokenType;
        unit: string;
        val: number | FractionToken;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    unit: string
    val: number | FractionToken
    validSyntax?: boolean

    Interface DivToken

    interface DivToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: Div;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface DivToken

    interface DivToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: Div;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    typ: Div
    validSyntax?: boolean

    Interface EOFToken

    interface EOFToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: EOFTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface EOFToken

    interface EOFToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: EOFTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    validSyntax?: boolean

    Interface EndMatchToken

    interface EndMatchToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: EndMatchTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface EndMatchToken

    interface EndMatchToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: EndMatchTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    validSyntax?: boolean

    Interface EqualMatchToken

    interface EqualMatchToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: EqualMatchTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface EqualMatchToken

    interface EqualMatchToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: EqualMatchTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    validSyntax?: boolean

    Interface ErrorDescription

    error description

    -
    interface ErrorDescription {
        action: "drop" | "ignore";
        error?: Error;
        location?: Location;
        message: string;
        node?:
            | null
            | ColorToken
            | InvalidClassSelectorToken
            | InvalidAttrToken
            | LiteralToken
            | IdentToken
            | IdentListToken
            | DashedIdentToken
            | CommaToken
            | ColonToken
            | SemiColonToken
            | ClassSelectorToken
            | UniversalSelectorToken
            | ChildCombinatorToken
            | DescendantCombinatorToken
            | NextSiblingCombinatorToken
            | SubsequentCombinatorToken
            | ColumnCombinatorToken
            | NestingSelectorToken
            | MediaQueryConditionToken
            | MediaFeatureToken
            | MediaFeatureNotToken
            | MediaFeatureOnlyToken
            | MediaFeatureAndToken
            | MediaFeatureOrToken
            | AstDeclaration
            | NumberToken
            | AtRuleToken
            | PercentageToken
            | FlexToken
            | FunctionURLToken
            | FunctionImageToken
            | TimingFunctionToken
            | TimelineFunctionToken
            | FunctionToken
            | GridTemplateFuncToken
            | DimensionToken
            | LengthToken
            | AngleToken
            | StringToken
            | TimeToken
            | FrequencyToken
            | ResolutionToken
            | UnclosedStringToken
            | HashToken
            | BadStringToken
            | BlockStartToken
            | BlockEndToken
            | AttrStartToken
            | AttrEndToken
            | ParensStartToken
            | ParensEndToken
            | ParensToken
            | CDOCommentToken
            | BadCDOCommentToken
            | CommentToken
            | BadCommentToken
            | WhitespaceToken
            | IncludeMatchToken
            | StartMatchToken
            | EndMatchToken
            | ContainMatchToken
            | MatchExpressionToken
            | NameSpaceAttributeToken
            | DashMatchToken
            | EqualMatchToken
            | LessThanToken
            | LessThanOrEqualToken
            | GreaterThanToken
            | GreaterThanOrEqualToken
            | ListToken
            | PseudoClassToken
            | PseudoPageToken
            | PseudoElementToken
            | PseudoClassFunctionToken
            | DelimToken
            | BinaryExpressionToken
            | UnaryExpression
            | FractionToken
            | AddToken
            | SubToken
            | DivToken
            | MulToken
            | BadUrlToken
            | UrlToken
            | ImportantToken
            | AttrToken
            | EOFToken
            | AstRuleList
            | AstRuleStyleSheet
            | AstComment
            | AstAtRule
            | AstRule
            | AstKeyframAtRule
            | AstKeyFrameRule
            | AstInvalidRule
            | AstInvalidDeclaration;
        rawTokens?: TokenizeResult[];
        syntax?: null
        | string;
    }
    Index

    Properties

    interface ErrorDescription {
        action: "drop" | "ignore";
        error?: Error;
        location?: Location;
        message: string;
        node?:
            | null
            | ColorToken
            | InvalidClassSelectorToken
            | InvalidAttrToken
            | LiteralToken
            | IdentToken
            | IdentListToken
            | DashedIdentToken
            | CommaToken
            | ColonToken
            | SemiColonToken
            | ClassSelectorToken
            | UniversalSelectorToken
            | ChildCombinatorToken
            | DescendantCombinatorToken
            | NextSiblingCombinatorToken
            | SubsequentCombinatorToken
            | ColumnCombinatorToken
            | NestingSelectorToken
            | MediaQueryConditionToken
            | MediaFeatureToken
            | MediaFeatureNotToken
            | MediaFeatureOnlyToken
            | MediaFeatureAndToken
            | MediaFeatureOrToken
            | AstDeclaration
            | NumberToken
            | AtRuleToken
            | PercentageToken
            | FlexToken
            | FunctionURLToken
            | FunctionImageToken
            | TimingFunctionToken
            | TimelineFunctionToken
            | FunctionToken
            | GridTemplateFuncToken
            | DimensionToken
            | LengthToken
            | AngleToken
            | StringToken
            | TimeToken
            | FrequencyToken
            | ResolutionToken
            | UnclosedStringToken
            | HashToken
            | BadStringToken
            | BlockStartToken
            | BlockEndToken
            | AttrStartToken
            | AttrEndToken
            | ParensStartToken
            | ParensEndToken
            | ParensToken
            | CDOCommentToken
            | BadCDOCommentToken
            | CommentToken
            | BadCommentToken
            | WhitespaceToken
            | IncludeMatchToken
            | StartMatchToken
            | EndMatchToken
            | ContainMatchToken
            | MatchExpressionToken
            | NameSpaceAttributeToken
            | DashMatchToken
            | EqualMatchToken
            | LessThanToken
            | LessThanOrEqualToken
            | GreaterThanToken
            | GreaterThanOrEqualToken
            | ListToken
            | PseudoClassToken
            | PseudoPageToken
            | PseudoElementToken
            | PseudoClassFunctionToken
            | DelimToken
            | BinaryExpressionToken
            | UnaryExpression
            | FractionToken
            | AddToken
            | SubToken
            | DivToken
            | MulToken
            | BadUrlToken
            | UrlToken
            | ImportantToken
            | AttrToken
            | EOFToken
            | AstRuleList
            | AstRuleStyleSheet
            | AstComment
            | AstAtRule
            | AstRule
            | AstKeyframAtRule
            | AstKeyFrameRule
            | AstInvalidRule
            | AstInvalidDeclaration;
        rawTokens?: TokenizeResult[];
        syntax?: null
        | string;
    }
    Index

    Properties

    Properties

    action: "drop" | "ignore"

    drop rule or declaration

    -
    error?: Error

    error object

    -
    location?: Location

    error location

    -
    message: string

    error message

    -
    node?:
        | null
        | ColorToken
        | InvalidClassSelectorToken
        | InvalidAttrToken
        | LiteralToken
        | IdentToken
        | IdentListToken
        | DashedIdentToken
        | CommaToken
        | ColonToken
        | SemiColonToken
        | ClassSelectorToken
        | UniversalSelectorToken
        | ChildCombinatorToken
        | DescendantCombinatorToken
        | NextSiblingCombinatorToken
        | SubsequentCombinatorToken
        | ColumnCombinatorToken
        | NestingSelectorToken
        | MediaQueryConditionToken
        | MediaFeatureToken
        | MediaFeatureNotToken
        | MediaFeatureOnlyToken
        | MediaFeatureAndToken
        | MediaFeatureOrToken
        | AstDeclaration
        | NumberToken
        | AtRuleToken
        | PercentageToken
        | FlexToken
        | FunctionURLToken
        | FunctionImageToken
        | TimingFunctionToken
        | TimelineFunctionToken
        | FunctionToken
        | GridTemplateFuncToken
        | DimensionToken
        | LengthToken
        | AngleToken
        | StringToken
        | TimeToken
        | FrequencyToken
        | ResolutionToken
        | UnclosedStringToken
        | HashToken
        | BadStringToken
        | BlockStartToken
        | BlockEndToken
        | AttrStartToken
        | AttrEndToken
        | ParensStartToken
        | ParensEndToken
        | ParensToken
        | CDOCommentToken
        | BadCDOCommentToken
        | CommentToken
        | BadCommentToken
        | WhitespaceToken
        | IncludeMatchToken
        | StartMatchToken
        | EndMatchToken
        | ContainMatchToken
        | MatchExpressionToken
        | NameSpaceAttributeToken
        | DashMatchToken
        | EqualMatchToken
        | LessThanToken
        | LessThanOrEqualToken
        | GreaterThanToken
        | GreaterThanOrEqualToken
        | ListToken
        | PseudoClassToken
        | PseudoPageToken
        | PseudoElementToken
        | PseudoClassFunctionToken
        | DelimToken
        | BinaryExpressionToken
        | UnaryExpression
        | FractionToken
        | AddToken
        | SubToken
        | DivToken
        | MulToken
        | BadUrlToken
        | UrlToken
        | ImportantToken
        | AttrToken
        | EOFToken
        | AstRuleList
        | AstRuleStyleSheet
        | AstComment
        | AstAtRule
        | AstRule
        | AstKeyframAtRule
        | AstKeyFrameRule
        | AstInvalidRule
        | AstInvalidDeclaration

    error node

    -
    rawTokens?: TokenizeResult[]

    raw tokens

    -
    syntax?: null | string

    syntax error description

    -

    Interface FlexToken

    interface FlexToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: FlexTokenType;
        val: number | FractionToken;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface FlexToken

    interface FlexToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: FlexTokenType;
        val: number | FractionToken;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    val: number | FractionToken
    validSyntax?: boolean

    Interface Font

    interface Font {
        default: any[];
        keywords: string[];
        pattern: string;
        properties: FontProperties;
        shorthand: string;
    }
    Index

    Properties

    default +

    Interface Font

    interface Font {
        default: any[];
        keywords: string[];
        pattern: string;
        properties: FontProperties;
        shorthand: string;
    }
    Index

    Properties

    default: any[]
    keywords: string[]
    pattern: string
    properties: FontProperties
    shorthand: string

    Interface FontFamily

    interface FontFamily {
        default: any[];
        keywords: string[];
        multiple: boolean;
        required: boolean;
        separator: Separator;
        types: string[];
    }
    Index

    Properties

    default +

    Interface FontFamily

    interface FontFamily {
        default: any[];
        keywords: string[];
        multiple: boolean;
        required: boolean;
        separator: Separator;
        types: string[];
    }
    Index

    Properties

    default: any[]
    keywords: string[]
    multiple: boolean
    required: boolean
    separator: Separator
    types: string[]

    Interface FontProperties

    Index

    Properties

    font-family +

    Interface FontProperties

    Index

    Properties

    "font-family": FontFamily
    "font-weight": FontWeight
    "line-height": LineHeight

    Interface FontWeight

    interface FontWeight {
        constraints: FontWeightConstraints;
        default: string[];
        keywords: string[];
        mapping: FontWeightMapping;
        types: string[];
    }
    Index

    Properties

    constraints +

    Interface FontWeight

    interface FontWeight {
        constraints: FontWeightConstraints;
        default: string[];
        keywords: string[];
        mapping: FontWeightMapping;
        types: string[];
    }
    Index

    Properties

    default: string[]
    keywords: string[]
    types: string[]

    Interface FontWeightConstraints

    interface FontWeightConstraints {
        value: Value;
    }
    Index

    Properties

    Properties

    value: Value

    Interface FontWeightConstraints

    interface FontWeightConstraints {
        value: Value;
    }
    Index

    Properties

    Properties

    value: Value

    Interface FontWeightMapping

    interface FontWeightMapping {
        black: string;
        bold: string;
        "demi bold": string;
        "extra black": string;
        "extra bold": string;
        "extra light": string;
        hairline: string;
        heavy: string;
        light: string;
        medium: string;
        normal: string;
        regular: string;
        "semi bold": string;
        thin: string;
        "ultra black": string;
        "ultra bold": string;
        "ultra light": string;
    }
    Index

    Properties

    black +

    Interface FontWeightMapping

    interface FontWeightMapping {
        black: string;
        bold: string;
        "demi bold": string;
        "extra black": string;
        "extra bold": string;
        "extra light": string;
        hairline: string;
        heavy: string;
        light: string;
        medium: string;
        normal: string;
        regular: string;
        "semi bold": string;
        thin: string;
        "ultra black": string;
        "ultra bold": string;
        "ultra light": string;
    }
    Index

    Properties

    black: string
    bold: string
    "demi bold": string
    "extra black": string
    "extra bold": string
    "extra light": string
    hairline: string
    heavy: string
    light: string
    medium: string
    normal: string
    regular: string
    "semi bold": string
    thin: string
    "ultra black": string
    "ultra bold": string
    "ultra light": string

    Interface FractionToken

    interface FractionToken {
        l: NumberToken;
        loc?: Location;
        parent?: AstRuleList;
        r: NumberToken;
        tokens?: Token[];
        typ: FractionTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    l +

    Interface FractionToken

    interface FractionToken {
        l: NumberToken;
        loc?: Location;
        parent?: AstRuleList;
        r: NumberToken;
        tokens?: Token[];
        typ: FractionTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    validSyntax?: boolean

    Interface FrequencyToken

    interface FrequencyToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: FrequencyTokenType;
        unit: "Hz" | "Khz";
        val: number | FractionToken;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface FrequencyToken

    interface FrequencyToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: FrequencyTokenType;
        unit: "Hz" | "Khz";
        val: number | FractionToken;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    unit: "Hz" | "Khz"
    val: number | FractionToken
    validSyntax?: boolean

    Interface FunctionImageToken

    interface FunctionImageToken {
        chi: (CommentToken | UrlToken)[];
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: ImageFunctionTokenType;
        val:
            | "linear-gradient"
            | "radial-gradient"
            | "repeating-linear-gradient"
            | "repeating-radial-gradient"
            | "conic-gradient"
            | "image"
            | "image-set"
            | "element"
            | "cross-fade";
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    chi +

    Interface FunctionImageToken

    interface FunctionImageToken {
        chi: (CommentToken | UrlToken)[];
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: ImageFunctionTokenType;
        val:
            | "linear-gradient"
            | "radial-gradient"
            | "repeating-linear-gradient"
            | "repeating-radial-gradient"
            | "conic-gradient"
            | "image"
            | "image-set"
            | "element"
            | "cross-fade";
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    val:
        | "linear-gradient"
        | "radial-gradient"
        | "repeating-linear-gradient"
        | "repeating-radial-gradient"
        | "conic-gradient"
        | "image"
        | "image-set"
        | "element"
        | "cross-fade"
    validSyntax?: boolean

    Interface FunctionToken

    interface FunctionToken {
        chi: Token[];
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: FunctionTokenType;
        val: string;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    chi +

    Interface FunctionToken

    interface FunctionToken {
        chi: Token[];
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: FunctionTokenType;
        val: string;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    chi: Token[]
    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    val: string
    validSyntax?: boolean

    Interface FunctionURLToken

    interface FunctionURLToken {
        chi: (CommentToken | UrlToken)[];
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: UrlFunctionTokenType;
        val: "url";
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    chi +

    Interface FunctionURLToken

    interface FunctionURLToken {
        chi: (CommentToken | UrlToken)[];
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: UrlFunctionTokenType;
        val: "url";
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    val: "url"
    validSyntax?: boolean

    Interface GreaterThanOrEqualToken

    interface GreaterThanOrEqualToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: GteTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface GreaterThanOrEqualToken

    interface GreaterThanOrEqualToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: GteTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    validSyntax?: boolean

    Interface GreaterThanToken

    interface GreaterThanToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: GtTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface GreaterThanToken

    interface GreaterThanToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: GtTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    validSyntax?: boolean

    Interface GridTemplateFuncToken

    interface GridTemplateFuncToken {
        chi: Token[];
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: GridTemplateFuncTokenType;
        val: string;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    chi +

    Interface GridTemplateFuncToken

    interface GridTemplateFuncToken {
        chi: Token[];
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: GridTemplateFuncTokenType;
        val: string;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    chi: Token[]
    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    val: string
    validSyntax?: boolean

    Interface HashToken

    interface HashToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: HashTokenType;
        val: string;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface HashToken

    interface HashToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: HashTokenType;
        val: string;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    val: string
    validSyntax?: boolean

    Interface IdentListToken

    interface IdentListToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: IdenListTokenType;
        val: string;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface IdentListToken

    interface IdentListToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: IdenListTokenType;
        val: string;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    val: string
    validSyntax?: boolean

    Interface IdentToken

    interface IdentToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: IdenTokenType;
        val: string;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface IdentToken

    interface IdentToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: IdenTokenType;
        val: string;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    val: string
    validSyntax?: boolean

    Interface ImportantToken

    interface ImportantToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: ImportantTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface ImportantToken

    interface ImportantToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: ImportantTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    validSyntax?: boolean

    Interface IncludeMatchToken

    interface IncludeMatchToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: IncludeMatchTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface IncludeMatchToken

    interface IncludeMatchToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: IncludeMatchTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    validSyntax?: boolean

    Interface InvalidAttrToken

    interface InvalidAttrToken {
        chi: Token[];
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: InvalidAttrTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    chi +

    Interface InvalidAttrToken

    interface InvalidAttrToken {
        chi: Token[];
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: InvalidAttrTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    chi: Token[]
    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    validSyntax?: boolean

    Interface InvalidClassSelectorToken

    interface InvalidClassSelectorToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: InvalidClassSelectorTokenType;
        val: string;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface InvalidClassSelectorToken

    interface InvalidClassSelectorToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: InvalidClassSelectorTokenType;
        val: string;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    val: string
    validSyntax?: boolean

    Interface LengthToken

    interface LengthToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: LengthTokenType;
        unit: string;
        val: number | FractionToken;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface LengthToken

    interface LengthToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: LengthTokenType;
        unit: string;
        val: number | FractionToken;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    unit: string
    val: number | FractionToken
    validSyntax?: boolean

    Interface LessThanOrEqualToken

    interface LessThanOrEqualToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: LteTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface LessThanOrEqualToken

    interface LessThanOrEqualToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: LteTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    validSyntax?: boolean

    Interface LessThanToken

    interface LessThanToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: LtTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface LessThanToken

    interface LessThanToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: LtTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    validSyntax?: boolean

    Interface LineHeight

    interface LineHeight {
        default: string[];
        keywords: string[];
        prefix: Prefix;
        previous: string;
        types: string[];
    }
    Index

    Properties

    default +

    Interface LineHeight

    interface LineHeight {
        default: string[];
        keywords: string[];
        prefix: Prefix;
        previous: string;
        types: string[];
    }
    Index

    Properties

    default: string[]
    keywords: string[]
    prefix: Prefix
    previous: string
    types: string[]

    Interface ListToken

    interface ListToken {
        chi: Token[];
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: ListToken;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    chi +

    Interface ListToken

    interface ListToken {
        chi: Token[];
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: ListToken;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    chi: Token[]
    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    validSyntax?: boolean

    Interface LiteralToken

    interface LiteralToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: LiteralTokenType;
        val: string;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface LiteralToken

    interface LiteralToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: LiteralTokenType;
        val: string;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    val: string
    validSyntax?: boolean

    Interface Location

    token or node location

    -
    interface Location {
        end: Position;
        src: string;
        sta: Position;
    }
    Index

    Properties

    end +
    interface Location {
        end: Position;
        src: string;
        sta: Position;
    }
    Index

    Properties

    Properties

    end position

    -
    src: string

    source file

    -

    start position

    -

    Interface Map

    Index

    Properties

    background +

    Interface Map

    Index

    Properties

    background: Background
    "background-attachment": BackgroundPositionClass
    "background-clip": BackgroundPositionClass
    "background-color": BackgroundPositionClass
    "background-image": BackgroundPositionClass
    "background-origin": BackgroundPositionClass
    "background-position": BackgroundPositionClass
    "background-repeat": BackgroundPositionClass
    "background-size": BackgroundPositionClass
    border: Border
    "border-color": BackgroundPositionClass
    "border-style": BackgroundPositionClass
    "border-width": BackgroundPositionClass
    font: Font
    "font-stretch": BackgroundPositionClass
    "font-variant": BackgroundPositionClass
    outline: Outline
    "outline-color": BackgroundPositionClass
    "outline-style": BackgroundPositionClass
    "outline-width": BackgroundPositionClass

    Interface MatchExpressionToken

    interface MatchExpressionToken {
        attr?: "s" | "i";
        l: Token;
        loc?: Location;
        op:
            | IncludeMatchToken
            | StartMatchToken
            | EndMatchToken
            | ContainMatchToken
            | DashMatchToken
            | EqualMatchToken;
        parent?: AstRuleList;
        r: Token;
        tokens?: Token[];
        typ: MatchExpressionTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    attr? +

    Interface MatchExpressionToken

    interface MatchExpressionToken {
        attr?: "s" | "i";
        l: Token;
        loc?: Location;
        op:
            | IncludeMatchToken
            | StartMatchToken
            | EndMatchToken
            | ContainMatchToken
            | DashMatchToken
            | EqualMatchToken;
        parent?: AstRuleList;
        r: Token;
        tokens?: Token[];
        typ: MatchExpressionTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    attr? l loc? op @@ -165,7 +165,7 @@ tokens? typ validSyntax? -

    Properties

    attr?: "s" | "i"
    loc?: Location
    op:
        | IncludeMatchToken
        | StartMatchToken
        | EndMatchToken
        | ContainMatchToken
        | DashMatchToken
        | EqualMatchToken
    parent?: AstRuleList
    tokens?: Token[]
    validSyntax?: boolean

    Interface MatchedSelectorInternal

    matched selector object

    -
    interface MatchedSelector {
        eq: boolean;
        match: string[][];
        selector1: string[][];
        selector2: string[][];
    }
    Index

    Properties

    eq +
    interface MatchedSelector {
        eq: boolean;
        match: string[][];
        selector1: string[][];
        selector2: string[][];
    }
    Index

    Properties

    eq: boolean

    selectors partially match

    -
    match: string[][]

    matched selector

    -
    selector1: string[][]

    selector 1

    -
    selector2: string[][]

    selector 2

    -

    Interface MediaFeatureAndToken

    interface MediaFeatureAndToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: MediaFeatureAndTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface MediaFeatureAndToken

    interface MediaFeatureAndToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: MediaFeatureAndTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    validSyntax?: boolean

    Interface MediaFeatureNotToken

    interface MediaFeatureNotToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: MediaFeatureNotTokenType;
        val: Token;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface MediaFeatureNotToken

    interface MediaFeatureNotToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: MediaFeatureNotTokenType;
        val: Token;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    val: Token
    validSyntax?: boolean

    Interface MediaFeatureOnlyToken

    interface MediaFeatureOnlyToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: MediaFeatureOnlyTokenType;
        val: Token;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface MediaFeatureOnlyToken

    interface MediaFeatureOnlyToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: MediaFeatureOnlyTokenType;
        val: Token;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    val: Token
    validSyntax?: boolean

    Interface MediaFeatureOrToken

    interface MediaFeatureOrToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: MediaFeatureOrTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface MediaFeatureOrToken

    interface MediaFeatureOrToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: MediaFeatureOrTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    validSyntax?: boolean

    Interface MediaFeatureToken

    interface MediaFeatureToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: MediaFeatureTokenType;
        val: string;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface MediaFeatureToken

    interface MediaFeatureToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: MediaFeatureTokenType;
        val: string;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    val: string
    validSyntax?: boolean

    Interface MediaQueryConditionToken

    interface MediaQueryConditionToken {
        l: Token;
        loc?: Location;
        op:
            | ColonToken
            | LessThanToken
            | LessThanOrEqualToken
            | GreaterThanToken
            | GreaterThanOrEqualToken;
        parent?: AstRuleList;
        r: Token[];
        tokens?: Token[];
        typ: MediaQueryConditionTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    l +

    Interface MediaQueryConditionToken

    interface MediaQueryConditionToken {
        l: Token;
        loc?: Location;
        op:
            | ColonToken
            | LessThanToken
            | LessThanOrEqualToken
            | GreaterThanToken
            | GreaterThanOrEqualToken;
        parent?: AstRuleList;
        r: Token[];
        tokens?: Token[];
        typ: MediaQueryConditionTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    l loc? op parent? @@ -164,7 +164,7 @@ tokens? typ validSyntax? -

    Properties

    loc?: Location
    parent?: AstRuleList
    r: Token[]
    tokens?: Token[]
    validSyntax?: boolean

    Interface MinifyFeatureInternal

    minify feature

    -
    interface MinifyFeature {
        ordering: number;
        postProcess: boolean;
        preProcess: boolean;
        register: (options: ParserOptions | MinifyFeatureOptions) => void;
        run: (
            ast: AstAtRule | AstRule,
            options: ParserOptions,
            parent: AstRuleStyleSheet | AstAtRule | AstRule,
            context: { [key: string]: any },
            mode: FeatureWalkMode,
        ) => void;
    }
    Index

    Properties

    interface MinifyFeature {
        ordering: number;
        postProcess: boolean;
        preProcess: boolean;
        register: (options: ParserOptions | MinifyFeatureOptions) => void;
        run: (
            ast: AstAtRule | AstRule,
            options: ParserOptions,
            parent: AstRuleStyleSheet | AstAtRule | AstRule,
            context: { [key: string]: any },
            mode: FeatureWalkMode,
        ) => void;
    }
    Index

    Properties

    ordering: number

    ordering

    -
    postProcess: boolean

    use in post process

    -
    preProcess: boolean

    use in pre process

    -
    register: (options: ParserOptions | MinifyFeatureOptions) => void

    register feature

    -
    run: (
        ast: AstAtRule | AstRule,
        options: ParserOptions,
        parent: AstRuleStyleSheet | AstAtRule | AstRule,
        context: { [key: string]: any },
        mode: FeatureWalkMode,
    ) => void

    run feature

    -

    Interface MinifyFeatureOptionsInternal

    minify feature options

    -
    interface MinifyFeatureOptions {
        features?: MinifyFeature[];
    }

    Hierarchy (View Summary)

    Index

    Properties

    interface MinifyFeatureOptions {
        features?: MinifyFeature[];
    }

    Hierarchy (View Summary)

    Index

    Properties

    Properties

    features?: MinifyFeature[]

    minify features

    -

    Interface MinifyOptions

    minify options

    -
    interface MinifyOptions {
        computeCalcExpression?: boolean;
        computeShorthand?: boolean;
        computeTransform?: boolean;
        expandNestingRules?: boolean;
        inlineCssVariables?: boolean;
        minify?: boolean;
        nestingRules?: boolean;
        parseColor?: boolean;
        pass?: number;
        removeDuplicateDeclarations?: boolean;
        removeEmpty?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    interface MinifyOptions {
        computeCalcExpression?: boolean;
        computeShorthand?: boolean;
        computeTransform?: boolean;
        expandNestingRules?: boolean;
        inlineCssVariables?: boolean;
        minify?: boolean;
        nestingRules?: boolean;
        parseColor?: boolean;
        pass?: number;
        removeDuplicateDeclarations?: boolean;
        removeEmpty?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    computeCalcExpression?: boolean

    compute math functions see supported functions mathFuncs

    -
    computeShorthand?: boolean

    compute shorthand properties

    -
    computeTransform?: boolean

    compute transform functions +

    computeShorthand?: boolean

    compute shorthand properties

    +
    computeTransform?: boolean

    compute transform functions see supported functions transformFunctions

    -
    expandNestingRules?: boolean

    expand nested rules

    -
    inlineCssVariables?: boolean

    inline css variables

    -
    minify?: boolean

    enable minification

    -
    nestingRules?: boolean

    generate nested rules

    -
    parseColor?: boolean

    parse color tokens

    -
    pass?: number

    define minification passes.

    -
    removeDuplicateDeclarations?: boolean

    remove duplicate declarations from the same rule

    -
    removeEmpty?: boolean

    remove empty ast nodes

    -

    Interface MulToken

    interface MulToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: Mul;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface MulToken

    interface MulToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: Mul;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    typ: Mul
    validSyntax?: boolean

    Interface NameSpaceAttributeToken

    interface NameSpaceAttributeToken {
        l?: Token;
        loc?: Location;
        parent?: AstRuleList;
        r: Token;
        tokens?: Token[];
        typ: NameSpaceAttributeTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    l? +

    Interface NameSpaceAttributeToken

    interface NameSpaceAttributeToken {
        l?: Token;
        loc?: Location;
        parent?: AstRuleList;
        r: Token;
        tokens?: Token[];
        typ: NameSpaceAttributeTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    l?: Token
    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    validSyntax?: boolean

    Interface NestingSelectorToken

    interface NestingSelectorToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: NestingSelectorTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface NestingSelectorToken

    interface NestingSelectorToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: NestingSelectorTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    validSyntax?: boolean

    Interface NextSiblingCombinatorToken

    interface NextSiblingCombinatorToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: NextSiblingCombinatorTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface NextSiblingCombinatorToken

    interface NextSiblingCombinatorToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: NextSiblingCombinatorTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    validSyntax?: boolean

    Interface NumberToken

    interface NumberToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: NumberTokenType;
        val: number | FractionToken;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface NumberToken

    interface NumberToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: NumberTokenType;
        val: number | FractionToken;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    val: number | FractionToken
    validSyntax?: boolean

    Interface OptimizedSelector

    interface OptimizedSelector {
        match: boolean;
        optimized: string[];
        reducible: boolean;
        selector: string[][];
    }
    Index

    Properties

    match +

    Interface OptimizedSelector

    interface OptimizedSelector {
        match: boolean;
        optimized: string[];
        reducible: boolean;
        selector: string[][];
    }
    Index

    Properties

    match: boolean
    optimized: string[]
    reducible: boolean
    selector: string[][]

    Interface OptimizedSelectorToken

    interface OptimizedSelectorToken {
        match: boolean;
        optimized: Token[];
        reducible: boolean;
        selector: Token[][];
    }
    Index

    Properties

    match +

    Interface OptimizedSelectorToken

    interface OptimizedSelectorToken {
        match: boolean;
        optimized: Token[];
        reducible: boolean;
        selector: Token[][];
    }
    Index

    Properties

    match: boolean
    optimized: Token[]
    reducible: boolean
    selector: Token[][]

    Interface Outline

    interface Outline {
        default: string[];
        keywords: string[];
        pattern: string;
        properties: OutlineProperties;
        shorthand: string;
    }
    Index

    Properties

    default +

    Interface Outline

    interface Outline {
        default: string[];
        keywords: string[];
        pattern: string;
        properties: OutlineProperties;
        shorthand: string;
    }
    Index

    Properties

    default: string[]
    keywords: string[]
    pattern: string
    properties: OutlineProperties
    shorthand: string

    Interface OutlineProperties

    Index

    Properties

    outline-color +

    Interface OutlineProperties

    Index

    Properties

    Interface ParensEndToken

    interface ParensEndToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: EndParensTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface ParensEndToken

    interface ParensEndToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: EndParensTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    validSyntax?: boolean

    Interface ParensStartToken

    interface ParensStartToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: StartParensTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface ParensStartToken

    interface ParensStartToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: StartParensTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    validSyntax?: boolean

    Interface ParensToken

    interface ParensToken {
        chi: Token[];
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: ParensTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    chi +

    Interface ParensToken

    interface ParensToken {
        chi: Token[];
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: ParensTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    chi: Token[]
    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    validSyntax?: boolean

    Interface ParseInfo

    interface ParseInfo {
        buffer: string;
        currentPosition: Position;
        position: Position;
        stream: string;
    }
    Index

    Properties

    buffer +

    Interface ParseInfo

    interface ParseInfo {
        buffer: string;
        currentPosition: Position;
        position: Position;
        stream: string;
    }
    Index

    Properties

    buffer: string
    currentPosition: Position
    position: Position
    stream: string

    Interface ParseResult

    parse result object

    -
    interface ParseResult {
        ast: AstRuleStyleSheet;
        errors: ErrorDescription[];
        stats: ParseResultStats;
    }

    Hierarchy (View Summary)

    Index

    Properties

    ast +
    interface ParseResult {
        ast: AstRuleStyleSheet;
        errors: ErrorDescription[];
        stats: ParseResultStats;
    }

    Hierarchy (View Summary)

    Index

    Properties

    Properties

    parsed ast tree

    -

    parse errors

    -

    parse stats

    -

    Interface ParseResultStats

    parse result stats object

    -
    interface ParseResultStats {
        bytesIn: number;
        importedBytesIn: number;
        imports: ParseResultStats[];
        minify: string;
        parse: string;
        src: string;
        total: string;
    }
    Index

    Properties

    interface ParseResultStats {
        bytesIn: number;
        importedBytesIn: number;
        imports: ParseResultStats[];
        minify: string;
        parse: string;
        src: string;
        total: string;
    }
    Index

    Properties

    Properties

    bytesIn: number

    bytes read

    -
    importedBytesIn: number

    bytes read from imported files

    -
    imports: ParseResultStats[]

    imported files stats

    -
    minify: string

    minify time

    -
    parse: string

    parse time

    -
    src: string

    source file

    -
    total: string

    total time

    -

    Interface ParseTokenOptions

    parse token options

    -
    interface ParseTokenOptions {
        computeCalcExpression?: boolean;
        computeShorthand?: boolean;
        computeTransform?: boolean;
        expandNestingRules?: boolean;
        features?: MinifyFeature[];
        inlineCssVariables?: boolean;
        lenient?: boolean;
        minify?: boolean;
        nestingRules?: boolean;
        parseColor?: boolean;
        pass?: number;
        removeCharset?: boolean;
        removeDuplicateDeclarations?: boolean;
        removeEmpty?: boolean;
        removePrefix?: boolean;
        resolveImport?: boolean;
        resolveUrls?: boolean;
        setParent?: boolean;
        signal?: AbortSignal;
        sourcemap?: boolean | "inline";
        src?: string;
        validation?: boolean | ValidationLevel;
        visitor?: VisitorNodeMap;
    }

    Hierarchy (View Summary)

    Index

    Properties

    interface ParseTokenOptions {
        computeCalcExpression?: boolean;
        computeShorthand?: boolean;
        computeTransform?: boolean;
        expandNestingRules?: boolean;
        features?: MinifyFeature[];
        inlineCssVariables?: boolean;
        lenient?: boolean;
        minify?: boolean;
        nestingRules?: boolean;
        parseColor?: boolean;
        pass?: number;
        removeCharset?: boolean;
        removeDuplicateDeclarations?: boolean;
        removeEmpty?: boolean;
        removePrefix?: boolean;
        resolveImport?: boolean;
        resolveUrls?: boolean;
        setParent?: boolean;
        signal?: AbortSignal;
        sourcemap?: boolean | "inline";
        src?: string;
        validation?: boolean | ValidationLevel;
        visitor?: VisitorNodeMap;
    }

    Hierarchy (View Summary)

    Index

    Properties

    computeCalcExpression?: boolean

    compute math functions see supported functions mathFuncs

    -
    computeShorthand?: boolean

    compute shorthand properties

    -
    computeTransform?: boolean

    compute transform functions +

    computeShorthand?: boolean

    compute shorthand properties

    +
    computeTransform?: boolean

    compute transform functions see supported functions transformFunctions

    -
    expandNestingRules?: boolean

    expand nested rules

    -
    features?: MinifyFeature[]

    minify features

    -
    inlineCssVariables?: boolean

    inline css variables

    -
    lenient?: boolean

    lenient validation. retain nodes that failed validation

    -
    minify?: boolean

    enable minification

    -
    nestingRules?: boolean

    generate nested rules

    -
    parseColor?: boolean

    parse color tokens

    -
    pass?: number

    define minification passes.

    -
    removeCharset?: boolean

    remove

    +
    expandNestingRules?: boolean

    expand nested rules

    +
    features?: MinifyFeature[]

    minify features

    +
    inlineCssVariables?: boolean

    inline css variables

    +
    lenient?: boolean

    lenient validation. retain nodes that failed validation

    +
    minify?: boolean

    enable minification

    +
    nestingRules?: boolean

    generate nested rules

    +
    parseColor?: boolean

    parse color tokens

    +
    pass?: number

    define minification passes.

    +
    removeCharset?: boolean

    remove

    at-rule

    -
    removeDuplicateDeclarations?: boolean

    remove duplicate declarations from the same rule

    -
    removeEmpty?: boolean

    remove empty ast nodes

    -
    removePrefix?: boolean

    remove css prefix

    -
    resolveImport?: boolean

    resolve import

    -
    resolveUrls?: boolean

    resolve urls

    -
    setParent?: boolean

    set parent node

    -
    signal?: AbortSignal

    abort signal

    +
    removeDuplicateDeclarations?: boolean

    remove duplicate declarations from the same rule

    +
    removeEmpty?: boolean

    remove empty ast nodes

    +
    removePrefix?: boolean

    remove css prefix

    +
    resolveImport?: boolean

    resolve import

    +
    resolveUrls?: boolean

    resolve urls

    +
    setParent?: boolean

    set parent node

    +
    signal?: AbortSignal

    abort signal

    Example: abort after 10 seconds


    const result = await parse(cssString, {
    signal: AbortSignal.timeout(10000)
    });
    -
    sourcemap?: boolean | "inline"

    include sourcemap in the ast. sourcemap info is always generated

    -
    src?: string

    source file to be used for sourcemap

    -
    validation?: boolean | ValidationLevel

    enable css validation

    +
    sourcemap?: boolean | "inline"

    include sourcemap in the ast. sourcemap info is always generated

    +
    src?: string

    source file to be used for sourcemap

    +
    validation?: boolean | ValidationLevel

    enable css validation

    see ValidationLevel

    -
    visitor?: VisitorNodeMap

    node visitor +

    visitor?: VisitorNodeMap

    node visitor VisitorNodeMap

    -

    Interface ParserOptions

    parser options

    -
    interface ParserOptions {
        computeCalcExpression?: boolean;
        computeShorthand?: boolean;
        computeTransform?: boolean;
        expandNestingRules?: boolean;
        features?: MinifyFeature[];
        inlineCssVariables?: boolean;
        lenient?: boolean;
        minify?: boolean;
        nestingRules?: boolean;
        parseColor?: boolean;
        pass?: number;
        removeCharset?: boolean;
        removeDuplicateDeclarations?: boolean;
        removeEmpty?: boolean;
        removePrefix?: boolean;
        resolveImport?: boolean;
        resolveUrls?: boolean;
        setParent?: boolean;
        signal?: AbortSignal;
        sourcemap?: boolean | "inline";
        src?: string;
        validation?: boolean | ValidationLevel;
        visitor?: VisitorNodeMap;
    }

    Hierarchy (View Summary)

    Index

    Properties

    interface ParserOptions {
        computeCalcExpression?: boolean;
        computeShorthand?: boolean;
        computeTransform?: boolean;
        expandNestingRules?: boolean;
        features?: MinifyFeature[];
        inlineCssVariables?: boolean;
        lenient?: boolean;
        minify?: boolean;
        nestingRules?: boolean;
        parseColor?: boolean;
        pass?: number;
        removeCharset?: boolean;
        removeDuplicateDeclarations?: boolean;
        removeEmpty?: boolean;
        removePrefix?: boolean;
        resolveImport?: boolean;
        resolveUrls?: boolean;
        setParent?: boolean;
        signal?: AbortSignal;
        sourcemap?: boolean | "inline";
        src?: string;
        validation?: boolean | ValidationLevel;
        visitor?: VisitorNodeMap;
    }

    Hierarchy (View Summary)

    Index

    Properties

    computeCalcExpression?: boolean

    compute math functions see supported functions mathFuncs

    -
    computeShorthand?: boolean

    compute shorthand properties

    -
    computeTransform?: boolean

    compute transform functions +

    computeShorthand?: boolean

    compute shorthand properties

    +
    computeTransform?: boolean

    compute transform functions see supported functions transformFunctions

    -
    expandNestingRules?: boolean

    expand nested rules

    -
    features?: MinifyFeature[]

    minify features

    -
    inlineCssVariables?: boolean

    inline css variables

    -
    lenient?: boolean

    lenient validation. retain nodes that failed validation

    -
    minify?: boolean

    enable minification

    -
    nestingRules?: boolean

    generate nested rules

    -
    parseColor?: boolean

    parse color tokens

    -
    pass?: number

    define minification passes.

    -
    removeCharset?: boolean

    remove

    +
    expandNestingRules?: boolean

    expand nested rules

    +
    features?: MinifyFeature[]

    minify features

    +
    inlineCssVariables?: boolean

    inline css variables

    +
    lenient?: boolean

    lenient validation. retain nodes that failed validation

    +
    minify?: boolean

    enable minification

    +
    nestingRules?: boolean

    generate nested rules

    +
    parseColor?: boolean

    parse color tokens

    +
    pass?: number

    define minification passes.

    +
    removeCharset?: boolean

    remove

    at-rule

    -
    removeDuplicateDeclarations?: boolean

    remove duplicate declarations from the same rule

    -
    removeEmpty?: boolean

    remove empty ast nodes

    -
    removePrefix?: boolean

    remove css prefix

    -
    resolveImport?: boolean

    resolve import

    -
    resolveUrls?: boolean

    resolve urls

    -
    setParent?: boolean

    set parent node

    -
    signal?: AbortSignal

    abort signal

    +
    removeDuplicateDeclarations?: boolean

    remove duplicate declarations from the same rule

    +
    removeEmpty?: boolean

    remove empty ast nodes

    +
    removePrefix?: boolean

    remove css prefix

    +
    resolveImport?: boolean

    resolve import

    +
    resolveUrls?: boolean

    resolve urls

    +
    setParent?: boolean

    set parent node

    +
    signal?: AbortSignal

    abort signal

    Example: abort after 10 seconds


    const result = await parse(cssString, {
    signal: AbortSignal.timeout(10000)
    });
    -
    sourcemap?: boolean | "inline"

    include sourcemap in the ast. sourcemap info is always generated

    -
    src?: string

    source file to be used for sourcemap

    -
    validation?: boolean | ValidationLevel

    enable css validation

    +
    sourcemap?: boolean | "inline"

    include sourcemap in the ast. sourcemap info is always generated

    +
    src?: string

    source file to be used for sourcemap

    +
    validation?: boolean | ValidationLevel

    enable css validation

    see ValidationLevel

    -
    visitor?: VisitorNodeMap

    node visitor +

    visitor?: VisitorNodeMap

    node visitor VisitorNodeMap

    -

    Interface PercentageToken

    interface PercentageToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: PercentageTokenType;
        val: number | FractionToken;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface PercentageToken

    interface PercentageToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: PercentageTokenType;
        val: number | FractionToken;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    val: number | FractionToken
    validSyntax?: boolean

    Interface Position

    Position

    -
    interface Position {
        col: number;
        ind: number;
        lin: number;
    }
    Index

    Properties

    col +
    interface Position {
        col: number;
        ind: number;
        lin: number;
    }
    Index

    Properties

    Properties

    col: number

    column number

    -
    ind: number

    index in the source

    -
    lin: number

    line number

    -

    Interface Prefix

    interface Prefix {
        typ: string;
        val: string;
    }
    Index

    Properties

    typ +

    Interface Prefix

    interface Prefix {
        typ: string;
        val: string;
    }
    Index

    Properties

    Properties

    typ: string
    val: string

    Interface PropertiesConfig

    interface PropertiesConfig {
        map: Map;
        properties: PropertiesConfigProperties;
    }
    Index

    Properties

    map +

    Interface PropertiesConfig

    interface PropertiesConfig {
        map: Map;
        properties: PropertiesConfigProperties;
    }
    Index

    Properties

    Properties

    map: Map

    Interface PropertiesConfigProperties

    interface PropertiesConfigProperties {
        "border-bottom-color": BackgroundPositionClass;
        "border-bottom-left-radius": BackgroundPositionClass;
        "border-bottom-right-radius": BackgroundPositionClass;
        "border-bottom-style": BackgroundPositionClass;
        "border-bottom-width": BackgroundPositionClass;
        "border-color": BorderColor;
        "border-left-color": BackgroundPositionClass;
        "border-left-style": BackgroundPositionClass;
        "border-left-width": BackgroundPositionClass;
        "border-radius": BorderRadius;
        "border-right-color": BackgroundPositionClass;
        "border-right-style": BackgroundPositionClass;
        "border-right-width": BackgroundPositionClass;
        "border-style": BorderColor;
        "border-top-color": BackgroundPositionClass;
        "border-top-left-radius": BackgroundPositionClass;
        "border-top-right-radius": BackgroundPositionClass;
        "border-top-style": BackgroundPositionClass;
        "border-top-width": BackgroundPositionClass;
        "border-width": BorderColor;
        bottom: BackgroundPositionClass;
        inset: BorderRadius;
        left: BackgroundPositionClass;
        margin: BorderRadius;
        "margin-bottom": BackgroundPositionClass;
        "margin-left": BackgroundPositionClass;
        "margin-right": BackgroundPositionClass;
        "margin-top": BackgroundPositionClass;
        padding: BorderColor;
        "padding-bottom": BackgroundPositionClass;
        "padding-left": BackgroundPositionClass;
        "padding-right": BackgroundPositionClass;
        "padding-top": BackgroundPositionClass;
        right: BackgroundPositionClass;
        top: BackgroundPositionClass;
    }
    Index

    Properties

    border-bottom-color +

    Interface PropertiesConfigProperties

    interface PropertiesConfigProperties {
        "border-bottom-color": BackgroundPositionClass;
        "border-bottom-left-radius": BackgroundPositionClass;
        "border-bottom-right-radius": BackgroundPositionClass;
        "border-bottom-style": BackgroundPositionClass;
        "border-bottom-width": BackgroundPositionClass;
        "border-color": BorderColor;
        "border-left-color": BackgroundPositionClass;
        "border-left-style": BackgroundPositionClass;
        "border-left-width": BackgroundPositionClass;
        "border-radius": BorderRadius;
        "border-right-color": BackgroundPositionClass;
        "border-right-style": BackgroundPositionClass;
        "border-right-width": BackgroundPositionClass;
        "border-style": BorderColor;
        "border-top-color": BackgroundPositionClass;
        "border-top-left-radius": BackgroundPositionClass;
        "border-top-right-radius": BackgroundPositionClass;
        "border-top-style": BackgroundPositionClass;
        "border-top-width": BackgroundPositionClass;
        "border-width": BorderColor;
        bottom: BackgroundPositionClass;
        inset: BorderRadius;
        left: BackgroundPositionClass;
        margin: BorderRadius;
        "margin-bottom": BackgroundPositionClass;
        "margin-left": BackgroundPositionClass;
        "margin-right": BackgroundPositionClass;
        "margin-top": BackgroundPositionClass;
        padding: BorderColor;
        "padding-bottom": BackgroundPositionClass;
        "padding-left": BackgroundPositionClass;
        "padding-right": BackgroundPositionClass;
        "padding-top": BackgroundPositionClass;
        right: BackgroundPositionClass;
        top: BackgroundPositionClass;
    }
    Index

    Properties

    "border-bottom-color": BackgroundPositionClass
    "border-bottom-left-radius": BackgroundPositionClass
    "border-bottom-right-radius": BackgroundPositionClass
    "border-bottom-style": BackgroundPositionClass
    "border-bottom-width": BackgroundPositionClass
    "border-color": BorderColor
    "border-left-color": BackgroundPositionClass
    "border-left-style": BackgroundPositionClass
    "border-left-width": BackgroundPositionClass
    "border-radius": BorderRadius
    "border-right-color": BackgroundPositionClass
    "border-right-style": BackgroundPositionClass
    "border-right-width": BackgroundPositionClass
    "border-style": BorderColor
    "border-top-color": BackgroundPositionClass
    "border-top-left-radius": BackgroundPositionClass
    "border-top-right-radius": BackgroundPositionClass
    "border-top-style": BackgroundPositionClass
    "border-top-width": BackgroundPositionClass
    "border-width": BorderColor
    margin: BorderRadius
    "margin-bottom": BackgroundPositionClass
    "margin-right": BackgroundPositionClass
    padding: BorderColor
    "padding-bottom": BackgroundPositionClass
    "padding-left": BackgroundPositionClass
    "padding-right": BackgroundPositionClass

    Interface PropertyListOptions

    interface PropertyListOptions {
        computeShorthand?: boolean;
        removeDuplicateDeclarations?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    computeShorthand? +

    Interface PropertyListOptions

    interface PropertyListOptions {
        computeShorthand?: boolean;
        removeDuplicateDeclarations?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    computeShorthand?: boolean
    removeDuplicateDeclarations?: boolean

    Interface PropertyMapType

    interface PropertyMapType {
        constraints?: { [key: string]: { [key: string]: any } };
        default: string[];
        keywords: string[];
        mapping?: Record<string, string>;
        multiple?: boolean;
        prefix?: {
            typ:
                | "toString"
                | "toLocaleString"
                | "toFixed"
                | "toExponential"
                | "toPrecision"
                | "valueOf";
            val: string;
        };
        previous?: string;
        required?: boolean;
        separator?: {
            typ: | "toString"
            | "toLocaleString"
            | "toFixed"
            | "toExponential"
            | "toPrecision"
            | "valueOf";
        };
        types: string[];
    }
    Index

    Properties

    constraints? +

    Interface PropertyMapType

    interface PropertyMapType {
        constraints?: { [key: string]: { [key: string]: any } };
        default: string[];
        keywords: string[];
        mapping?: Record<string, string>;
        multiple?: boolean;
        prefix?: {
            typ:
                | "toString"
                | "toLocaleString"
                | "toFixed"
                | "toExponential"
                | "toPrecision"
                | "valueOf";
            val: string;
        };
        previous?: string;
        required?: boolean;
        separator?: {
            typ: | "toString"
            | "toLocaleString"
            | "toFixed"
            | "toExponential"
            | "toPrecision"
            | "valueOf";
        };
        types: string[];
    }
    Index

    Properties

    constraints?: { [key: string]: { [key: string]: any } }
    default: string[]
    keywords: string[]
    mapping?: Record<string, string>
    multiple?: boolean
    prefix?: {
        typ:
            | "toString"
            | "toLocaleString"
            | "toFixed"
            | "toExponential"
            | "toPrecision"
            | "valueOf";
        val: string;
    }
    previous?: string
    required?: boolean
    separator?: {
        typ:
            | "toString"
            | "toLocaleString"
            | "toFixed"
            | "toExponential"
            | "toPrecision"
            | "valueOf";
    }
    types: string[]

    Interface PropertySetType

    Indexable

    Interface PropertySetType

    Indexable

    Interface PropertyType

    interface PropertyType {
        shorthand: string;
    }
    Index

    Properties

    Properties

    shorthand: string

    Interface PropertyType

    interface PropertyType {
        shorthand: string;
    }
    Index

    Properties

    Properties

    shorthand: string

    Interface PseudoClassFunctionToken

    interface PseudoClassFunctionToken {
        chi: Token[];
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: PseudoClassFuncTokenType;
        val: string;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    chi +

    Interface PseudoClassFunctionToken

    interface PseudoClassFunctionToken {
        chi: Token[];
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: PseudoClassFuncTokenType;
        val: string;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    chi: Token[]
    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    val: string
    validSyntax?: boolean

    Interface PseudoClassToken

    interface PseudoClassToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: PseudoClassTokenType;
        val: string;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface PseudoClassToken

    interface PseudoClassToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: PseudoClassTokenType;
        val: string;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    val: string
    validSyntax?: boolean

    Interface PseudoElementToken

    interface PseudoElementToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: PseudoElementTokenType;
        val: string;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface PseudoElementToken

    interface PseudoElementToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: PseudoElementTokenType;
        val: string;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    val: string
    validSyntax?: boolean

    Interface PseudoPageToken

    interface PseudoPageToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: PseudoPageTokenType;
        val: string;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface PseudoPageToken

    interface PseudoPageToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: PseudoPageTokenType;
        val: string;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    val: string
    validSyntax?: boolean

    Interface PurpleBackgroundAttachment

    interface PurpleBackgroundAttachment {
        default: string[];
        keywords: string[];
        mapping?: BackgroundAttachmentMapping;
        required?: boolean;
        types: string[];
    }
    Index

    Properties

    default +

    Interface PurpleBackgroundAttachment

    interface PurpleBackgroundAttachment {
        default: string[];
        keywords: string[];
        mapping?: BackgroundAttachmentMapping;
        required?: boolean;
        types: string[];
    }
    Index

    Properties

    default: string[]
    keywords: string[]
    required?: boolean
    types: string[]

    Interface RenderOptions

    ast node render options

    -
    interface RenderOptions {
        beautify?: boolean;
        convertColor?: boolean | ColorType;
        cwd?: string;
        expandNestingRules?: boolean;
        indent?: string;
        minify?: boolean;
        newLine?: string;
        output?: string;
        preserveLicense?: boolean;
        removeComments?: boolean;
        removeEmpty?: boolean;
        resolve?: (
            url: string,
            currentUrl: string,
            currentWorkingDirectory?: string,
        ) => ResolvedPath;
        sourcemap?: boolean | "inline";
        withParents?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    interface RenderOptions {
        beautify?: boolean;
        convertColor?: boolean | ColorType;
        cwd?: string;
        expandNestingRules?: boolean;
        indent?: string;
        minify?: boolean;
        newLine?: string;
        output?: string;
        preserveLicense?: boolean;
        removeComments?: boolean;
        removeEmpty?: boolean;
        resolve?: (
            url: string,
            currentUrl: string,
            currentWorkingDirectory?: string,
        ) => ResolvedPath;
        sourcemap?: boolean | "inline";
        withParents?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    beautify?: boolean

    pretty print css

    -
    convertColor?: boolean | ColorType

    convert color to the specified color space. 'true' will convert to HEX

    -
    cwd?: string

    current working directory

    -
    expandNestingRules?: boolean

    expand nesting rules

    -
    indent?: string

    indent string

    -
    minify?: boolean

    minify ast node.

    -
    newLine?: string

    new line string

    -
    output?: string

    output file. used for url resolution

    -
    preserveLicense?: boolean

    preserve license comments. license comments are comments that start with /*!

    -
    removeComments?: boolean

    remove comments

    -
    removeEmpty?: boolean

    remove empty rule lists from the ast

    -
    resolve?: (
        url: string,
        currentUrl: string,
        currentWorkingDirectory?: string,
    ) => ResolvedPath

    resolve path

    -
    sourcemap?: boolean | "inline"

    generate sourcemap object. 'inline' will embed it in the css

    -
    withParents?: boolean

    ernder the node along with its parents

    -

    Interface RenderResult

    render result object

    -
    interface RenderResult {
        code: string;
        errors: ErrorDescription[];
        map?: SourceMap;
        stats: { total: string };
    }

    Hierarchy (View Summary)

    Index

    Properties

    interface RenderResult {
        code: string;
        errors: ErrorDescription[];
        map?: SourceMap;
        stats: { total: string };
    }

    Hierarchy (View Summary)

    Index

    Properties

    Properties

    code: string

    rendered css

    -

    render errors

    -
    map?: SourceMap

    source map

    -
    stats: { total: string }

    render stats

    +

    render errors

    +
    map?: SourceMap

    source map

    +
    stats: { total: string }

    render stats

    Type declaration

    • total: string

      render time

      -

    Interface ResolutionToken

    interface ResolutionToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: ResolutionTokenType;
        unit: "x" | "dpi" | "dpcm" | "dppx";
        val: number | FractionToken;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface ResolutionToken

    interface ResolutionToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: ResolutionTokenType;
        unit: "x" | "dpi" | "dpcm" | "dppx";
        val: number | FractionToken;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    unit: "x" | "dpi" | "dpcm" | "dppx"
    val: number | FractionToken
    validSyntax?: boolean

    Interface ResolvedPathInternal

    resolved path

    -
    interface ResolvedPath {
        absolute: string;
        relative: string;
    }
    Index

    Properties

    interface ResolvedPath {
        absolute: string;
        relative: string;
    }
    Index

    Properties

    Properties

    absolute: string

    absolute path

    -
    relative: string

    relative path

    -

    Interface SemiColonToken

    interface SemiColonToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: SemiColonTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface SemiColonToken

    interface SemiColonToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: SemiColonTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    validSyntax?: boolean

    Interface Separator

    interface Separator {
        typ: string;
    }
    Index

    Properties

    typ -

    Properties

    typ: string

    Interface Separator

    interface Separator {
        typ: string;
    }
    Index

    Properties

    typ +

    Properties

    typ: string

    Interface ShorthandDef

    interface ShorthandDef {
        defaults: string[];
        keywords: string;
        multiple?: boolean;
        pattern: string;
        separator?: string;
        shorthand: string;
    }
    Index

    Properties

    defaults +

    Interface ShorthandDef

    interface ShorthandDef {
        defaults: string[];
        keywords: string;
        multiple?: boolean;
        pattern: string;
        separator?: string;
        shorthand: string;
    }
    Index

    Properties

    defaults: string[]
    keywords: string
    multiple?: boolean
    pattern: string
    separator?: string
    shorthand: string

    Interface ShorthandMapType

    interface ShorthandMapType {
        default: string[];
        keywords: string[];
        mapping?: Record<string, string>;
        multiple?: boolean;
        pattern: string;
        properties: { [property: string]: PropertyMapType };
        separator?: {
            typ:
                | "toString"
                | "toLocaleString"
                | "toFixed"
                | "toExponential"
                | "toPrecision"
                | "valueOf";
            val?: string;
        };
        set?: Record<string, string[]>;
        shorthand: string;
    }
    Index

    Properties

    default +

    Interface ShorthandMapType

    interface ShorthandMapType {
        default: string[];
        keywords: string[];
        mapping?: Record<string, string>;
        multiple?: boolean;
        pattern: string;
        properties: { [property: string]: PropertyMapType };
        separator?: {
            typ:
                | "toString"
                | "toLocaleString"
                | "toFixed"
                | "toExponential"
                | "toPrecision"
                | "valueOf";
            val?: string;
        };
        set?: Record<string, string[]>;
        shorthand: string;
    }
    Index

    Properties

    Properties

    default: string[]
    keywords: string[]
    mapping?: Record<string, string>
    multiple?: boolean
    pattern: string
    properties: { [property: string]: PropertyMapType }
    separator?: {
        typ:
            | "toString"
            | "toLocaleString"
            | "toFixed"
            | "toExponential"
            | "toPrecision"
            | "valueOf";
        val?: string;
    }
    set?: Record<string, string[]>
    shorthand: string

    Interface ShorthandProperties

    interface ShorthandProperties {
        constraints?: any[];
        default: string[];
        keywords: string[];
        mapping?: { [key: string]: any };
        multiple?: boolean;
        prefix?: string;
        required?: boolean;
        types: EnumToken[];
        validation?: { [key: string]: any };
    }
    Index

    Properties

    constraints? +

    Interface ShorthandProperties

    interface ShorthandProperties {
        constraints?: any[];
        default: string[];
        keywords: string[];
        mapping?: { [key: string]: any };
        multiple?: boolean;
        prefix?: string;
        required?: boolean;
        types: EnumToken[];
        validation?: { [key: string]: any };
    }
    Index

    Properties

    constraints?: any[]
    default: string[]
    keywords: string[]
    mapping?: { [key: string]: any }
    multiple?: boolean
    prefix?: string
    required?: boolean
    types: EnumToken[]
    validation?: { [key: string]: any }

    Interface ShorthandPropertyType

    interface ShorthandPropertyType {
        keywords: string[];
        map?: string;
        multiple: boolean;
        properties: string[];
        separator: {
            typ:
                | "toString"
                | "toLocaleString"
                | "toFixed"
                | "toExponential"
                | "toPrecision"
                | "valueOf";
            val: string;
        };
        shorthand: string;
        types: string[];
    }
    Index

    Properties

    keywords +

    Interface ShorthandPropertyType

    interface ShorthandPropertyType {
        keywords: string[];
        map?: string;
        multiple: boolean;
        properties: string[];
        separator: {
            typ:
                | "toString"
                | "toLocaleString"
                | "toFixed"
                | "toExponential"
                | "toPrecision"
                | "valueOf";
            val: string;
        };
        shorthand: string;
        types: string[];
    }
    Index

    Properties

    keywords: string[]
    map?: string
    multiple: boolean
    properties: string[]
    separator: {
        typ:
            | "toString"
            | "toLocaleString"
            | "toFixed"
            | "toExponential"
            | "toPrecision"
            | "valueOf";
        val: string;
    }
    shorthand: string
    types: string[]

    Interface ShorthandType

    interface ShorthandType {
        properties: ShorthandProperties;
        shorthand: string;
    }
    Index

    Properties

    properties +

    Interface ShorthandType

    interface ShorthandType {
        properties: ShorthandProperties;
        shorthand: string;
    }
    Index

    Properties

    Properties

    shorthand: string

    Interface SourceMapObjectInternal

    source map object

    -
    interface SourceMapObject {
        file?: string;
        mappings: string;
        names?: string[];
        sourceRoot?: string;
        sources?: string[];
        sourcesContent?: (null | string)[];
        version: number;
    }
    Index

    Properties

    interface SourceMapObject {
        file?: string;
        mappings: string;
        names?: string[];
        sourceRoot?: string;
        sources?: string[];
        sourcesContent?: (null | string)[];
        version: number;
    }
    Index

    Properties

    file?: string
    mappings: string
    names?: string[]
    sourceRoot?: string
    sources?: string[]
    sourcesContent?: (null | string)[]
    version: number

    Interface StartMatchToken

    interface StartMatchToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: StartMatchTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface StartMatchToken

    interface StartMatchToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: StartMatchTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    validSyntax?: boolean

    Interface StringToken

    interface StringToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: StringTokenType;
        val: string;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface StringToken

    interface StringToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: StringTokenType;
        val: string;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    val: string
    validSyntax?: boolean

    Interface SubToken

    interface SubToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: Sub;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface SubToken

    interface SubToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: Sub;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    typ: Sub
    validSyntax?: boolean

    Interface SubsequentCombinatorToken

    interface SubsequentCombinatorToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: SubsequentSiblingCombinatorTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface SubsequentCombinatorToken

    interface SubsequentCombinatorToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: SubsequentSiblingCombinatorTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    validSyntax?: boolean

    Interface TimeToken

    interface TimeToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: TimeTokenType;
        unit: "s" | "ms";
        val: number | FractionToken;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface TimeToken

    interface TimeToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: TimeTokenType;
        unit: "s" | "ms";
        val: number | FractionToken;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    unit: "s" | "ms"
    val: number | FractionToken
    validSyntax?: boolean

    Interface TimelineFunctionToken

    interface TimelineFunctionToken {
        chi: Token[];
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: TimelineFunctionTokenType;
        val: string;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    chi +

    Interface TimelineFunctionToken

    interface TimelineFunctionToken {
        chi: Token[];
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: TimelineFunctionTokenType;
        val: string;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    chi: Token[]
    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    val: string
    validSyntax?: boolean

    Interface TimingFunctionToken

    interface TimingFunctionToken {
        chi: Token[];
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: TimingFunctionTokenType;
        val: string;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    chi +

    Interface TimingFunctionToken

    interface TimingFunctionToken {
        chi: Token[];
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: TimingFunctionTokenType;
        val: string;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    chi: Token[]
    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    val: string
    validSyntax?: boolean

    Interface TokenizeResultInternal

    tokenize result object

    -
    interface TokenizeResult {
        bytesIn: number;
        end: Position;
        hint?: EnumToken;
        len: number;
        sta: Position;
        token: string;
    }
    Index

    Properties

    interface TokenizeResult {
        bytesIn: number;
        end: Position;
        hint?: EnumToken;
        len: number;
        sta: Position;
        token: string;
    }
    Index

    Properties

    bytesIn: number

    bytes in

    -

    token end position

    -
    hint?: EnumToken

    token type hint

    -
    len: number

    token length

    -

    token start position

    -
    token: string

    token

    -

    Interface TransformOptions

    transform options

    -
    interface TransformOptions {
        beautify?: boolean;
        computeCalcExpression?: boolean;
        computeShorthand?: boolean;
        computeTransform?: boolean;
        convertColor?: boolean | ColorType;
        expandNestingRules?: boolean;
        features?: MinifyFeature[];
        indent?: string;
        inlineCssVariables?: boolean;
        lenient?: boolean;
        minify?: boolean;
        nestingRules?: boolean;
        newLine?: string;
        output?: string;
        parseColor?: boolean;
        pass?: number;
        preserveLicense?: boolean;
        removeCharset?: boolean;
        removeComments?: boolean;
        removeDuplicateDeclarations?: boolean;
        removeEmpty?: boolean;
        removePrefix?: boolean;
        resolveImport?: boolean;
        resolveUrls?: boolean;
        setParent?: boolean;
        signal?: AbortSignal;
        sourcemap?: boolean | "inline";
        src?: string;
        validation?: boolean | ValidationLevel;
        visitor?: VisitorNodeMap;
        withParents?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    interface TransformOptions {
        beautify?: boolean;
        computeCalcExpression?: boolean;
        computeShorthand?: boolean;
        computeTransform?: boolean;
        convertColor?: boolean | ColorType;
        expandNestingRules?: boolean;
        features?: MinifyFeature[];
        indent?: string;
        inlineCssVariables?: boolean;
        lenient?: boolean;
        minify?: boolean;
        nestingRules?: boolean;
        newLine?: string;
        output?: string;
        parseColor?: boolean;
        pass?: number;
        preserveLicense?: boolean;
        removeCharset?: boolean;
        removeComments?: boolean;
        removeDuplicateDeclarations?: boolean;
        removeEmpty?: boolean;
        removePrefix?: boolean;
        resolveImport?: boolean;
        resolveUrls?: boolean;
        setParent?: boolean;
        signal?: AbortSignal;
        sourcemap?: boolean | "inline";
        src?: string;
        validation?: boolean | ValidationLevel;
        visitor?: VisitorNodeMap;
        withParents?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    beautify?: boolean

    pretty print css

    -
    computeCalcExpression?: boolean

    compute math functions +

    computeCalcExpression?: boolean

    compute math functions see supported functions mathFuncs

    -
    computeShorthand?: boolean

    compute shorthand properties

    -
    computeTransform?: boolean

    compute transform functions +

    computeShorthand?: boolean

    compute shorthand properties

    +
    computeTransform?: boolean

    compute transform functions see supported functions transformFunctions

    -
    convertColor?: boolean | ColorType

    convert color to the specified color space. 'true' will convert to HEX

    -
    expandNestingRules?: boolean

    expand nested rules

    -
    features?: MinifyFeature[]

    minify features

    -
    indent?: string

    indent string

    -
    inlineCssVariables?: boolean

    inline css variables

    -
    lenient?: boolean

    lenient validation. retain nodes that failed validation

    -
    minify?: boolean

    enable minification

    -
    nestingRules?: boolean

    generate nested rules

    -
    newLine?: string

    new line string

    -
    output?: string

    output file. used for url resolution

    -
    parseColor?: boolean

    parse color tokens

    -
    pass?: number

    define minification passes.

    -
    preserveLicense?: boolean

    preserve license comments. license comments are comments that start with /*!

    -
    removeCharset?: boolean

    remove

    +
    convertColor?: boolean | ColorType

    convert color to the specified color space. 'true' will convert to HEX

    +
    expandNestingRules?: boolean

    expand nested rules

    +
    features?: MinifyFeature[]

    minify features

    +
    indent?: string

    indent string

    +
    inlineCssVariables?: boolean

    inline css variables

    +
    lenient?: boolean

    lenient validation. retain nodes that failed validation

    +
    minify?: boolean

    enable minification

    +
    nestingRules?: boolean

    generate nested rules

    +
    newLine?: string

    new line string

    +
    output?: string

    output file. used for url resolution

    +
    parseColor?: boolean

    parse color tokens

    +
    pass?: number

    define minification passes.

    +
    preserveLicense?: boolean

    preserve license comments. license comments are comments that start with /*!

    +
    removeCharset?: boolean

    remove

    at-rule

    -
    removeComments?: boolean

    remove comments

    -
    removeDuplicateDeclarations?: boolean

    remove duplicate declarations from the same rule

    -
    removeEmpty?: boolean

    remove empty ast nodes

    -
    removePrefix?: boolean

    remove css prefix

    -
    resolveImport?: boolean

    resolve import

    -
    resolveUrls?: boolean

    resolve urls

    -
    setParent?: boolean

    set parent node

    -
    signal?: AbortSignal

    abort signal

    +
    removeComments?: boolean

    remove comments

    +
    removeDuplicateDeclarations?: boolean

    remove duplicate declarations from the same rule

    +
    removeEmpty?: boolean

    remove empty ast nodes

    +
    removePrefix?: boolean

    remove css prefix

    +
    resolveImport?: boolean

    resolve import

    +
    resolveUrls?: boolean

    resolve urls

    +
    setParent?: boolean

    set parent node

    +
    signal?: AbortSignal

    abort signal

    Example: abort after 10 seconds


    const result = await parse(cssString, {
    signal: AbortSignal.timeout(10000)
    });
    -
    sourcemap?: boolean | "inline"

    include sourcemap in the ast. sourcemap info is always generated

    -
    src?: string

    source file to be used for sourcemap

    -
    validation?: boolean | ValidationLevel

    enable css validation

    +
    sourcemap?: boolean | "inline"

    include sourcemap in the ast. sourcemap info is always generated

    +
    src?: string

    source file to be used for sourcemap

    +
    validation?: boolean | ValidationLevel

    enable css validation

    see ValidationLevel

    -
    visitor?: VisitorNodeMap

    node visitor +

    visitor?: VisitorNodeMap

    node visitor VisitorNodeMap

    -
    withParents?: boolean

    ernder the node along with its parents

    -

    Interface TransformResult

    transform result object

    -
    interface TransformResult {
        ast: AstRuleStyleSheet;
        code: string;
        errors: ErrorDescription[];
        map?: SourceMap;
        stats: {
            bytesIn: number;
            bytesOut: number;
            importedBytesIn: number;
            imports: ParseResultStats[];
            minify: string;
            parse: string;
            render: string;
            src: string;
            total: string;
        };
    }

    Hierarchy (View Summary)

    Index

    Properties

    ast +
    interface TransformResult {
        ast: AstRuleStyleSheet;
        code: string;
        errors: ErrorDescription[];
        map?: SourceMap;
        stats: {
            bytesIn: number;
            bytesOut: number;
            importedBytesIn: number;
            imports: ParseResultStats[];
            minify: string;
            parse: string;
            render: string;
            src: string;
            total: string;
        };
    }

    Hierarchy (View Summary)

    Index

    Properties

    Properties

    parsed ast tree

    -
    code: string

    rendered css

    -

    parse errors

    -
    map?: SourceMap

    source map

    -
    stats: {
        bytesIn: number;
        bytesOut: number;
        importedBytesIn: number;
        imports: ParseResultStats[];
        minify: string;
        parse: string;
        render: string;
        src: string;
        total: string;
    }

    transform stats

    +
    code: string

    rendered css

    +

    parse errors

    +
    map?: SourceMap

    source map

    +
    stats: {
        bytesIn: number;
        bytesOut: number;
        importedBytesIn: number;
        imports: ParseResultStats[];
        minify: string;
        parse: string;
        render: string;
        src: string;
        total: string;
    }

    transform stats

    Type declaration

    • bytesIn: number

      bytes read

    • bytesOut: number

      generated css size

    • importedBytesIn: number

      bytes read from imported files

      @@ -176,7 +176,7 @@
    • render: string

      render time

    • src: string

      source file

    • total: string

      total time

      -

    Interface UnaryExpression

    interface UnaryExpression {
        loc?: Location;
        parent?: AstRuleList;
        sign: Add | Sub;
        tokens?: Token[];
        typ: UnaryExpressionTokenType;
        val: UnaryExpressionNode;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface UnaryExpression

    interface UnaryExpression {
        loc?: Location;
        parent?: AstRuleList;
        sign: Add | Sub;
        tokens?: Token[];
        typ: UnaryExpressionTokenType;
        val: UnaryExpressionNode;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    sign: Add | Sub
    tokens?: Token[]
    validSyntax?: boolean

    Interface UnclosedStringToken

    interface UnclosedStringToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: UnclosedStringTokenType;
        val: string;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface UnclosedStringToken

    interface UnclosedStringToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: UnclosedStringTokenType;
        val: string;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    val: string
    validSyntax?: boolean

    Interface UniversalSelectorToken

    interface UniversalSelectorToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: UniversalSelectorTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface UniversalSelectorToken

    interface UniversalSelectorToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: UniversalSelectorTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    validSyntax?: boolean

    Interface UrlToken

    interface UrlToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: UrlTokenTokenType;
        val: string;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface UrlToken

    interface UrlToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: UrlTokenTokenType;
        val: string;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    val: string
    validSyntax?: boolean

    Interface ValidationConfiguration

    Index

    Properties

    atRules +

    Interface ValidationConfiguration

    Index

    Properties

    declarations: ValidationSyntaxNode

    Interface ValidationOptions

    css validation options

    -
    interface ValidationOptions {
        lenient?: boolean;
        validation?: boolean | ValidationLevel;
    }

    Hierarchy (View Summary)

    Index

    Properties

    interface ValidationOptions {
        lenient?: boolean;
        validation?: boolean | ValidationLevel;
    }

    Hierarchy (View Summary)

    Index

    Properties

    lenient?: boolean

    lenient validation. retain nodes that failed validation

    -
    validation?: boolean | ValidationLevel

    enable css validation

    +
    validation?: boolean | ValidationLevel

    enable css validation

    see ValidationLevel

    -

    Interface ValidationResult

    interface ValidationResult {
        cycle?: boolean;
        error: string;
        node:
            | null
            | ColorToken
            | InvalidClassSelectorToken
            | InvalidAttrToken
            | LiteralToken
            | IdentToken
            | IdentListToken
            | DashedIdentToken
            | CommaToken
            | ColonToken
            | SemiColonToken
            | ClassSelectorToken
            | UniversalSelectorToken
            | ChildCombinatorToken
            | DescendantCombinatorToken
            | NextSiblingCombinatorToken
            | SubsequentCombinatorToken
            | ColumnCombinatorToken
            | NestingSelectorToken
            | MediaQueryConditionToken
            | MediaFeatureToken
            | MediaFeatureNotToken
            | MediaFeatureOnlyToken
            | MediaFeatureAndToken
            | MediaFeatureOrToken
            | AstDeclaration
            | NumberToken
            | AtRuleToken
            | PercentageToken
            | FlexToken
            | FunctionURLToken
            | FunctionImageToken
            | TimingFunctionToken
            | TimelineFunctionToken
            | FunctionToken
            | GridTemplateFuncToken
            | DimensionToken
            | LengthToken
            | AngleToken
            | StringToken
            | TimeToken
            | FrequencyToken
            | ResolutionToken
            | UnclosedStringToken
            | HashToken
            | BadStringToken
            | BlockStartToken
            | BlockEndToken
            | AttrStartToken
            | AttrEndToken
            | ParensStartToken
            | ParensEndToken
            | ParensToken
            | CDOCommentToken
            | BadCDOCommentToken
            | CommentToken
            | BadCommentToken
            | WhitespaceToken
            | IncludeMatchToken
            | StartMatchToken
            | EndMatchToken
            | ContainMatchToken
            | MatchExpressionToken
            | NameSpaceAttributeToken
            | DashMatchToken
            | EqualMatchToken
            | LessThanToken
            | LessThanOrEqualToken
            | GreaterThanToken
            | GreaterThanOrEqualToken
            | ListToken
            | PseudoClassToken
            | PseudoPageToken
            | PseudoElementToken
            | PseudoClassFunctionToken
            | DelimToken
            | BinaryExpressionToken
            | UnaryExpression
            | FractionToken
            | AddToken
            | SubToken
            | DivToken
            | MulToken
            | BadUrlToken
            | UrlToken
            | ImportantToken
            | AttrToken
            | EOFToken
            | AstRuleList
            | AstRuleStyleSheet
            | AstComment
            | AstAtRule
            | AstRule
            | AstKeyframAtRule
            | AstKeyFrameRule
            | AstInvalidRule
            | AstInvalidDeclaration;
        syntax: null
        | string
        | ValidationToken;
        valid: SyntaxValidationResult;
    }

    Hierarchy (View Summary)

    Index

    Properties

    cycle? +

    Interface ValidationResult

    interface ValidationResult {
        cycle?: boolean;
        error: string;
        node:
            | null
            | ColorToken
            | InvalidClassSelectorToken
            | InvalidAttrToken
            | LiteralToken
            | IdentToken
            | IdentListToken
            | DashedIdentToken
            | CommaToken
            | ColonToken
            | SemiColonToken
            | ClassSelectorToken
            | UniversalSelectorToken
            | ChildCombinatorToken
            | DescendantCombinatorToken
            | NextSiblingCombinatorToken
            | SubsequentCombinatorToken
            | ColumnCombinatorToken
            | NestingSelectorToken
            | MediaQueryConditionToken
            | MediaFeatureToken
            | MediaFeatureNotToken
            | MediaFeatureOnlyToken
            | MediaFeatureAndToken
            | MediaFeatureOrToken
            | AstDeclaration
            | NumberToken
            | AtRuleToken
            | PercentageToken
            | FlexToken
            | FunctionURLToken
            | FunctionImageToken
            | TimingFunctionToken
            | TimelineFunctionToken
            | FunctionToken
            | GridTemplateFuncToken
            | DimensionToken
            | LengthToken
            | AngleToken
            | StringToken
            | TimeToken
            | FrequencyToken
            | ResolutionToken
            | UnclosedStringToken
            | HashToken
            | BadStringToken
            | BlockStartToken
            | BlockEndToken
            | AttrStartToken
            | AttrEndToken
            | ParensStartToken
            | ParensEndToken
            | ParensToken
            | CDOCommentToken
            | BadCDOCommentToken
            | CommentToken
            | BadCommentToken
            | WhitespaceToken
            | IncludeMatchToken
            | StartMatchToken
            | EndMatchToken
            | ContainMatchToken
            | MatchExpressionToken
            | NameSpaceAttributeToken
            | DashMatchToken
            | EqualMatchToken
            | LessThanToken
            | LessThanOrEqualToken
            | GreaterThanToken
            | GreaterThanOrEqualToken
            | ListToken
            | PseudoClassToken
            | PseudoPageToken
            | PseudoElementToken
            | PseudoClassFunctionToken
            | DelimToken
            | BinaryExpressionToken
            | UnaryExpression
            | FractionToken
            | AddToken
            | SubToken
            | DivToken
            | MulToken
            | BadUrlToken
            | UrlToken
            | ImportantToken
            | AttrToken
            | EOFToken
            | AstRuleList
            | AstRuleStyleSheet
            | AstComment
            | AstAtRule
            | AstRule
            | AstKeyframAtRule
            | AstKeyFrameRule
            | AstInvalidRule
            | AstInvalidDeclaration;
        syntax: null
        | string
        | ValidationToken;
        valid: SyntaxValidationResult;
    }

    Hierarchy (View Summary)

    Index

    Properties

    cycle?: boolean
    error: string
    node:
        | null
        | ColorToken
        | InvalidClassSelectorToken
        | InvalidAttrToken
        | LiteralToken
        | IdentToken
        | IdentListToken
        | DashedIdentToken
        | CommaToken
        | ColonToken
        | SemiColonToken
        | ClassSelectorToken
        | UniversalSelectorToken
        | ChildCombinatorToken
        | DescendantCombinatorToken
        | NextSiblingCombinatorToken
        | SubsequentCombinatorToken
        | ColumnCombinatorToken
        | NestingSelectorToken
        | MediaQueryConditionToken
        | MediaFeatureToken
        | MediaFeatureNotToken
        | MediaFeatureOnlyToken
        | MediaFeatureAndToken
        | MediaFeatureOrToken
        | AstDeclaration
        | NumberToken
        | AtRuleToken
        | PercentageToken
        | FlexToken
        | FunctionURLToken
        | FunctionImageToken
        | TimingFunctionToken
        | TimelineFunctionToken
        | FunctionToken
        | GridTemplateFuncToken
        | DimensionToken
        | LengthToken
        | AngleToken
        | StringToken
        | TimeToken
        | FrequencyToken
        | ResolutionToken
        | UnclosedStringToken
        | HashToken
        | BadStringToken
        | BlockStartToken
        | BlockEndToken
        | AttrStartToken
        | AttrEndToken
        | ParensStartToken
        | ParensEndToken
        | ParensToken
        | CDOCommentToken
        | BadCDOCommentToken
        | CommentToken
        | BadCommentToken
        | WhitespaceToken
        | IncludeMatchToken
        | StartMatchToken
        | EndMatchToken
        | ContainMatchToken
        | MatchExpressionToken
        | NameSpaceAttributeToken
        | DashMatchToken
        | EqualMatchToken
        | LessThanToken
        | LessThanOrEqualToken
        | GreaterThanToken
        | GreaterThanOrEqualToken
        | ListToken
        | PseudoClassToken
        | PseudoPageToken
        | PseudoElementToken
        | PseudoClassFunctionToken
        | DelimToken
        | BinaryExpressionToken
        | UnaryExpression
        | FractionToken
        | AddToken
        | SubToken
        | DivToken
        | MulToken
        | BadUrlToken
        | UrlToken
        | ImportantToken
        | AttrToken
        | EOFToken
        | AstRuleList
        | AstRuleStyleSheet
        | AstComment
        | AstAtRule
        | AstRule
        | AstKeyframAtRule
        | AstKeyFrameRule
        | AstInvalidRule
        | AstInvalidDeclaration
    syntax: null | string | ValidationToken
    valid: SyntaxValidationResult

    Interface ValidationSelectorOptions

    css validation options

    -
    interface ValidationSelectorOptions {
        lenient?: boolean;
        nestedSelector?: boolean;
        validation?: boolean | ValidationLevel;
    }

    Hierarchy (View Summary)

    Index

    Properties

    interface ValidationSelectorOptions {
        lenient?: boolean;
        nestedSelector?: boolean;
        validation?: boolean | ValidationLevel;
    }

    Hierarchy (View Summary)

    Index

    Properties

    lenient?: boolean

    lenient validation. retain nodes that failed validation

    -
    nestedSelector?: boolean
    validation?: boolean | ValidationLevel

    enable css validation

    +
    nestedSelector?: boolean
    validation?: boolean | ValidationLevel

    enable css validation

    see ValidationLevel

    -

    Interface ValidationSyntaxNode

    interface ValidationSyntaxNode {
        ast?: ValidationToken[];
        syntax: string;
    }
    Index

    Properties

    ast? +

    Interface ValidationSyntaxNode

    interface ValidationSyntaxNode {
        ast?: ValidationToken[];
        syntax: string;
    }
    Index

    Properties

    Properties

    ast?: ValidationToken[]
    syntax: string

    Interface ValidationSyntaxResult

    interface ValidationSyntaxResult {
        context: Token[] | Context<Token>;
        cycle?: boolean;
        error: string;
        node:
            | null
            | ColorToken
            | InvalidClassSelectorToken
            | InvalidAttrToken
            | LiteralToken
            | IdentToken
            | IdentListToken
            | DashedIdentToken
            | CommaToken
            | ColonToken
            | SemiColonToken
            | ClassSelectorToken
            | UniversalSelectorToken
            | ChildCombinatorToken
            | DescendantCombinatorToken
            | NextSiblingCombinatorToken
            | SubsequentCombinatorToken
            | ColumnCombinatorToken
            | NestingSelectorToken
            | MediaQueryConditionToken
            | MediaFeatureToken
            | MediaFeatureNotToken
            | MediaFeatureOnlyToken
            | MediaFeatureAndToken
            | MediaFeatureOrToken
            | AstDeclaration
            | NumberToken
            | AtRuleToken
            | PercentageToken
            | FlexToken
            | FunctionURLToken
            | FunctionImageToken
            | TimingFunctionToken
            | TimelineFunctionToken
            | FunctionToken
            | GridTemplateFuncToken
            | DimensionToken
            | LengthToken
            | AngleToken
            | StringToken
            | TimeToken
            | FrequencyToken
            | ResolutionToken
            | UnclosedStringToken
            | HashToken
            | BadStringToken
            | BlockStartToken
            | BlockEndToken
            | AttrStartToken
            | AttrEndToken
            | ParensStartToken
            | ParensEndToken
            | ParensToken
            | CDOCommentToken
            | BadCDOCommentToken
            | CommentToken
            | BadCommentToken
            | WhitespaceToken
            | IncludeMatchToken
            | StartMatchToken
            | EndMatchToken
            | ContainMatchToken
            | MatchExpressionToken
            | NameSpaceAttributeToken
            | DashMatchToken
            | EqualMatchToken
            | LessThanToken
            | LessThanOrEqualToken
            | GreaterThanToken
            | GreaterThanOrEqualToken
            | ListToken
            | PseudoClassToken
            | PseudoPageToken
            | PseudoElementToken
            | PseudoClassFunctionToken
            | DelimToken
            | BinaryExpressionToken
            | UnaryExpression
            | FractionToken
            | AddToken
            | SubToken
            | DivToken
            | MulToken
            | BadUrlToken
            | UrlToken
            | ImportantToken
            | AttrToken
            | EOFToken
            | AstRuleList
            | AstRuleStyleSheet
            | AstComment
            | AstAtRule
            | AstRule
            | AstKeyframAtRule
            | AstKeyFrameRule
            | AstInvalidRule
            | AstInvalidDeclaration;
        syntax: null
        | string
        | ValidationToken;
        valid: SyntaxValidationResult;
    }

    Hierarchy (View Summary)

    Index

    Properties

    context +

    Interface ValidationSyntaxResult

    interface ValidationSyntaxResult {
        context: Token[] | Context<Token>;
        cycle?: boolean;
        error: string;
        node:
            | null
            | ColorToken
            | InvalidClassSelectorToken
            | InvalidAttrToken
            | LiteralToken
            | IdentToken
            | IdentListToken
            | DashedIdentToken
            | CommaToken
            | ColonToken
            | SemiColonToken
            | ClassSelectorToken
            | UniversalSelectorToken
            | ChildCombinatorToken
            | DescendantCombinatorToken
            | NextSiblingCombinatorToken
            | SubsequentCombinatorToken
            | ColumnCombinatorToken
            | NestingSelectorToken
            | MediaQueryConditionToken
            | MediaFeatureToken
            | MediaFeatureNotToken
            | MediaFeatureOnlyToken
            | MediaFeatureAndToken
            | MediaFeatureOrToken
            | AstDeclaration
            | NumberToken
            | AtRuleToken
            | PercentageToken
            | FlexToken
            | FunctionURLToken
            | FunctionImageToken
            | TimingFunctionToken
            | TimelineFunctionToken
            | FunctionToken
            | GridTemplateFuncToken
            | DimensionToken
            | LengthToken
            | AngleToken
            | StringToken
            | TimeToken
            | FrequencyToken
            | ResolutionToken
            | UnclosedStringToken
            | HashToken
            | BadStringToken
            | BlockStartToken
            | BlockEndToken
            | AttrStartToken
            | AttrEndToken
            | ParensStartToken
            | ParensEndToken
            | ParensToken
            | CDOCommentToken
            | BadCDOCommentToken
            | CommentToken
            | BadCommentToken
            | WhitespaceToken
            | IncludeMatchToken
            | StartMatchToken
            | EndMatchToken
            | ContainMatchToken
            | MatchExpressionToken
            | NameSpaceAttributeToken
            | DashMatchToken
            | EqualMatchToken
            | LessThanToken
            | LessThanOrEqualToken
            | GreaterThanToken
            | GreaterThanOrEqualToken
            | ListToken
            | PseudoClassToken
            | PseudoPageToken
            | PseudoElementToken
            | PseudoClassFunctionToken
            | DelimToken
            | BinaryExpressionToken
            | UnaryExpression
            | FractionToken
            | AddToken
            | SubToken
            | DivToken
            | MulToken
            | BadUrlToken
            | UrlToken
            | ImportantToken
            | AttrToken
            | EOFToken
            | AstRuleList
            | AstRuleStyleSheet
            | AstComment
            | AstAtRule
            | AstRule
            | AstKeyframAtRule
            | AstKeyFrameRule
            | AstInvalidRule
            | AstInvalidDeclaration;
        syntax: null
        | string
        | ValidationToken;
        valid: SyntaxValidationResult;
    }

    Hierarchy (View Summary)

    Index

    Properties

    context: Token[] | Context<Token>
    cycle?: boolean
    error: string
    node:
        | null
        | ColorToken
        | InvalidClassSelectorToken
        | InvalidAttrToken
        | LiteralToken
        | IdentToken
        | IdentListToken
        | DashedIdentToken
        | CommaToken
        | ColonToken
        | SemiColonToken
        | ClassSelectorToken
        | UniversalSelectorToken
        | ChildCombinatorToken
        | DescendantCombinatorToken
        | NextSiblingCombinatorToken
        | SubsequentCombinatorToken
        | ColumnCombinatorToken
        | NestingSelectorToken
        | MediaQueryConditionToken
        | MediaFeatureToken
        | MediaFeatureNotToken
        | MediaFeatureOnlyToken
        | MediaFeatureAndToken
        | MediaFeatureOrToken
        | AstDeclaration
        | NumberToken
        | AtRuleToken
        | PercentageToken
        | FlexToken
        | FunctionURLToken
        | FunctionImageToken
        | TimingFunctionToken
        | TimelineFunctionToken
        | FunctionToken
        | GridTemplateFuncToken
        | DimensionToken
        | LengthToken
        | AngleToken
        | StringToken
        | TimeToken
        | FrequencyToken
        | ResolutionToken
        | UnclosedStringToken
        | HashToken
        | BadStringToken
        | BlockStartToken
        | BlockEndToken
        | AttrStartToken
        | AttrEndToken
        | ParensStartToken
        | ParensEndToken
        | ParensToken
        | CDOCommentToken
        | BadCDOCommentToken
        | CommentToken
        | BadCommentToken
        | WhitespaceToken
        | IncludeMatchToken
        | StartMatchToken
        | EndMatchToken
        | ContainMatchToken
        | MatchExpressionToken
        | NameSpaceAttributeToken
        | DashMatchToken
        | EqualMatchToken
        | LessThanToken
        | LessThanOrEqualToken
        | GreaterThanToken
        | GreaterThanOrEqualToken
        | ListToken
        | PseudoClassToken
        | PseudoPageToken
        | PseudoElementToken
        | PseudoClassFunctionToken
        | DelimToken
        | BinaryExpressionToken
        | UnaryExpression
        | FractionToken
        | AddToken
        | SubToken
        | DivToken
        | MulToken
        | BadUrlToken
        | UrlToken
        | ImportantToken
        | AttrToken
        | EOFToken
        | AstRuleList
        | AstRuleStyleSheet
        | AstComment
        | AstAtRule
        | AstRule
        | AstKeyframAtRule
        | AstKeyFrameRule
        | AstInvalidRule
        | AstInvalidDeclaration
    syntax: null | string | ValidationToken
    valid: SyntaxValidationResult

    Interface Value

    interface Value {
        max: string;
        min: string;
    }
    Index

    Properties

    max +

    Interface Value

    interface Value {
        max: string;
        min: string;
    }
    Index

    Properties

    Properties

    max: string
    min: string

    Interface VariableScopeInfoInternal

    variable scope info object

    -
    interface VariableScopeInfo {
        declarationCount: number;
        globalScope: boolean;
        node: AstDeclaration;
        parent: Set<AstAtRule | AstRule>;
        replaceable: boolean;
        values: Token[];
    }
    Index

    Properties

    interface VariableScopeInfo {
        declarationCount: number;
        globalScope: boolean;
        node: AstDeclaration;
        parent: Set<AstAtRule | AstRule>;
        replaceable: boolean;
        values: Token[];
    }
    Index

    Properties

    declarationCount: number

    declaration count

    -
    globalScope: boolean

    global scope

    -

    declaration node

    -
    parent: Set<AstAtRule | AstRule>

    parent nodes

    -
    replaceable: boolean

    replaceable

    -
    values: Token[]

    declaration values

    -

    Interface VisitorNodeMap

    node visitor callback map

    -
    interface VisitorNodeMap {
        AtRule?: AtRuleVisitorHandler | Record<string, AtRuleVisitorHandler>;
        Declaration?:
            | DeclarationVisitorHandler
            | Record<string, DeclarationVisitorHandler>;
        Rule?: RuleVisitorHandler;
    }
    Index

    Properties

    interface VisitorNodeMap {
        AtRule?: AtRuleVisitorHandler | Record<string, AtRuleVisitorHandler>;
        Declaration?:
            | DeclarationVisitorHandler
            | Record<string, DeclarationVisitorHandler>;
        Rule?: RuleVisitorHandler;
    }
    Index

    Properties

    AtRule?: AtRuleVisitorHandler | Record<string, AtRuleVisitorHandler>

    at rule visitor

    @@ -165,7 +165,7 @@

    import {transform, AstAtRule, ParserOptions} from "@tbela99/css-parser";

    const options: ParserOptions = {

    visitor: {

    AtRule: {

    media: (node: AstAtRule): AstAtRule => {

    node.val = 'tv,screen';
    return node
    }
    }
    }
    };

    const css = `

    @media screen {

    .foo {

    height: calc(100px * 2/ 15);
    }
    }
    `;

    const result = await transform(css, options);

    console.debug(result.code);

    // @media tv,screen{.foo{height:calc(40px/3)}}
    -
    Declaration?:
        | DeclarationVisitorHandler
        | Record<string, DeclarationVisitorHandler>

    declaration visitor

    +
    Declaration?:
        | DeclarationVisitorHandler
        | Record<string, DeclarationVisitorHandler>

    declaration visitor

    Example: add 'width: 3px' everytime a declaration with the name 'height' is found


    import {transform, parseDeclarations} from "@tbela99/css-parser";

    const options: ParserOptions = {

    removeEmpty: false,
    visitor: {

    Declaration: {

    // called only for height declaration
    height: (node: AstDeclaration): AstDeclaration[] => {


    return [
    node,
    {

    typ: EnumToken.DeclarationNodeType,
    nam: 'width',
    val: [
    <LengthToken>{
    typ: EnumToken.LengthTokenType,
    val: 3,
    unit: 'px'
    }
    ]
    }
    ];
    }
    }
    }
    };

    const css = `

    .foo {
    height: calc(100px * 2/ 15);
    }
    .selector {
    color: lch(from peru calc(l * 0.8) calc(c * 0.7) calc(h + 180))
    }
    `;

    console.debug(await transform(css, options));

    // .foo{height:calc(40px/3);width:3px}.selector{color:#0880b0}
    @@ -174,12 +174,12 @@
    import {AstDeclaration, ParserOptions, transform} from "../src/node.ts";

    const options: ParserOptions = {

    visitor: {

    // called for every declaration
    Declaration: (node: AstDeclaration): null => {


    if (node.nam == 'height') {

    node.nam = 'width';
    }

    else if (node.nam == 'margin') {

    node.nam = 'padding'
    }

    return null;
    }
    }
    };

    const css = `

    .foo {
    height: calc(100px * 2/ 15);
    margin: 10px;
    }
    .selector {

    margin: 20px;}
    `;

    const result = await transform(css, options);

    console.debug(result.code);

    // .foo{width:calc(40px/3);padding:10px}.selector{padding:20px}
    -

    rule visitor

    +

    rule visitor

    Example: add 'width: 3px' to every rule with the selector '.foo'


    import {transform, parseDeclarations} from "@tbela99/css-parser";

    const options: ParserOptions = {

    removeEmpty: false,
    visitor: {

    Rule: async (node: AstRule): Promise<AstRule | null> => {

    if (node.sel == '.foo') {

    node.chi.push(...await parseDeclarations('width: 3px'));
    return node;
    }

    return null;
    }
    }
    };

    const css = `

    .foo {
    .foo {
    }
    }
    `;

    console.debug(await transform(css, options));

    // .foo{width:3px;.foo{width:3px}}
    -

    Interface WalkAttributesResult

    interface WalkAttributesResult {
        list: null | Token[];
        nextValue: null | Token;
        parent:
            | null
            | ColorToken
            | InvalidClassSelectorToken
            | InvalidAttrToken
            | LiteralToken
            | IdentToken
            | IdentListToken
            | DashedIdentToken
            | CommaToken
            | ColonToken
            | SemiColonToken
            | ClassSelectorToken
            | UniversalSelectorToken
            | ChildCombinatorToken
            | DescendantCombinatorToken
            | NextSiblingCombinatorToken
            | SubsequentCombinatorToken
            | ColumnCombinatorToken
            | NestingSelectorToken
            | MediaQueryConditionToken
            | MediaFeatureToken
            | MediaFeatureNotToken
            | MediaFeatureOnlyToken
            | MediaFeatureAndToken
            | MediaFeatureOrToken
            | AstDeclaration
            | NumberToken
            | AtRuleToken
            | PercentageToken
            | FlexToken
            | FunctionURLToken
            | FunctionImageToken
            | TimingFunctionToken
            | TimelineFunctionToken
            | FunctionToken
            | GridTemplateFuncToken
            | DimensionToken
            | LengthToken
            | AngleToken
            | StringToken
            | TimeToken
            | FrequencyToken
            | ResolutionToken
            | UnclosedStringToken
            | HashToken
            | BadStringToken
            | BlockStartToken
            | BlockEndToken
            | AttrStartToken
            | AttrEndToken
            | ParensStartToken
            | ParensEndToken
            | ParensToken
            | CDOCommentToken
            | BadCDOCommentToken
            | CommentToken
            | BadCommentToken
            | WhitespaceToken
            | IncludeMatchToken
            | StartMatchToken
            | EndMatchToken
            | ContainMatchToken
            | MatchExpressionToken
            | NameSpaceAttributeToken
            | DashMatchToken
            | EqualMatchToken
            | LessThanToken
            | LessThanOrEqualToken
            | GreaterThanToken
            | GreaterThanOrEqualToken
            | ListToken
            | PseudoClassToken
            | PseudoPageToken
            | PseudoElementToken
            | PseudoClassFunctionToken
            | DelimToken
            | BinaryExpressionToken
            | UnaryExpression
            | FractionToken
            | AddToken
            | SubToken
            | DivToken
            | MulToken
            | BadUrlToken
            | UrlToken
            | ImportantToken
            | AttrToken
            | EOFToken
            | AstRuleList
            | AstRuleStyleSheet
            | AstComment
            | AstAtRule
            | AstRule
            | AstKeyframAtRule
            | AstKeyFrameRule
            | AstInvalidRule
            | AstInvalidDeclaration;
        previousValue: null
        | Token;
        root?: AstNode;
        value: Token;
    }
    Index

    Properties

    list +

    Interface WalkAttributesResult

    interface WalkAttributesResult {
        list: null | Token[];
        nextValue: null | Token;
        parent:
            | null
            | ColorToken
            | InvalidClassSelectorToken
            | InvalidAttrToken
            | LiteralToken
            | IdentToken
            | IdentListToken
            | DashedIdentToken
            | CommaToken
            | ColonToken
            | SemiColonToken
            | ClassSelectorToken
            | UniversalSelectorToken
            | ChildCombinatorToken
            | DescendantCombinatorToken
            | NextSiblingCombinatorToken
            | SubsequentCombinatorToken
            | ColumnCombinatorToken
            | NestingSelectorToken
            | MediaQueryConditionToken
            | MediaFeatureToken
            | MediaFeatureNotToken
            | MediaFeatureOnlyToken
            | MediaFeatureAndToken
            | MediaFeatureOrToken
            | AstDeclaration
            | NumberToken
            | AtRuleToken
            | PercentageToken
            | FlexToken
            | FunctionURLToken
            | FunctionImageToken
            | TimingFunctionToken
            | TimelineFunctionToken
            | FunctionToken
            | GridTemplateFuncToken
            | DimensionToken
            | LengthToken
            | AngleToken
            | StringToken
            | TimeToken
            | FrequencyToken
            | ResolutionToken
            | UnclosedStringToken
            | HashToken
            | BadStringToken
            | BlockStartToken
            | BlockEndToken
            | AttrStartToken
            | AttrEndToken
            | ParensStartToken
            | ParensEndToken
            | ParensToken
            | CDOCommentToken
            | BadCDOCommentToken
            | CommentToken
            | BadCommentToken
            | WhitespaceToken
            | IncludeMatchToken
            | StartMatchToken
            | EndMatchToken
            | ContainMatchToken
            | MatchExpressionToken
            | NameSpaceAttributeToken
            | DashMatchToken
            | EqualMatchToken
            | LessThanToken
            | LessThanOrEqualToken
            | GreaterThanToken
            | GreaterThanOrEqualToken
            | ListToken
            | PseudoClassToken
            | PseudoPageToken
            | PseudoElementToken
            | PseudoClassFunctionToken
            | DelimToken
            | BinaryExpressionToken
            | UnaryExpression
            | FractionToken
            | AddToken
            | SubToken
            | DivToken
            | MulToken
            | BadUrlToken
            | UrlToken
            | ImportantToken
            | AttrToken
            | EOFToken
            | AstRuleList
            | AstRuleStyleSheet
            | AstComment
            | AstAtRule
            | AstRule
            | AstKeyframAtRule
            | AstKeyFrameRule
            | AstInvalidRule
            | AstInvalidDeclaration;
        previousValue: null
        | Token;
        root?: AstNode;
        value: Token;
    }
    Index

    Properties

    list: null | Token[]
    nextValue: null | Token
    parent:
        | null
        | ColorToken
        | InvalidClassSelectorToken
        | InvalidAttrToken
        | LiteralToken
        | IdentToken
        | IdentListToken
        | DashedIdentToken
        | CommaToken
        | ColonToken
        | SemiColonToken
        | ClassSelectorToken
        | UniversalSelectorToken
        | ChildCombinatorToken
        | DescendantCombinatorToken
        | NextSiblingCombinatorToken
        | SubsequentCombinatorToken
        | ColumnCombinatorToken
        | NestingSelectorToken
        | MediaQueryConditionToken
        | MediaFeatureToken
        | MediaFeatureNotToken
        | MediaFeatureOnlyToken
        | MediaFeatureAndToken
        | MediaFeatureOrToken
        | AstDeclaration
        | NumberToken
        | AtRuleToken
        | PercentageToken
        | FlexToken
        | FunctionURLToken
        | FunctionImageToken
        | TimingFunctionToken
        | TimelineFunctionToken
        | FunctionToken
        | GridTemplateFuncToken
        | DimensionToken
        | LengthToken
        | AngleToken
        | StringToken
        | TimeToken
        | FrequencyToken
        | ResolutionToken
        | UnclosedStringToken
        | HashToken
        | BadStringToken
        | BlockStartToken
        | BlockEndToken
        | AttrStartToken
        | AttrEndToken
        | ParensStartToken
        | ParensEndToken
        | ParensToken
        | CDOCommentToken
        | BadCDOCommentToken
        | CommentToken
        | BadCommentToken
        | WhitespaceToken
        | IncludeMatchToken
        | StartMatchToken
        | EndMatchToken
        | ContainMatchToken
        | MatchExpressionToken
        | NameSpaceAttributeToken
        | DashMatchToken
        | EqualMatchToken
        | LessThanToken
        | LessThanOrEqualToken
        | GreaterThanToken
        | GreaterThanOrEqualToken
        | ListToken
        | PseudoClassToken
        | PseudoPageToken
        | PseudoElementToken
        | PseudoClassFunctionToken
        | DelimToken
        | BinaryExpressionToken
        | UnaryExpression
        | FractionToken
        | AddToken
        | SubToken
        | DivToken
        | MulToken
        | BadUrlToken
        | UrlToken
        | ImportantToken
        | AttrToken
        | EOFToken
        | AstRuleList
        | AstRuleStyleSheet
        | AstComment
        | AstAtRule
        | AstRule
        | AstKeyframAtRule
        | AstKeyFrameRule
        | AstInvalidRule
        | AstInvalidDeclaration
    previousValue: null | Token
    root?: AstNode
    value: Token

    Interface WalkResult

    interface WalkResult {
        node: AstNode;
        parent?: AstRuleList;
        root?: AstNode;
    }
    Index

    Properties

    node +

    Interface WalkResult

    interface WalkResult {
        node: AstNode;
        parent?: AstRuleList;
        root?: AstNode;
    }
    Index

    Properties

    Properties

    node: AstNode
    parent?: AstRuleList
    root?: AstNode

    Interface WhitespaceToken

    interface WhitespaceToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: WhitespaceTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc? +

    Interface WhitespaceToken

    interface WhitespaceToken {
        loc?: Location;
        parent?: AstRuleList;
        tokens?: Token[];
        typ: WhitespaceTokenType;
        validSyntax?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    loc?: Location
    parent?: AstRuleList
    tokens?: Token[]
    validSyntax?: boolean
    \n```" + "text": "```html\n\n\n```" }, { "kind": "text", @@ -53671,7 +53682,7 @@ }, { "kind": "code", - "text": "```html\n\n\n```" + "text": "```html\n\n\n```" }, { "kind": "text", diff --git a/docs/types/node.AstNode.html b/docs/types/node.AstNode.html index 6d18d2ce..0db48136 100644 --- a/docs/types/node.AstNode.html +++ b/docs/types/node.AstNode.html @@ -156,7 +156,7 @@ --md-sys-color-surface-container-high: #efe7de; --md-sys-color-surface-container-highest: #e9e1d9 } -

    Type Alias AstNode

    AstNode:
        | AstRuleStyleSheet
        | AstRuleList
        | AstComment
        | AstAtRule
        | AstRule
        | AstDeclaration
        | AstKeyframAtRule
        | AstKeyFrameRule
        | AstInvalidRule
        | AstInvalidDeclaration

    Type Alias AstNode

    AstNode:
        | AstRuleStyleSheet
        | AstRuleList
        | AstComment
        | AstAtRule
        | AstRule
        | AstDeclaration
        | AstKeyframAtRule
        | AstKeyFrameRule
        | AstInvalidRule
        | AstInvalidDeclaration

    Type Alias AtRuleVisitorHandler

    AtRuleVisitorHandler: (
        node: AstAtRule,
    ) =>
        | AstAtRule
        | AstAtRule[]
        | null
        | Promise<AstAtRule>
        | Promise<AstAtRule[]>
        | Promise<null>

    AtRule visitor handler

    -

    Type declaration

    Type Alias BinaryExpressionNode

    BinaryExpressionNode:
        | NumberToken
        | DimensionToken
        | PercentageToken
        | FlexToken
        | FractionToken
        | AngleToken
        | LengthToken
        | FrequencyToken
        | BinaryExpressionToken
        | FunctionToken
        | ParensToken

    Type Alias BinaryExpressionNode

    BinaryExpressionNode:
        | NumberToken
        | DimensionToken
        | PercentageToken
        | FlexToken
        | FractionToken
        | AngleToken
        | LengthToken
        | FrequencyToken
        | BinaryExpressionToken
        | FunctionToken
        | ParensToken

    Type Alias DeclarationVisitorHandler

    DeclarationVisitorHandler: (
        node: AstDeclaration,
    ) =>
        | AstDeclaration
        | AstDeclaration[]
        | null
        | Promise<AstDeclaration>
        | Promise<AstDeclaration[]>
        | Promise<null>

    Declaration visitor handler

    -

    Type declaration

    Type Alias RawSelectorTokens

    RawSelectorTokens: string[][]

    Type Alias RawSelectorTokens

    RawSelectorTokens: string[][]

    Type Alias RuleVisitorHandler

    RuleVisitorHandler: (
        node: AstRule,
    ) =>
        | AstRule
        | AstRule[]
        | null
        | Promise<AstRule>
        | Promise<AstRule[]>
        | Promise<null>

    Rule visitor handler

    -

    Type declaration

    Type Alias Token

    Token:
        | InvalidClassSelectorToken
        | InvalidAttrToken
        | LiteralToken
        | IdentToken
        | IdentListToken
        | DashedIdentToken
        | CommaToken
        | ColonToken
        | SemiColonToken
        | ClassSelectorToken
        | UniversalSelectorToken
        | ChildCombinatorToken
        | DescendantCombinatorToken
        | NextSiblingCombinatorToken
        | SubsequentCombinatorToken
        | ColumnCombinatorToken
        | NestingSelectorToken
        | MediaQueryConditionToken
        | MediaFeatureToken
        | MediaFeatureNotToken
        | MediaFeatureOnlyToken
        | MediaFeatureAndToken
        | MediaFeatureOrToken
        | AstDeclaration
        | NumberToken
        | AtRuleToken
        | PercentageToken
        | FlexToken
        | FunctionURLToken
        | FunctionImageToken
        | TimingFunctionToken
        | TimelineFunctionToken
        | FunctionToken
        | GridTemplateFuncToken
        | DimensionToken
        | LengthToken
        | AngleToken
        | StringToken
        | TimeToken
        | FrequencyToken
        | ResolutionToken
        | UnclosedStringToken
        | HashToken
        | BadStringToken
        | BlockStartToken
        | BlockEndToken
        | AttrStartToken
        | AttrEndToken
        | ParensStartToken
        | ParensEndToken
        | ParensToken
        | CDOCommentToken
        | BadCDOCommentToken
        | CommentToken
        | BadCommentToken
        | WhitespaceToken
        | IncludeMatchToken
        | StartMatchToken
        | EndMatchToken
        | ContainMatchToken
        | MatchExpressionToken
        | NameSpaceAttributeToken
        | DashMatchToken
        | EqualMatchToken
        | LessThanToken
        | LessThanOrEqualToken
        | GreaterThanToken
        | GreaterThanOrEqualToken
        | ListToken
        | PseudoClassToken
        | PseudoPageToken
        | PseudoElementToken
        | PseudoClassFunctionToken
        | DelimToken
        | BinaryExpressionToken
        | UnaryExpression
        | FractionToken
        | AddToken
        | SubToken
        | DivToken
        | MulToken
        | BadUrlToken
        | UrlToken
        | ImportantToken
        | ColorToken
        | AttrToken
        | EOFToken

    Type Alias Token

    Token:
        | InvalidClassSelectorToken
        | InvalidAttrToken
        | LiteralToken
        | IdentToken
        | IdentListToken
        | DashedIdentToken
        | CommaToken
        | ColonToken
        | SemiColonToken
        | ClassSelectorToken
        | UniversalSelectorToken
        | ChildCombinatorToken
        | DescendantCombinatorToken
        | NextSiblingCombinatorToken
        | SubsequentCombinatorToken
        | ColumnCombinatorToken
        | NestingSelectorToken
        | MediaQueryConditionToken
        | MediaFeatureToken
        | MediaFeatureNotToken
        | MediaFeatureOnlyToken
        | MediaFeatureAndToken
        | MediaFeatureOrToken
        | AstDeclaration
        | NumberToken
        | AtRuleToken
        | PercentageToken
        | FlexToken
        | FunctionURLToken
        | FunctionImageToken
        | TimingFunctionToken
        | TimelineFunctionToken
        | FunctionToken
        | GridTemplateFuncToken
        | DimensionToken
        | LengthToken
        | AngleToken
        | StringToken
        | TimeToken
        | FrequencyToken
        | ResolutionToken
        | UnclosedStringToken
        | HashToken
        | BadStringToken
        | BlockStartToken
        | BlockEndToken
        | AttrStartToken
        | AttrEndToken
        | ParensStartToken
        | ParensEndToken
        | ParensToken
        | CDOCommentToken
        | BadCDOCommentToken
        | CommentToken
        | BadCommentToken
        | WhitespaceToken
        | IncludeMatchToken
        | StartMatchToken
        | EndMatchToken
        | ContainMatchToken
        | MatchExpressionToken
        | NameSpaceAttributeToken
        | DashMatchToken
        | EqualMatchToken
        | LessThanToken
        | LessThanOrEqualToken
        | GreaterThanToken
        | GreaterThanOrEqualToken
        | ListToken
        | PseudoClassToken
        | PseudoPageToken
        | PseudoElementToken
        | PseudoClassFunctionToken
        | DelimToken
        | BinaryExpressionToken
        | UnaryExpression
        | FractionToken
        | AddToken
        | SubToken
        | DivToken
        | MulToken
        | BadUrlToken
        | UrlToken
        | ImportantToken
        | ColorToken
        | AttrToken
        | EOFToken

    Type Alias UnaryExpressionNode

    UnaryExpressionNode:
        | BinaryExpressionNode
        | NumberToken
        | DimensionToken
        | TimeToken
        | LengthToken
        | AngleToken
        | FrequencyToken

    Type Alias UnaryExpressionNode

    UnaryExpressionNode:
        | BinaryExpressionNode
        | NumberToken
        | DimensionToken
        | TimeToken
        | LengthToken
        | AngleToken
        | FrequencyToken

    Type Alias WalkerOption

    WalkerOption: WalkerOptionEnum | Token | null

    Type Alias WalkerOption

    WalkerOption: WalkerOptionEnum | Token | null

    Variable mathFuncsConst Internal

    mathFuncs: string[] = ...

    supported math functions

    -

    Variable transformFunctionsConst Internal

    transformFunctions: string[] = ...

    supported transform functions

    -