-
Notifications
You must be signed in to change notification settings - Fork 667
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
[Feature] Compat-API should not flag issues if code is in @supports [3] #1869
Comments
@webhintio/core I think I need a little bit more explanation here. Do we want to ignore completely the @supports (display: flex) {
.content {
display: flex;
align-items: center;
justify-content: center;
}
}
html,
body {
padding: 0;
margin: 0;
height: 100%;
width: 100%;
}
.content {
background-color: #777;
color: #000;
height: 100%;
width: 100%;
}
p {
margin: 0;
} Also, what happen when a browser doesn't support |
I think the idea is:
So with your flexbox example and looking into the MDN data:
A better example will be
If someone did something attrocious like: @supports (display: flex) {
.content {
display: grid;
...
}
} This should be a problem in Edge 15 and lower but not 16. |
So basically, if right? |
More like
|
What do you mean with |
With the following example and for the case of Edge 13: @supports (display: grid) {
// ...
} Edge 13 implements Hope it is clearer now. |
Ahh yes, now it is clearer :) |
@molant I have a question. What if the CSS contains something like this and we are on Edge 13?: @support not (display: grid) {
// ...
} Should we ignore the |
Don't think we should ignore it. |
ok! |
🚀 Feature request
Description
Right now the compat-api for CSS doesn't check if a feature is being featured detected previously via
@supports
and thus causing false positives.The hint should be aware of those.
What scenarios will this solve?
Flagging false positives when users run the compat.
The text was updated successfully, but these errors were encountered: