Back to Sass

Breaking Change: -moz-document

source/documentation/breaking-changes/moz-document.md

latest1.0 KB
Original Source

Sass has historically supported a special parsing for the @-moz-document rule. As Firefox dropped support for them, Sass will also drop support for the special parsing and will treat it as an unknown at-rule.

There is one exception: an empty url prefix function is still allowed, as that's used in a hack targetting Firefox.

{% codeExample 'moz-document' %} @-moz-document url-prefix() { .error { color: red; } }

@-moz-document url-prefix() .error color: red {% endcodeExample %}

Transition Period

{% compatibility 'dart: "1.7.2"', 'libsass: false', 'ruby: false' %}{% endcompatibility %}

First, we'll emit deprecation warnings for all usages of @-moz-document except for the empty url-prefix hack.

In Dart Sass 2.0, @-moz-document will be treated as an unknown at-rule.

{% render 'silencing_deprecations' %}