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 pull request improves checking for partially supported properties by using MDN to check if the specific value we're using is unsupported or not.
For example,
appearance: auto
got support in chrome 83, so it would warn withchrome 81
but not withchrome 83
. Meanwhile,appearance: none
gained support much earlier, so it wouldn't warn with either 83 or 81.As of right now it only checks declaration value pairs. the behavior is unchanged for other types of css features
details
MDN isn't part of feature detection, which remains unchanged. This is focused on providing better messages to the end user instead. Whenever partial support is detected, we then get more information from MDN to determine if we need to report the issue at all, and report with a more specific message if needed.
One thing to consider is that MDN adds a lot of weight (something like 10MB). This isn't a big issue for most environments, but it may matter for some. For example, if someone wanted to use this in the browser (why would they?) it would be much too large. If we think this is a problem we could gate this behind an option and import the data dynamically.
Closes
fixes #70
fixes #71
fixes #106
fixes #146