Skip to content

Commit

Permalink
Update AST doc
Browse files Browse the repository at this point in the history
  • Loading branch information
lahmatiy committed Sep 25, 2023
1 parent 689185f commit 197cd3d
Showing 1 changed file with 26 additions and 6 deletions.
32 changes: 26 additions & 6 deletions docs/ast.md
Expand Up @@ -35,6 +35,8 @@ Interactively explore the AST with [AST Explorer](https://astexplorer.net/#/gist
- [Hash](#hash)
- [IdSelector](#idselector)
- [Identifier](#identifier)
- [LayerName](#layername)
- [LayerNameList](#layernamelist)
- [MediaQuery](#mediaquery)
- [MediaQueryList](#mediaquerylist)
- [NestingSelector](#nestingselector)
Expand Down Expand Up @@ -338,7 +340,7 @@ Used for [the An+B microsyntax](https://drafts.csswg.org/css-syntax/#anb-microsy
type: "Feature",
kind: String,
name: String,
value: <Identifier> | <Number> | <Dimension> | <Ratio> | null
value: <Identifier> | <Number> | <Dimension> | <Ratio> | <Function> | null
}
```

Expand All @@ -359,11 +361,11 @@ Used for [the An+B microsyntax](https://drafts.csswg.org/css-syntax/#anb-microsy
{
type: "FeatureRange",
kind: String,
left: <Identifier> | <Number> | <Dimension> | <Ratio>,
left: <Identifier> | <Number> | <Dimension> | <Ratio> | <Function>,
leftComparison: String,
middle: <Identifier> | <Number> | <Dimension> | <Ratio>,
middle: <Identifier> | <Number> | <Dimension> | <Ratio> | <Function>,
rightComparison: String | null,
right: <Identifier> | <Number> | <Dimension> | <Ratio> | null
right: <Identifier> | <Number> | <Dimension> | <Ratio> | <Function> | null
}
```

Expand Down Expand Up @@ -415,6 +417,24 @@ Used for [the An+B microsyntax](https://drafts.csswg.org/css-syntax/#anb-microsy
}
```

### LayerName

```js
{
type: "LayerName",
name: String
}
```

### LayerNameList

```js
{
type: "LayerNameList",
children: List
}
```

### MediaQuery

```js
Expand Down Expand Up @@ -514,8 +534,8 @@ Used for [the An+B microsyntax](https://drafts.csswg.org/css-syntax/#anb-microsy
```js
{
type: "Ratio",
left: String,
right: String
left: <Number> | <Function>,
right: <Number> | <Function> | null
}
```

Expand Down

0 comments on commit 197cd3d

Please sign in to comment.