v3.0.0-beta.1
Pre-release
Pre-release
- Added
describeanditmixins,
as alias fortest-moduleandtestrespectively. - Added
$inspectargument toassert-equalandassert-unequalmixins,
for comparinginspect($assert) == inspect($expected)
instead of$assert == $expected.
This helps with several of the equality edge-cases listed below
(rounding and units). - BREAKING: No more Ruby gem or Ruby CLI
- BREAKING: No more bower package
- BREAKING: Removes special-handling of equality,
in favor of allowing Sass to determine the best comparisons.
There are a few edge-cases to be aware of:- In some versions of Sass,
manipulated numbers and colors are compared without rounding,
so1/3 != 0.333333andlighten(#246, 15%) != #356a9f.
Use the$inspectargument to compare rounded output values. - In all versions of Sass,
unitless numbers are considered comparable to all units,
so1 == 1xwherexrepresents any unit.
Use the$inspectargument to compare output values with units. - Lists compare both values and delimiter,
so(one two three) != (one, two, three).
This can be particularly confusing for single-item lists,
which still have a delimiter assigned,
even though it is not used.
- In some versions of Sass,