Skip to content

Commit

Permalink
Update LMS matrices (#2374)
Browse files Browse the repository at this point in the history
This recomputes all existing LMS-related matrices based on losslessly applying the logic described in w3c/csswg-drafts#6642 (comment).

See sass/sass-spec#2024
  • Loading branch information
nex3 authored Oct 10, 2024
1 parent 2c5f1e9 commit 85b467b
Show file tree
Hide file tree
Showing 2 changed files with 153 additions and 149 deletions.
15 changes: 9 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@

* Changes to how `selector.unify()` and `@extend` combine selectors:

* The relative order of pseudo-classes (like `:hover`) and pseudo-elements
(like `::before`) within each original selector is now preserved when
they're combined.
* The relative order of pseudo-classes (like `:hover`) and pseudo-elements
(like `::before`) within each original selector is now preserved when
they're combined.

* Pseudo selectors are now consistently placed at the end of the combined
selector, regardless of which selector they came from. Previously, this
reordering only applied to pseudo-selectors in the second selector.
* Pseudo selectors are now consistently placed at the end of the combined
selector, regardless of which selector they came from. Previously, this
reordering only applied to pseudo-selectors in the second selector.

* Tweak the color transformation matrices for OKLab and OKLCH to match the
newer, more accurate values in the CSS spec.

* Fix a slight inaccuracy case when converting to `srgb-linear` and
`display-p3`.
Expand Down
Loading

0 comments on commit 85b467b

Please sign in to comment.