-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sort shorthand across multi-properties (#1732)
* Fix sortShorthand when mixed with multi-property classes Example: this `{-webkit-text-decoration-color:initial;text-decoration-color:initial}` blocks all sorting above/below it, effectively creating a new "sorting bucket" because it always returns `0` as `a` or `b`. ```css ._y44v1tgl{animation:kbayob8 5s ease infinite} ._syaz1qtk{color:var(--ds-link)} ._1jmq18uv{-webkit-text-decoration-color:initial;text-decoration-color:initial} ._zulph461{gap:var(--ds-space-050)} ``` Added a test to replicate and fix the issue. * Extend tests * Fixup tests and remove debugging export
- Loading branch information
1 parent
7637444
commit 124243c
Showing
4 changed files
with
268 additions
and
70 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@compiled/css': patch | ||
--- | ||
|
||
Fix sortShorthand when mixed with multi-property classes such as `._1jmq18uv{-webkit-text-decoration-color:initial;text-decoration-color:initial}` (previously, these broke sorting as they exited early). |
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
Oops, something went wrong.