forked from sass/sass-site
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Document the moz-document breaking change on the sass website. (sass#667
- Loading branch information
Showing
3 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
title: "Breaking Change: -moz-document" | ||
introduction: > | ||
Firefox used to have a @-moz-document rule requiring special parsing. As | ||
support is removed from Firefox, Sass is in the process of removing support | ||
for parsing them. | ||
--- | ||
|
||
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. | ||
|
||
[Firefox dropped support for them]: https://web.archive.org/web/20200528221656/https://www.fxsitecompat.dev/en-CA/docs/2018/moz-document-support-has-been-dropped-except-for-empty-url-prefix/ | ||
|
||
|
||
**There is one exception**: an empty url prefix function is still allowed, as | ||
that's used in a hack targetting Firefox. | ||
|
||
<% example do %> | ||
@-moz-document url-prefix() { | ||
.error { | ||
color: red; | ||
} | ||
} | ||
=== | ||
@-moz-document url-prefix() | ||
.error | ||
color: red | ||
<% end %> | ||
|
||
## Transition Period | ||
|
||
<% impl_status dart: '1.7.2', libsass: false, ruby: false %> | ||
|
||
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. |