Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve colors #198

Merged
merged 4 commits into from
Sep 17, 2024
Merged

Improve colors #198

merged 4 commits into from
Sep 17, 2024

Conversation

kaj
Copy link
Owner

@kaj kaj commented Sep 15, 2024

The spec test suite has updated with a lot of changes in how colors should behave.

These changes fixes most changed requirements of traditional colors, while ignoring partial colors and everything regarding explicit color spaces.

kaj added 3 commits September 14, 2024 12:54
Channels given as e.g. `r g b/a` are now converted to proper
`r, g, b, a` format.
@kaj kaj force-pushed the improve-colors branch 6 times, most recently from f61813a to 0284bcd Compare September 16, 2024 23:12
@kaj kaj merged commit 70ed713 into main Sep 17, 2024
26 checks passed
@kaj kaj deleted the improve-colors branch September 17, 2024 17:32
kaj added a commit that referenced this pull request Feb 2, 2025
Released 2025-02-02.
Progress: 5879 of 12589 tests passed.
The large number of new failing tests are mainly for new color
functions that rsass don't support yet.

### Breaking changes:

* Replaced the css `Selector` implementation.
  The new "logical" selector types that was used in selector
  function in rsass 0.28 is now the only css selector implementation.
  Most of the api to those types are private.
  Some will probably be made public after some stabilization period.
* The `Debug` trait for `Error` is now the standard derived impl,
  to get the pretty output, use the `Display` trait.
* All numbers are now represented as f64 (#203).
  This removes integration with `num-rational`, `num-bigint`,
  `num-integer` and `num-traits`.
* Improved `@for` loop evaluation and error handling (#206).
* Msrv is now 1.65.0 for rsass (and 1.74 for rsass-cli).

### Other changes:

* Lots of color handling.
  - Spec changes for traditional css colors (PR #198).
  - Made all color channels f64 instead of Rational (PR #199).
* Fixed a bug where `clamp(..)` was sometimes evaluated to a value
  even though units wasn't comparable.
* Improved parse error handling (Issue #141, PR #201, PR #205).
  Many parse errors now match the dart sass error message.
  Also allow "loud" comments in more places.
* Pure css `round()` may take an expression argument.
* Minor changes in agrument syntax errors.
* Updated `nom` to 8.0.0 and added `nom-language` 0.1.0.
* Updated sass-spec test suite to 2025-01-29.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant