You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/rules/use-baseline.md
+41Lines changed: 41 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -105,7 +105,10 @@ This rule accepts an options object with the following properties:
105
105
- change to `"newly"` to allow features that are at the Baseline newly available stage: features that have been supported on all core browsers for less than 30 months
106
106
- set to a numeric baseline year, such as `2023`, to allow features that became Baseline newly available that year, or earlier
107
107
-`allowAtRules` (default: `[]`) - Specify an array of at-rules that are allowed to be used.
108
+
-`allowFunctions` (default: `[]`) - Specify an array of functions that are allowed to be used.
109
+
-`allowMediaConditions` (default: `[]`) - Specify an array of media conditions inside `@media` that are allowed to be used.
108
110
-`allowProperties` (default: `[]`) - Specify an array of properties that are allowed to be used.
111
+
-`allowPropertyValues` (default: `{}`) - Specify an object mapping properties to an array of allowed identifier values for that property.
109
112
-`allowSelectors` (default: `[]`) - Specify an array of selectors that are allowed to be used.
110
113
111
114
#### `allowAtRules`
@@ -122,6 +125,32 @@ Examples of **correct** code with `{ allowAtRules: ["container"] }`:
122
125
}
123
126
```
124
127
128
+
#### `allowFunctions`
129
+
130
+
Examples of **correct** code with `{ allowFunctions: ["color-mix"] }`:
0 commit comments