Fix duplicate -webkit-backdrop-filter output
#850
Merged
+95
−3
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.
This PR fixes an issue where using CSS that looks like this:
Results in CSS that looks like this:
This PR solves it for the
transition-property(internallyTransitionProperty, so I think it's also solved fortransitionthat uses that) only.We currently do this by checking whether a
PropertyIdexists withVendorPrefix::None. If it does, then we will make sure to remove all otherPropertyId's (with the same name). The idea is that thePropertyIdwithVendorPrefix::Nonewill print the property with the correct values, including the vendor prefix.If however you only use CSS that looks like this:
Which is without the unprefixed version, then this is maintained in the output because no
VendorPrefix::Noneexists in this case.I feel like there might be a better spot to handle this (maybe even in parsing, or during printing) but wasn't to sure. I also explicitly scoped it to the
transition-propertyfor now but maybe this can be more generalized?I also started from the failing tests (and slightly adjusted with more test cases) from this PR: #551, I also made sure that the original author is marked as a co-author.
Fixes: #403
Closes: #551