Remove invalid gradient fallbacks #14705
Merged
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.
Prior to this PR we were providing fallback values for certain CSS variables in our gradient utilities that just weren't necessary and didn't do anything.
For example
bg-linear-to-r
was generating this:…but
background-image: linear-gradient(to right)
is not valid CSS and is thrown out by the browser.This PR removes these fallback values entirely since there is nothing sensible to fall back to anyways — you need to combine these utilities with the
from-*
/to-*
utilities or provide the complete gradient as an arbitrary value for things to make sense.