[CSS Function/Mixin Prep] Mark as accepted and update spec (#3854)

This commit is contained in:
Natalie Weizenbaum 2024-04-30 14:19:57 -07:00 committed by GitHub
parent b888b3be25
commit d3ed8dfc72
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 12 additions and 0 deletions

View File

@ -106,6 +106,13 @@ export interface Deprecations {
*/ */
'fs-importer-cwd': Deprecation<'fs-importer-cwd'>; 'fs-importer-cwd': Deprecation<'fs-importer-cwd'>;
/**
* Deprecation for function and mixin names beginning with `--`.
*
* This deprecation became active in Dart Sass 1.76.0.
*/
'css-function-mixin': Deprecation<'css-function-mixin'>;
/** /**
* Deprecation for `@import` rules. * Deprecation for `@import` rules.
* *

View File

@ -22,6 +22,8 @@ To execute a `@function` rule `rule`:
* Let `name` be the value of `rule`'s `Identifier`. * Let `name` be the value of `rule`'s `Identifier`.
* If `name` begins with `--`, throw an error.
* If `name` is `calc`, `element`, `expression`, `url`, `and`, `or`, or `not`, or * If `name` is `calc`, `element`, `expression`, `url`, `and`, `or`, or `not`, or
if `name` has a [vendor prefix] and the unprefixed identifier is one of those if `name` has a [vendor prefix] and the unprefixed identifier is one of those
strings, throw an error. strings, throw an error.

View File

@ -31,6 +31,8 @@ To execute a `@mixin` rule `rule`:
* Let `name` be the value of `rule`'s `Identifier`. * Let `name` be the value of `rule`'s `Identifier`.
* If `name` begins with `--`, throw an error.
* Let `parent` be the [current scope]. * Let `parent` be the [current scope].
[current scope]: ../spec.md#scope [current scope]: ../spec.md#scope

View File

@ -44,6 +44,7 @@ export interface Deprecations {
'null-alpha': Deprecation<'null-alpha'>; 'null-alpha': Deprecation<'null-alpha'>;
'abs-percent': Deprecation<'abs-percent'>; 'abs-percent': Deprecation<'abs-percent'>;
'fs-importer-cwd': Deprecation<'fs-importer-cwd'>; 'fs-importer-cwd': Deprecation<'fs-importer-cwd'>;
'css-function-mixin': Deprecation<'css-function-mixin'>;
import: Deprecation<'import'>; import: Deprecation<'import'>;
'user-authored': Deprecation<'user-authored', 'user'>; 'user-authored': Deprecation<'user-authored', 'user'>;
} }