-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Implement fallback plugins when arbitrary values result in css from multiple plugins #9376
Merged
Commits on Sep 29, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 57768a2 - Browse repository at this point
Copy the full SHA 57768a2View commit details -
choose backgroundSize over backgroundPosition
Ensure that `backgroundColor` can take any value
Configuration menu - View commit details
-
Copy full SHA for 14e3cd5 - Browse repository at this point
Copy the full SHA 14e3cd5View commit details -
Configuration menu - View commit details
-
Copy full SHA for f754b26 - Browse repository at this point
Copy the full SHA f754b26View commit details -
Whenever an arbitrary value results in css from multiple plugins we first try to resolve a falback plugin. The fallback mechanism works like this: - If A has type `any` and B has type `color`, then B should win. > This is because `A` will match *anything*, but the more precise type should win instead. E.g.: `backgroundColor` has the type `any` so `bg-[100px_200px]` would match both the `backgroundColor` and `backgroundSize` but `backgroundSize` matched because of a specific type and not because of the `any` type. - If A has type `length` and B has type `[length, { disambiguate: true }]`, then B should win. > This is because `B` marked the `length` as the plugin that should win in case a clash happens.
Configuration menu - View commit details
-
Copy full SHA for a604415 - Browse repository at this point
Copy the full SHA a604415View commit details -
Add any type to a handful of plugins
Needs tests tho
Configuration menu - View commit details
-
Copy full SHA for 14b273a - Browse repository at this point
Copy the full SHA 14b273aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 255376f - Browse repository at this point
Copy the full SHA 255376fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9d48abf - Browse repository at this point
Copy the full SHA 9d48abfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3c19b51 - Browse repository at this point
Copy the full SHA 3c19b51View commit details -
Configuration menu - View commit details
-
Copy full SHA for 327643c - Browse repository at this point
Copy the full SHA 327643cView commit details -
Configuration menu - View commit details
-
Copy full SHA for bb06500 - Browse repository at this point
Copy the full SHA bb06500View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1a22db2 - Browse repository at this point
Copy the full SHA 1a22db2View commit details -
Configuration menu - View commit details
-
Copy full SHA for eb24bc1 - Browse repository at this point
Copy the full SHA eb24bc1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 94b8fab - Browse repository at this point
Copy the full SHA 94b8fabView commit details -
annotate any-type test with a bit more information
Just for future debugging reasons!
Configuration menu - View commit details
-
Copy full SHA for 0b356be - Browse repository at this point
Copy the full SHA 0b356beView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.