Skip to content

Commit eafc279

Browse files
authored
Explicitly add a breaking change exemption for invalid CSS output (#2225)
This was always implicitly the case (as pointed out in the new section), but this makes it explicit.
1 parent b97f26f commit eafc279

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

+13
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ A [Dart][dart] implementation of [Sass][sass]. **Sass makes CSS fun**.
4242
* [Compatibility Policy](#compatibility-policy)
4343
* [Browser Compatibility](#browser-compatibility)
4444
* [Node.js Compatibility](#nodejs-compatibility)
45+
* [Invalid CSS](#invalid-css)
4546
* [Embedded Dart Sass](#embedded-dart-sass)
4647
* [Usage](#usage)
4748
* [Behavioral Differences from Ruby Sass](#behavioral-differences-from-ruby-sass)
@@ -405,6 +406,18 @@ considers itself free to break support if necessary.
405406

406407
[the Node.js release page]: https://nodejs.org/en/about/previous-releases
407408

409+
### Invalid CSS
410+
411+
Changes to the behavior of Sass stylesheets that produce invalid CSS output are
412+
_not_ considered breaking changes. Such changes are almost always necessary when
413+
adding support for new CSS features, and delaying all such features until a new
414+
major version would be unduly burdensome for most users.
415+
416+
For example, when Sass began parsing `calc()` expressions, the invalid
417+
expression `calc(1 +)` became a Sass error where before it was passed through
418+
as-is. This was not considered a breaking change, because `calc(1 +)` was never
419+
valid CSS to begin with.
420+
408421
## Embedded Dart Sass
409422

410423
Dart Sass includes an implementation of the compiler side of the [Embedded Sass

0 commit comments

Comments
 (0)