[Interleaved Declarations] Mark as accepted

See #3846
This commit is contained in:
Natalie Weizenbaum 2024-06-18 17:08:12 -07:00
parent 9ad70a52e1
commit 79799ca575
7 changed files with 35 additions and 4 deletions

View File

@ -6,7 +6,7 @@
*/
export interface Deprecations {
// START AUTOGENERATED LIST
// Checksum: 22d9bdbe92eb39b3c0d6d64ebe1879a431c0037e
// Checksum: 6e5aeefc72f4e9b4ffa0672feea75a5ad09b0282
/**
* Deprecation for passing a string directly to meta.call().
@ -113,6 +113,13 @@ export interface Deprecations {
*/
'css-function-mixin': Deprecation<'css-function-mixin'>;
/**
* Deprecation for declarations after or between nested rules.
*
* This deprecation became active in Dart Sass 1.77.7.
*/
'interleaved-decls': Deprecation<'interleaved-decls'>;
/**
* Deprecation for @import rules.
*

View File

@ -43,6 +43,9 @@ To execute an unknown at-rule `rule`:
* If `rule`'s name is "font-face", or if its [unprefixed] name is
"keyframes", append `css` to [the current module]'s CSS.
* Otherwise, if `rule`'s name is case-insensitively equal to "nest", append
`css` to `parent`.
* Otherwise:
* Append `css` to `parent`'s parent.

View File

@ -76,4 +76,15 @@ To execute a declaration `declaration`:
* Append `css` to `parent`.
* If `parent` isn't the last statement in its parent:
* Let `copy` by a copy of `parent` without any children.
* Append `copy` to `parent`'s parent.
* Set the [current style rule], [keyframe block], or at-rule (according to
`copy`'s type) to `copy`, for the remaining duration of its previous value.
* Set `parent` to `copy`.
* Evaluate each child in `declaration`'s `Statements` if it exists.

View File

@ -106,6 +106,12 @@ css-function-mixin:
status: active
deprecated: 1.76.0
interleaved-decls:
description: Declarations after or between nested rules.
dart-sass:
status: active
deprecated: 1.77.7
import:
description: "@import rules."
dart-sass:

View File

@ -29,7 +29,7 @@
### `Deprecations`
<!-- START AUTOGENERATED LIST -->
<!-- Checksum: 22d9bdbe92eb39b3c0d6d64ebe1879a431c0037e -->
<!-- Checksum: 6e5aeefc72f4e9b4ffa0672feea75a5ad09b0282 -->
```ts
export interface Deprecations {
'call-string': Deprecation<'call-string'>;
@ -47,6 +47,7 @@ export interface Deprecations {
'abs-percent': Deprecation<'abs-percent'>;
'fs-importer-cwd': Deprecation<'fs-importer-cwd'>;
'css-function-mixin': Deprecation<'css-function-mixin'>;
'interleaved-decls': Deprecation<'interleaved-decls'>;
import: Deprecation<'import'>;
'user-authored': Deprecation<'user-authored', 'user'>;
}

View File

@ -13,12 +13,15 @@
The *current style rule* is the CSS style rule that was created by the innermost
[execution of a style rule](#semantics), `@media` rule, `@supports` rule, or
unknown at-rule.
unknown at-rule. This may be overridden by the [execution of a declaration].
[execution of a declaration]: declarations.md#semantics
### Current Keyframe Block
The *current keyframe block* is the CSS keyframe block that was created by the
innermost [execution of a style rule](#semantics).
innermost [execution of a style rule](#semantics). This may be overridden by the
[execution of a declaration].
## Semantics