fix typo in docs
This commit is contained in:
parent
40d2aa232a
commit
45ad97e0be
6
.gitignore
vendored
6
.gitignore
vendored
@ -1,6 +1,5 @@
|
|||||||
*.s[ac]ss
|
*.s[ac]ss
|
||||||
*.css
|
*.css
|
||||||
*.exe
|
|
||||||
!input.scss
|
!input.scss
|
||||||
!crates/static/_index.scss
|
!crates/static/_index.scss
|
||||||
|
|
||||||
@ -11,6 +10,8 @@ coverage
|
|||||||
pkg
|
pkg
|
||||||
flamegraph.svg
|
flamegraph.svg
|
||||||
perf*
|
perf*
|
||||||
|
dhat*
|
||||||
|
*.tar.gz
|
||||||
|
|
||||||
# editor specific
|
# editor specific
|
||||||
.idea
|
.idea
|
||||||
@ -20,6 +21,7 @@ perf*
|
|||||||
*.py
|
*.py
|
||||||
*.sh
|
*.sh
|
||||||
*.cmd
|
*.cmd
|
||||||
|
*.exe
|
||||||
|
|
||||||
# common Sass frameworks that may wish to live alongside grass for testing
|
# common Sass frameworks that may wish to live alongside grass for testing
|
||||||
susy
|
susy
|
||||||
@ -33,3 +35,5 @@ sassline
|
|||||||
true
|
true
|
||||||
dart-sass
|
dart-sass
|
||||||
sass-fairy
|
sass-fairy
|
||||||
|
duomo
|
||||||
|
ibm-cloud-cognitive
|
||||||
|
12
CHANGELOG.md
12
CHANGELOG.md
@ -3,6 +3,8 @@
|
|||||||
- error when `@extend` is used across `@media` boundaries
|
- error when `@extend` is used across `@media` boundaries
|
||||||
- more robust support for NaN in builtin functions
|
- more robust support for NaN in builtin functions
|
||||||
|
|
||||||
|
- support unquoted imports in the indented/SASS syntax
|
||||||
|
|
||||||
-->
|
-->
|
||||||
|
|
||||||
# 0.12.2 (unreleased)
|
# 0.12.2 (unreleased)
|
||||||
@ -11,10 +13,12 @@
|
|||||||
- slash lists can be compared using `==`
|
- slash lists can be compared using `==`
|
||||||
- resolve rounding errors for extremely large numbers
|
- resolve rounding errors for extremely large numbers
|
||||||
- potentially breaking bug fixes in certain color functions
|
- potentially breaking bug fixes in certain color functions
|
||||||
- `color.hwb(..)` no longer allows whiteness or blackness values outside the bounds 0% to 100%
|
- `color.hwb(..)` no longer allows whiteness or blackness values outside the bounds 0% to 100%
|
||||||
- `scale-color(..)` no longer allows the `$hue` argument. previously it was ignored
|
- `scale-color(..)` no longer allows the `$hue` argument. previously it was ignored
|
||||||
- `scale-color(..)`, `change-color(..)`, and `adjust-color(..)` no longer allow invalid combinations of arguments or unknown named arguments
|
- `scale-color(..)`, `change-color(..)`, and `adjust-color(..)` no longer allow invalid combinations of arguments or unknown named arguments
|
||||||
- many functions that accept hues now convert other angle units (`rad`, `grad`, `turn`) to `deg`. previously the unit was ignored
|
- many functions that accept hues now convert other angle units (`rad`, `grad`, `turn`) to `deg`. previously the unit was ignored
|
||||||
|
- improve compressed output of selectors containing newlines and `rgba(..)` colors
|
||||||
|
- improve resolution of imports containing explicit file extensions, e.g. `@import "foo.scss"`
|
||||||
|
|
||||||
# 0.12.1
|
# 0.12.1
|
||||||
|
|
||||||
|
12
Cargo.toml
12
Cargo.toml
@ -6,15 +6,15 @@ members = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
[profile.release]
|
[profile.release]
|
||||||
debug = true
|
debug = 1
|
||||||
panic = "abort"
|
panic = "abort"
|
||||||
lto = true
|
lto = true
|
||||||
codegen-units = 1
|
codegen-units = 1
|
||||||
|
|
||||||
[profile.small]
|
[profile.small]
|
||||||
inherits = 'release'
|
inherits = 'release'
|
||||||
opt-level = 'z' # Optimize for size
|
opt-level = 'z'
|
||||||
lto = true # Enable link-time optimization
|
lto = true
|
||||||
codegen-units = 1 # Reduce number of codegen units to increase optimizations
|
codegen-units = 1
|
||||||
panic = 'abort' # Abort on panic
|
panic = 'abort'
|
||||||
strip = true # Strip symbols from binary*
|
strip = true
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/*!
|
/*!
|
||||||
This crate provides functionality for compiling [Sass](https://sass-lang.com/) to CSS.
|
This crate provides functionality for compiling [Sass](https://sass-lang.com/) to CSS.
|
||||||
|
|
||||||
This crate targets compatability with the reference implementation in Dart. If
|
This crate targets compatibility with the reference implementation in Dart. If
|
||||||
upgrading from the [now deprecated](https://sass-lang.com/blog/libsass-is-deprecated)
|
upgrading from the [now deprecated](https://sass-lang.com/blog/libsass-is-deprecated)
|
||||||
`libsass`, one may have to modify their stylesheets. These changes will not differ
|
`libsass`, one may have to modify their stylesheets. These changes will not differ
|
||||||
from those necessary to upgrade to `dart-sass`, and in general such changes should
|
from those necessary to upgrade to `dart-sass`, and in general such changes should
|
||||||
|
@ -597,6 +597,12 @@ impl<'a> Serializer<'a> {
|
|||||||
|
|
||||||
if formatted.ends_with(".0") {
|
if formatted.ends_with(".0") {
|
||||||
buffer.push_str(formatted.trim_end_matches('0').trim_end_matches('.'));
|
buffer.push_str(formatted.trim_end_matches('0').trim_end_matches('.'));
|
||||||
|
} else if n.is_infinite() {
|
||||||
|
buffer.push_str(
|
||||||
|
format!("{:.10}", num)
|
||||||
|
.trim_end_matches('0')
|
||||||
|
.trim_end_matches('.'),
|
||||||
|
);
|
||||||
} else {
|
} else {
|
||||||
buffer.push_str(&formatted);
|
buffer.push_str(&formatted);
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/*!
|
/*!
|
||||||
This crate provides functionality for compiling [Sass](https://sass-lang.com/) to CSS.
|
This crate provides functionality for compiling [Sass](https://sass-lang.com/) to CSS.
|
||||||
|
|
||||||
This crate targets compatability with the reference implementation in Dart. If
|
This crate targets compatibility with the reference implementation in Dart. If
|
||||||
upgrading from the [now deprecated](https://sass-lang.com/blog/libsass-is-deprecated)
|
upgrading from the [now deprecated](https://sass-lang.com/blog/libsass-is-deprecated)
|
||||||
`libsass`, one may have to modify their stylesheets. These changes will not differ
|
`libsass`, one may have to modify their stylesheets. These changes will not differ
|
||||||
from those necessary to upgrade to `dart-sass`, and in general such changes should
|
from those necessary to upgrade to `dart-sass`, and in general such changes should
|
||||||
|
@ -559,7 +559,7 @@ test!(
|
|||||||
font-weight: 200;
|
font-weight: 200;
|
||||||
}
|
}
|
||||||
}",
|
}",
|
||||||
"@media (url) {\n a {\n color: red;\n }\n}\n"
|
"@media (min-width: 1px) {\n .first {\n font-weight: 100;\n }\n .second {\n font-weight: 200;\n }\n}\n"
|
||||||
);
|
);
|
||||||
test!(
|
test!(
|
||||||
escaped_nullbyte_in_query,
|
escaped_nullbyte_in_query,
|
||||||
|
@ -213,6 +213,21 @@ test!(
|
|||||||
"a {\n color: 1e-100;\n}\n",
|
"a {\n color: 1e-100;\n}\n",
|
||||||
"a {\n color: 0;\n}\n"
|
"a {\n color: 0;\n}\n"
|
||||||
);
|
);
|
||||||
|
test!(
|
||||||
|
overflows_float_positive,
|
||||||
|
"a {\n color: 1e999;\n}\n",
|
||||||
|
"a {\n color: Infinity;\n}\n"
|
||||||
|
);
|
||||||
|
test!(
|
||||||
|
overflows_float_negative,
|
||||||
|
"a {\n color: -1e999;\n}\n",
|
||||||
|
"a {\n color: -Infinity;\n}\n"
|
||||||
|
);
|
||||||
|
test!(
|
||||||
|
very_large_but_no_overflow,
|
||||||
|
"a {\n color: 17976931348623157000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;\n}\n",
|
||||||
|
"a {\n color: 17976931348623157580412819756850388593900235011794141176754562789180111453639664485361928830517704263393537268510363518759043843737070229269956251768752166883397940628862983287625967246810352023792017211936260189893797509826303293149283469713429932049693599732425511693654044437030940398714664210204414967808;\n}\n"
|
||||||
|
);
|
||||||
error!(
|
error!(
|
||||||
scientific_notation_no_number_after_decimal,
|
scientific_notation_no_number_after_decimal,
|
||||||
"a {\n color: 1.e3;\n}\n", "Error: Expected digit."
|
"a {\n color: 1.e3;\n}\n", "Error: Expected digit."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user