Dart Sass 1.106.0
- Don't normalize CSS escapes in statement contexts that can contain interpolation, so `@f\6Fo` is emitted as written rather than normalized to `@foo` behavior changed · inferred, marked in the notes below
- CSS escape codes whose values are 0, for Unicode surrogates, or greater than the maximum allowed code point are now consistently normalized to U+FFFD REPLACEMENT CHARACTER in expression contexts, with `\0` alone still normalized to `\0 ` to support historical CSS hacks behavior changed · inferred, marked in the notes below
- Fix a bug where quotes would be removed from attribute selector values that contained backslashes
- Fix invalid source spans that could cause crashes when encountering a syntax error in selectors or media queries that also contain escape sequences
- Fix a bug where the indented syntax parser would crash when parsing a file where the first statement was indented and appeared after the first line
- Fix a bug that could cause crashes when encountering errors or warnings in interpolations that contain patterns like `// */`
- Throw an error for mixins and functions that have rest parameters which are the same as normal parameters, instead of crashing the compiler when calling them with a named argument behavior changed · inferred, marked in the notes below
- Fix various cases where using a CSS escape code at the beginning of an identifier would change parsing behavior versus using the character directly
- When a number's unit is ambiguous with a numeric exponent, serialize the unit as an escape code rather than a literal `e` so it is not interpreted as an exponent by CSS behavior changed · inferred, marked in the notes below
- Don't parse a CSS escape code for U+45 or U+65 (the letter E) as an exponent in `@keyframes` percentage selectors behavior changed · inferred, marked in the notes below
- Properly normalize underscores written as CSS escape codes in variable, mixin, and function names behavior changed · inferred, marked in the notes below
6 changes to check, marked in the notes below
From Sass
To install Sass 1.106.0, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
-
Don't normalize CSS escapes in statement contexts that can contain interpolation. For example,
@f\6Fois now emitted as written rather than normalized to@foo. behavior changed · inferred -
Fix a bug where quotes would be removed from attribute selector values that contained backslashes.
-
Fix invalid source spans that could cause crashes when encountering a syntax error in selectors or media queries that also contain escape sequences.
-
Fix a bug where the indented syntax parser would crash when parsing a file where the first statement was indented and appeared after the first line.
-
Fix a bug that could cause crashes when encountering errors or warnings in interpolations that contain patterns like
// */. -
Potentially breaking compatibility fix: CSS escape codes whose values are 0, for Unicode surrogates, or greater than the maximum allowed code point are now consistently normalized to U+FFFD REPLACEMENT CHARACTER in expression contexts. Previously, in some cases these were instead normalized to the normalized form of the original escape sequence, which violates the principle that all escape sequences for identical values should be normalized the same way. In other cases, these would simply throw errors. behavior changed · inferred
As a special case,
\0on its own will continue to be normalized to\0to support historical CSS hacks. -
Potentially breaking bug fix: Throw an error for mixins and functions that have rest parameters which are the same as normal parameters. Previously, the positional parameters wouldn't be accessible and calling such a mixin or function with a named argument would crash the compiler. behavior changed · inferred
-
Potentially breaking bug fix: Fix various cases where using a CSS escape code at the beginning of an identifier would change parsing behavior versus using the character directly.
-
Potentially breaking bug fix: When a number's unit is ambiguous with a numeric exponent, the unit is now serialized as an escape code rather than a literal
eto avoid being interpreted as an exponent by CSS. behavior changed · inferred -
Potentially breaking bug fix: Don't parse a CSS escape code for U+45 LATIN CAPITAL LETTER E or U+65 LATIN LOWERCASE LETTER E as an exponent in
@keyframespercentage selectors. behavior changed · inferred -
Potentially breaking bug fix: Properly normalize underscores written as CSS escape codes in variable, mixin, and function names. behavior changed · inferred
See the full changelog for changes in earlier releases.